Page 1 of 1
Tasmota scene trigger not working
Posted: Monday 20 May 2019 19:58
by AnthonyD
Hi,
I have a bunch of Tasmota running sonoffs working well with domoticz.
But I am having trouble getting them to trigger a scene.
I have setup one of them as the trigger of a scene and that works ok if I use the domoticz gui.
However if I use the tasmota web interface or its manual switch, then domoticz reports the on switching by changing its icon etc, but the scene itself does not run.
The tasmota device is set as an on-off light switch, but also tried it as a motion sensor to no effect.
What I am hoping to do is use a pir switch output to activate the sonoff tasmota device to run a scene.
Thanks for any help.
domoticz ver 4.10717 on raspberry pi
tasmota ver 6.5
Re: Tasmota scene trigger not working
Posted: Wednesday 05 August 2020 18:19
by PickleRick
Hi AnhonyD, any luck getting this fixxed? I'm running into the exact same issue.
Domoticz Version: 2020.2 (build 12230)
Sonoff Mini flashed with Tasmota 8.4.0
Re: Tasmota scene trigger not working
Posted: Tuesday 27 October 2020 13:00
by mrblond18
Hi guys,
did any of you find a way to fix this? I am running in the same (kind of) issue. I have a switch that triggers a (bash) script. If I flip the switch in the domoticz UI it works. If I flip the switch using a Tasmota device using MQTT the script is not triggered...
Thanks!
Re: Tasmota scene trigger not working
Posted: Sunday 08 November 2020 14:41
by sydspost
Hi,
Same issue here with a recent added SonOff mini with Tasmota 8.5.1, has anyone some solution ?
Thankx
P.S. I've got multiple SonOff mini's, basics and Wemos D1 mini's with Tasmota/EspEasy which execute a shellscript (bash) just fine. But this recent added device doesn't execute the script when fired via Tasmota/MQTT/Domoticz.
Re: Tasmota scene trigger not working
Posted: Saturday 14 November 2020 23:39
by mrblond18
Guys, I found a solution!
previously I coupled the sonoff (mqtt) devices to domoticz by creating a dummy switch and adding the idx of the dummy switch in the sonoff tasmota device in configuration-->cofigure domoticz. This gave the problem that scenes/scripts weren't triggered when the domoticz switch was updated from the sonoff device via mqtt.
By changing the way the sonoffs are coupled to domoticz I was able to fix this. First, I installed the mqttdiscovery plugin from:
https://github.com/emontnemery/domoticz_mqtt_discovery
Next, updated my sonoff devices to publish its config using "setoption19 1" in the console (as described on the github page of the plugin).
Now a new switch is generated in domoticz which does trigger scenes/scripts when switched from the sonoff device. Unfortunately now I have to create a whole bunch of new switches in domoticz (and remove quite a few)...
p.s. I used a workaround before which had some drawbacks. For the ones interested the workaround is this. I added an off delay of 1s to the domoticz switch which does not execute the script when activated from mqtt. This way the switch auto turns off after 1s. On top, I defined an off script. Then the script does execute.