Tasmota scene trigger not working

Moderator: leecollings

Post Reply
AnthonyD
Posts: 5
Joined: Thursday 07 September 2017 10:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tasmota scene trigger not working

Post 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
User avatar
PickleRick
Posts: 1
Joined: Monday 13 January 2020 23:23
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11605
Location: Leiden
Contact:

Re: Tasmota scene trigger not working

Post 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
mrblond18
Posts: 9
Joined: Monday 21 December 2015 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: netherlands
Contact:

Re: Tasmota scene trigger not working

Post 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!
sydspost
Posts: 2
Joined: Wednesday 04 November 2020 10:33
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tasmota scene trigger not working

Post 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.
mrblond18
Posts: 9
Joined: Monday 21 December 2015 11:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: netherlands
Contact:

Re: Tasmota scene trigger not working

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest