On - Off Switch

Moderator: leecollings

Post Reply
paul402
Posts: 105
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

On - Off Switch

Post by paul402 »

I have an on/off switch which executes a python script to write a value to a file. It writes a 1 for on and a 0 for off.
There is no programming to change the state of the switch itself.
Three or so seconds after pressing "on" the switch state reverts to "off", although the script to write the value for off is not executed.
If I select "off" on the switch whilst it is "on" then the script to write the value for off is executed.
Please tell me what is happening to reset the switch! Have I selected the incorrect switch type for what I want to do?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest