Hi all,
I have a Shelly1 flashed with Tasmota and have setup MQTT on it. Now when I press the "Toggle" button in the web interface of the Shelly I receive in the Domoticz log the below 2 lines:
2019-11-30 17:59:47.067 MQTT: Topic: domoticz/in, Message: {"idx":30,"nvalue":1,"svalue":"","Battery":100,"RSSI":7}
2019-11-30 17:59:49.048 MQTT: Topic: domoticz/in, Message: {"idx":30,"nvalue":0,"svalue":"","Battery":100,"RSSI":6}
This indicates (to me at least) it is sending data to the MQTT broker which is installed on the Pi Domoticz is running on. Also the idx is the idx I entered on the Shelly and this is the idx of my dummy device light switch.
However the status of the device is not set in Domoticz, neither can I toggle on/off from within Domoticz. I can press the device, it tells me it is switched on, but it isn't.
What step am I missing here? MQTT is working, my other MQTT device (a home built weather station) is transmitting to Domoticz perfectly.
Thanks!
Cannot get Shelly1 MQTT working
Moderator: leecollings
-
Kranendijk
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
-
Kranendijk
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Cannot get Shelly1 MQTT working
And some pictures. MQTT config in Shelly:
(I cannot get rid of the username/pass? ) Domoticz config in Shelly: And the device in Domoticz. As you can see it updates the last seen status after I pressed the toggle button in the Tasmota web interface:
(I cannot get rid of the username/pass? ) Domoticz config in Shelly: And the device in Domoticz. As you can see it updates the last seen status after I pressed the toggle button in the Tasmota web interface:
-
Kranendijk
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Cannot get Shelly1 MQTT working
And some logging in Domoticz when I toggle the switch:
2019-11-30 18:57:19.918 (MQTT) Light/Switch (Gang)
2019-11-30 18:57:19.905 Status: User: Admin initiated a switch command (30/Gang/On)
2019-11-30 18:57:23.509 (MQTT) Light/Switch (Gang)
2019-11-30 18:57:23.497 Status: User: Admin initiated a switch command (30/Gang/Off)
2019-11-30 18:57:19.918 (MQTT) Light/Switch (Gang)
2019-11-30 18:57:19.905 Status: User: Admin initiated a switch command (30/Gang/On)
2019-11-30 18:57:23.509 (MQTT) Light/Switch (Gang)
2019-11-30 18:57:23.497 Status: User: Admin initiated a switch command (30/Gang/Off)
-
Kranendijk
- Posts: 60
- Joined: Wednesday 29 May 2019 14:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Zwolle
- Contact:
Re: Cannot get Shelly1 MQTT working
Solved. Had to set the publish topic in Domoticz to out instead of hierarchical. Now that solved this issue, let's see what happens with mqtt now as I was advised to set the publish topic to hierarchical due to flooding mqtt messages and hanging my pi...
Who is online
Users browsing this forum: No registered users and 1 guest