Struggle to setup Tasmota relay output from HA

I have a module with Tasmota. I configured 2 relay outputs and I able to toggle the 2 relays from the Tasmota GUI:
afbeelding

The module is detected by the Tasmota integration:

When I toggle the Tasmota or Tasmota2 toggle switch, nothing happens.
The Tasmota console set in debug mode gives no data when I toggle the HA switches.
Who can help?
Thanks in advance!

Please share the logs from the tasmota console.

Here you go

00:00:00.049 CFG: Loaded from flash at FB, Count 97
00:00:00.055 QPC: Count 1
00:00:00.056 CFG: CR 380/699, Busy 0
00:00:00.060 SRC: Restart
00:00:00.061 Project tasmota Tasmota Version 9.3.1(tasmota)-2_7_4_9(2021-03-09T16:12:28)
00:00:00.213 WIF: Checking connection...
00:00:00.213 WIF: Attempting connection...
00:00:00.550 WIF: Connecting to AP1 XXXXX Channel 11 BSSId XX:XX:XX:XX:XX:XX in mode 11n as Velux-7460...
00:00:01.755 WIF: Checking connection...
00:00:01.756 WIF: Connected
00:00:02.008 HTP: Web server active on Velux-7460 with IP address 192.168.100.11
00:00:02.484 RTC: UTC 2021-03-13T15:24:19, DST 2021-03-28T02:00:00, STD 2021-10-31T03:00:00
16:24:20.038 MQT: Attempting connection...
16:24:20.497 MQT: Connected
16:24:20.501 MQT: switch/tele/Velux/LWT = Online (retained)
16:24:20.503 MQT: switch/cmnd/Velux/POWER = 
16:24:20.505 MQT: Subscribe to switch/cmnd/Velux/#
16:24:20.508 MQT: Subscribe to switch/cmnd/tasmotas/#
16:24:20.510 MQT: Subscribe to cmnd/DVES_0FBD24_fb/#
16:24:20.513 MQT: Unsubscribe from homeassistant/status
16:24:20.517 MQT: switch/tele/Velux/INFO1 = {"Module":"Velux-sturing","Version":"9.3.1(tasmota)","FallbackTopic":"cmnd/DVES_0FBD24_fb/","GroupTopic":"switch/cmnd/tasmotas/"}
16:24:20.526 MQT: switch/tele/Velux/INFO2 = {"WebServerMode":"Admin","Hostname":"Velux-7460","IPAddress":"192.168.100.11"}
16:24:20.536 MQT: switch/tele/Velux/INFO3 = {"RestartReason":"Software/System restart"}
16:24:20.544 MQT: switch/stat/Velux/RESULT = {"POWER1":"OFF"}
16:24:20.549 MQT: switch/stat/Velux/POWER1 = OFF
16:24:20.554 MQT: switch/stat/Velux/RESULT = {"POWER2":"OFF"}
16:24:20.558 MQT: switch/stat/Velux/POWER2 = OFF
16:24:21.580 SRC: MQTT
16:24:21.582 CMD: Group 0, Index 1, Command "STATE", Data ""
16:24:21.588 MQT: switch/tele/Velux/STATE = {"Time":"2021-03-13T16:24:21","Uptime":"0T00:00:06","UptimeSec":6,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":33,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":38,"Signal":-81,"LinkCount":1,"Downtime":"0T00:00:03"}}
16:24:21.611 MQT: switch/stat/Velux/RESULT = {"Time":"2021-03-13T16:24:21","Uptime":"0T00:00:06","UptimeSec":6,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":33,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":38,"Signal":-81,"LinkCount":1,"Downtime":"0T00:00:03"}}
16:24:23.453 QPC: Reset
16:24:24.397 MQT: switch/tele/Velux/STATE = {"Time":"2021-03-13T16:24:24","Uptime":"0T00:00:09","UptimeSec":9,"Heap":28,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":23,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":40,"Signal":-80,"LinkCount":1,"Downtime":"0T00:00:03"}}
16:24:25.393 APP: Boot Count 18
16:24:25.865 CFG: Saved to flash at FA, Count 98, Bytes 4096
16:24:28.159 HTP: Console
16:24:29.437 MQT: tasmota/discovery/24A1600FBD24/config = {"ip":"192.168.100.11","dn":"Tasmota","fn":["Tasmota","Tasmota2",null,null,null,null,null,null],"hn":"Velux-7460","mac":"24A1600FBD24","md":"Velux-sturing","ty":0,"if":0,"ofln":"Offline","onln":"Online","state":["OFF","ON","TOGGLE","HOLD"],"sw":"9.3.1","t":"Velux","ft":"switch/%prefix%/%topic%/","tp":["cmnd","stat","tele"],"rl":[1,1,0,0,0,0,0,0],"swc":[-1,-1,-1,-1,-1,-1,-1,-1],"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0],"so":{"4":0,"11":0,"13":0,"17":1,"20":0,"30":0,"68":0,"73":0,"82":0,"114":0,"117":0},"lk":1,"lt_st":0,"sho":[0,0,0,0],"ver":1} (retained)
16:24:29.440 MQT: tasmota/discovery/24A1600FBD24/sensors = {"sn":{"Time":"2021-03-13T16:24:29"},"ver":1} (retained)

When I use the Developer Tools -> MQTT dump feature in HA and toggle the switches by Tasmota GUI I get:

switch/tele/Velux/STATE,{"Time":"2021-03-13T15:42:12","Uptime":"0T00:02:13","UptimeSec":133,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/RESULT,{"Time":"2021-03-13T15:42:12","Uptime":"0T00:02:13","UptimeSec":133,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/LOGGING,15:42:12.948 SRC: MQTT
switch/stat/Velux/LOGGING,15:42:12.952 CMD: Group 0, Index 1, Command "STATE", Data ""
switch/stat/Velux/LOGGING,15:42:12.960 MQT: switch/tele/Velux/STATE = {"Time":"2021-03-13T15:42:12","Uptime":"0T00:02:13","UptimeSec":133,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/LOGGING,15:42:12.987 MQT: switch/stat/Velux/RESULT = {"Time":"2021-03-13T15:42:12","Uptime":"0T00:02:13","UptimeSec":133,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/tele/Velux/STATE,{"Time":"2021-03-13T15:42:15","Uptime":"0T00:02:16","UptimeSec":136,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/RESULT,{"POWER1":"ON"}
switch/stat/Velux/POWER1,ON
switch/stat/Velux/LOGGING,15:42:15.227 SRC: WebGui from 192.168.100.111
switch/stat/Velux/LOGGING,15:42:15.235 MQT: switch/tele/Velux/STATE = {"Time":"2021-03-13T15:42:15","Uptime":"0T00:02:16","UptimeSec":136,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":1,"POWER1":"ON","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/LOGGING,15:42:15.261 MQT: switch/stat/Velux/RESULT = {"POWER1":"ON"}
switch/stat/Velux/LOGGING,15:42:15.266 MQT: switch/stat/Velux/POWER1 = ON
switch/stat/Velux/LOGGING,15:42:16.117 CFG: Saved to flash at F9, Count 83, Bytes 4096
switch/tele/Velux/STATE,{"Time":"2021-03-13T15:42:18","Uptime":"0T00:02:19","UptimeSec":139,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":28,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/RESULT,{"POWER1":"OFF"}
switch/stat/Velux/POWER1,OFF
switch/stat/Velux/LOGGING,15:42:18.523 SRC: WebGui from 192.168.100.111
switch/stat/Velux/LOGGING,15:42:18.532 MQT: switch/tele/Velux/STATE = {"Time":"2021-03-13T15:42:18","Uptime":"0T00:02:19","UptimeSec":139,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":28,"MqttCount":1,"POWER1":"OFF","POWER2":"OFF","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":54,"Signal":-73,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/LOGGING,15:42:18.558 MQT: switch/stat/Velux/RESULT = {"POWER1":"OFF"}
switch/stat/Velux/LOGGING,15:42:18.563 MQT: switch/stat/Velux/POWER1 = OFF
switch/stat/Velux/LOGGING,15:42:19.600 CFG: Saved to flash at F8, Count 84, Bytes 4096
switch/tele/Velux/STATE,{"Time":"2021-03-13T15:42:20","Uptime":"0T00:02:21","UptimeSec":141,"Heap":27,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":24,"MqttCount":1,"POWER1":"OFF","POWER2":"ON","Wifi":{"AP":1,"SSId":"VaCoHo","BSSId":"42:84:6A:FD:91:DF","Channel":11,"RSSI":52,"Signal":-74,"LinkCount":1,"Downtime":"0T00:00:04"}}
switch/stat/Velux/RESULT,{"POWER2":"ON"}
switch/stat/Velux/POWER2,ON

What is the mqtt topic of the tasmota switch?
I hope you have set SetOption19 0

afbeelding
So far I have not changed SetOption19. Should it be 0 or 1?

If you haven’t changed setoption19 then it would be 0 by default. Please also share the full topic from mqtt config

Thanks for your time!

1 Like

Change the full topic to %prefix%/%topic%/ and then reboot the device and try. Also reboot the HA server.

Many thanks! It works fine now!

1 Like