Domoticz current state - toggle switches after power supply down
Posted: Wednesday 13 December 2017 15:27
Hello guys,
I been trying to create a python script to toggle my switches status whenever there is a power outage.
I have several chacon outlets controlled by an RFX433 device. Whenver there is a power outage at my home and the power is then restabilished, these switches remain off.
My domoticz is supplied by an UPS and I have a relay powered by a normal supply for which I created a switch to know if the power is ON or OFF.
My idea is to activate a python switch whenever the power is restabished by toggling the status of my switches 2 times to bring the outlets to their previous state.
I tried running some scripts using json but without success. I didn't want to be running "curl" commands on my script.
Has anyone run/developed something like this ?
Regards,
I been trying to create a python script to toggle my switches status whenever there is a power outage.
I have several chacon outlets controlled by an RFX433 device. Whenver there is a power outage at my home and the power is then restabilished, these switches remain off.
My domoticz is supplied by an UPS and I have a relay powered by a normal supply for which I created a switch to know if the power is ON or OFF.
My idea is to activate a python switch whenever the power is restabished by toggling the status of my switches 2 times to bring the outlets to their previous state.
I tried running some scripts using json but without success. I didn't want to be running "curl" commands on my script.
Has anyone run/developed something like this ?
Regards,