Page 3 of 4

Re: In need of mqtt help

PostPosted: Sat Jan 30, 2021 7:40 am
by tazswe
Colly,

grateful for your assistance even if you’re not an expert, you solved the message type that I missed.


Skickat från min iPad med Tapatalk

Re: In need of mqtt help

PostPosted: Sat Jan 30, 2021 7:42 am
by Colly
You're welcome. For info I've edited my earlier post where I incorrectly suggested to Match "Any".

Re: In need of mqtt help

PostPosted: Sat Jan 30, 2021 8:31 am
by aaronlionsheep
Thanks Colly and Joe for helping!

tazswe wrote:
Yes,

The change of any to Any(Wildcard) solved everything.

Thanks a lot Flying diver, Colly and Aaron for all the help.


The steps you have just completed are mostly setup related and won't be required to be completed over and over when adding new devices. With that being said, I will go through my wiki and see if I have missed some instructions for getting started. My screenshots may be out of date by now as I haven't updated my guides in a while.

Please let me know if there was a part of this setup that could have been made much more clear. I have realized that I don't have any links to my guides from the forum here. Did you use the wiki on my GitHub to get this setup?

Thanks,
Aaron

Re: In need of mqtt help

PostPosted: Sat Jan 30, 2021 8:48 am
by tazswe
Aron, I used your wiki and have probably read most of the forum for help.

The wiki shows the correct use of the “any” but it is not foolproof so it can be improved.


Skickat från min iPad med Tapatalk

Re: In need of mqtt help

PostPosted: Wed Feb 03, 2021 12:36 pm
by tazswe
To run Mosquitto in Docker on an old mini Mac wasn’t successful, it slowed down the cpu and I had to turn it of. Can’t run Docker on my old Synology.
Replaced it with a RPI Zero W and now is it up and running again.


Skickat från min iPad med Tapatalk

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 8:25 am
by mpleeds
I'm running into a similar issue as Tazswe. - all components appear to be set up correctly, but unable to get Shelly1 relay to operate from Indigo. The MQTT connector seems to be working (Connected 0), Mosquitto installed and running, Shelly1 showing in MQTT Explorer, and when I toggle from on to off from Indigo, the relay command changes are reflected as such. Shelly1 web interface has "Enable action execution via MQTT" selected, and have tried several server combinations, including localhost:1883, 192.168.1.1:1883 (Mac Mini), etc.

Any suggestions as to what might be causing the Shelly1 not to respond would be greatly appreciated.
______________________

1. MQTT Connector:

Connection Info:

Screen Shot 2021-07-27 at 6.46.51 AM.png
Screen Shot 2021-07-27 at 6.46.51 AM.png (48.7 KiB) Viewed 3022 times


a. Topic Subscriptions:

Screen Shot 2021-07-27 at 6.49.53 AM.png
Screen Shot 2021-07-27 at 6.49.53 AM.png (28.09 KiB) Viewed 3022 times


b. Published Devices:

Screen Shot 2021-07-27 at 6.52.10 AM.png
Screen Shot 2021-07-27 at 6.52.10 AM.png (27.8 KiB) Viewed 3022 times


2. MQTT Trigger:

Screen Shot 2021-07-27 at 6.53.30 AM.png
Screen Shot 2021-07-27 at 6.53.30 AM.png (105.15 KiB) Viewed 3022 times


3. Shelly MQTT Device:

Screen Shot 2021-07-27 at 6.54.55 AM.png
Screen Shot 2021-07-27 at 6.54.55 AM.png (114.71 KiB) Viewed 3022 times


4. Shelly1 Web Interface:

Screen Shot 2021-07-27 at 7.13.20b AM.jpg
Screen Shot 2021-07-27 at 7.13.20b AM.jpg (211.15 KiB) Viewed 3022 times


5. MQTT Explorer:

Screen Shot 2021-07-27 at 7.14.20 AM.png
Screen Shot 2021-07-27 at 7.14.20 AM.png (73.73 KiB) Viewed 3022 times

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 9:25 am
by FlyingDiver
First thing I see is you have "shellies" misspelled in the Topic subscription.

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 3:27 pm
by mpleeds
Thanks Flying Diver. An embarrassing error, but correcting the spelling didn't fix the issue. Any other ideas?

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 3:34 pm
by FlyingDiver
Not really, hopefully Aaron can figure it out.

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 4:40 pm
by aaronlionsheep
You mentioned you had tried a few different ways of connecting to the broker. From your screenshots, it looks like ShellyMQTT is able to publish valid Shelly commands over MQTT to your broker, so you should't need any additional changes within Indigo.

The screenshot of your Shelly web console shows your server listed as "localhost:1883". This is from the perspective of the Shelly device so, as configured, that would indicate that your broker is running on the Shelly device itself (which wouldn't be the case). This should point to the IP address of the broker, which I believe is your Mac mini. Can you confirm the IP address that your Mac mini has been assigned?

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 4:46 pm
by Colly
aaronlionsheep wrote:
You mentioned you had tried a few different ways of connecting to the broker. From your screenshots, it looks like ShellyMQTT is able to publish valid Shelly commands over MQTT to your broker, so you should't need any additional changes within Indigo.

The screenshot of your Shelly web console shows your server listed as "localhost:1883". This is from the perspective of the Shelly device so, as configured, that would indicate that your broker is running on the Shelly device itself (which wouldn't be the case). This should point to the IP address of the broker, which I believe is your Mac mini. Can you confirm the IP address that your Mac mini has been assigned?

Aaron,
Does the broker have to be selected or will "- Any Broker - " still work?

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 4:49 pm
by aaronlionsheep
Colly wrote:
aaronlionsheep wrote:
You mentioned you had tried a few different ways of connecting to the broker. From your screenshots, it looks like ShellyMQTT is able to publish valid Shelly commands over MQTT to your broker, so you should't need any additional changes within Indigo.

The screenshot of your Shelly web console shows your server listed as "localhost:1883". This is from the perspective of the Shelly device so, as configured, that would indicate that your broker is running on the Shelly device itself (which wouldn't be the case). This should point to the IP address of the broker, which I believe is your Mac mini. Can you confirm the IP address that your Mac mini has been assigned?

Aaron,
Does the broker have to be selected or will "- Any Broker - " still work?


"Any Broker" should work, but I would probably choose the specific broker.

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 4:50 pm
by tazswe
You seems to only have received a single message on mqtt.

Try to reboot the Shelly device and after that reload the mqtt connector and Shelly mqtt.


Sent from my iPad with Tapatalk

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 4:53 pm
by aaronlionsheep
tazswe wrote:
You seems to only have received a single message on mqtt.

Try to reboot the Shelly device and after that reload the mqtt connector and Shelly mqtt.


Sent from my iPad with Tapatalk


Actually it doesn't look like the Shelly has sent ANY messages into the broker. All of those messages have come from ShellyMQTT and the MQTT connector. I'm fairly certain this is a configuration issue with getting the Shelly pointed to the broker.

Re: In need of mqtt help

PostPosted: Tue Jul 27, 2021 5:22 pm
by tazswe
I use the actual ip no and not localhost.

Changed some of my Shellies today to a new server with aanother ip no.
Wasn’t enough to change pointing to the new address in Shelly, had to reboot the as well to get them to show up.

At the end of the process I reload the mqtt connect and Shelly mqtt, not know if it’s needed but it doesn’t do any harm,


Sent from my iPad with Tapatalk