Page 1 of 1

Scene push on devices + on/off device

Posted: Friday 14 January 2022 14:55
by fabry91
Hello,

I have a scene named "Garage+drive gate" that turn on 2 relays, one if for the garage door and the second if for the garage drive gate (the switch type for this 2 relays is set to "push on button" with off delay 1s).

What I want to reach is to turn on another relay for the garage light (the switch type for this relay is set to "on/off"), when the scene "Garage+drive gate" is triggered to on, and then turn off the garage light when the scene is triggered again to on.

Also, it is possibile to "force" to stay off during day light even if we switch on the scene when there still have light?

It is possibile to do this action without using dzevents?

Thank you in advanced.

Bye bye

Re: Scene push on devices + on/off device

Posted: Sunday 16 January 2022 21:13
by fabry91
Hello,

for everyone that need to do that with a shelly 1 or 2.5 relay with Tasmota firmware on board, I created a virtual switch, setup to "push on" with a on command: "http://ip/cm?cmnd=Power%202%20TOGGLE" and off delay 1s.

So now when I switch the scene the garage light turn on with the toggle command of the virtual switch, and turn of when I switch on again the scene.

We can close the post, thank you

Re: Scene push on devices + on/off device

Posted: Thursday 11 August 2022 11:50
by fabry91
Hello everyone, back with this unsolved problem.

There is a way to sent the ON/OFF mode of Domoticz to a "Toggle" action?

I have a scene that open 2 drive gates with an ON command (that turns off immidiatly after 1s), what I want is that when turning on the scene that opens the drive gates it turns on also a light, and when I re-turn on the scene it turns off the light.

With the toggle command sometimes it turns on the light and sometimes it turn on off fast without staying on.

Someone have any ideas?

Re: Scene push on devices + on/off device

Posted: Thursday 11 August 2022 13:59
by waltervl
If there is no toggle command in the scene configuration for your light device then it is not possible.
I only can think of using the eventsystem to script the same behavior of a scene with a Blockly or dzVents script.

Re: Scene push on devices + on/off device

Posted: Friday 12 August 2022 12:43
by fabry91
waltervl wrote: Thursday 11 August 2022 13:59 If there is no toggle command in the scene configuration for your light device then it is not possible.
I only can think of using the eventsystem to script the same behavior of a scene with a Blockly or dzVents script.
Thank you for your answer, finally I created a new switch device, set to Push On Button and set a on action with the Tasmota toggle script.

Next I inserted the device to the scene list devices and when triggered it turns on and off :)

Re: Scene push on devices + on/off device

Posted: Friday 12 August 2022 13:13
by waltervl
Yes, that is also a possibility to use the toggle function of Tasmota ;-)