Chinese push button as a toggeling swich Solved!
Posted: Tuesday 27 August 2019 15:48
Hello
I'm new in Domoticz. The most things I have done before worked fine. But there is one thing, that I'm not able to create. I guess it should be very easy, but I don't find a way that is working.
The scenario is very simple: A cheap chinese Pushbutton (connected via RFXcom) should trigger a wireless socket switching on or off: First push on, second push off and so on. For programming the toggle functionality I use a blockly script (right?).
I'm able to generate a script for switching the socket on. But when I try to expand the scipt for toggeling, nothing happens or the socket switches on/off peremanently.
Perhaps somebody can advice me?
Greetings
Stefan
I'm new in Domoticz. The most things I have done before worked fine. But there is one thing, that I'm not able to create. I guess it should be very easy, but I don't find a way that is working.
The scenario is very simple: A cheap chinese Pushbutton (connected via RFXcom) should trigger a wireless socket switching on or off: First push on, second push off and so on. For programming the toggle functionality I use a blockly script (right?).
I'm able to generate a script for switching the socket on. But when I try to expand the scipt for toggeling, nothing happens or the socket switches on/off peremanently.
Perhaps somebody can advice me?
Greetings
Stefan