Good morning and a happy new year to all!
I am Johannes and new here in the forum. Please apologize if my first question is perhaps still unclear and information is missing.
I‘m running a Raspi 3 with a Z-Wave.me module with about 15 devices for my home automation. So far everything works smoothly.
Now I have bought a few WLAN sockets and flashed them with Tasmota. I can address and switch the sockets in the browser, accessing them directly via their IP address. To integrate them into Z-Way, I created a virtual switch under the application "Dummy Device" and an instance of Robin Eggenkamp's MQTT application. This works as much as I can switch the sockets on and off with Z-Way and the power status is also indicated on the virtual switch.
Now the problem. When I press the hardware button on the WLAN socket, the socket switches and also sends the MQTT message. But I can't get the virtual switch to react and display the status change.
I hope that was understandable. Can anyone who has managed to do this please help me? Or suggest another way how I can integrate the Tasmota switches?
Thanks in advance!
Johannes
Z-Way Tasmota and MQTT
Re: Z-Way Tasmota and MQTT
Hi,
had you a look at HTTP-Device?
Here you can configure 3 URL:
URL for action On
URL for action On
URL to get value
I think it could be possible...
Michael
had you a look at HTTP-Device?
Here you can configure 3 URL:
URL for action On
URL for action On
URL to get value
I think it could be possible...
Michael
Re: Z-Way Tasmota and MQTT
Hi Michael,
Thanks a lot for this valuable hint. I will definitely have a look. Although I was preferring to use a protocol that does not require polling the status of the different switches. MQTT seemed to nicely meet this criterion.
Best,
Johannes
Thanks a lot for this valuable hint. I will definitely have a look. Although I was preferring to use a protocol that does not require polling the status of the different switches. MQTT seemed to nicely meet this criterion.
Best,
Johannes
Re: Z-Way Tasmota and MQTT
Hi,
Thanks again for pointing me to the HTTP device. I managed to set the URLs for switching ON and OFF and to read the power status by sending
http://192.168.20.68/cm?cmnd=Power
which returns e.g.
{"POWER":"ON"}.
Could you please help me one more time with the correct inline Javascript code to update the status of the virtual device based on the above response?
Thanks in advance
Johannes
Thanks again for pointing me to the HTTP device. I managed to set the URLs for switching ON and OFF and to read the power status by sending
http://192.168.20.68/cm?cmnd=Power
which returns e.g.
{"POWER":"ON"}.
Could you please help me one more time with the correct inline Javascript code to update the status of the virtual device based on the above response?
Thanks in advance
Johannes
Re: Z-Way Tasmota and MQTT
Folks,
I found a solution which I‘d like to share in case this could be useful for others.
$$.POWER === ‘ON‘ ? ‘on‘ : ‘off‘
I found a solution which I‘d like to share in case this could be useful for others.
$$.POWER === ‘ON‘ ? ‘on‘ : ‘off‘
-
- Posts: 130
- Joined: 02 Jan 2016 01:20
Re: Z-Way Tasmota and MQTT
Hey Johannes,
I ran into the same problem with my shelly modules. The MQTT app does not fully fit the binding-naming sceme of the device.
Hence I instantiated two MQTT apps per device. One app configured to set the MQTT device and one app to catch the messages that the device publishes on status change. That results in unnecessary traffic, but it works
Regards,rws
I ran into the same problem with my shelly modules. The MQTT app does not fully fit the binding-naming sceme of the device.
Hence I instantiated two MQTT apps per device. One app configured to set the MQTT device and one app to catch the messages that the device publishes on status change. That results in unnecessary traffic, but it works

Regards,rws