@mattlward wrote:
I have a couple of switches that do things like turn off my piholes for 10 minutes and restart the webserver on my router. So there is a switch defined and only one action called. Currently if I click on the switch, it will turn on and stay on until I click it again. Is there a way to just click it on and have the visual interface return it to off so it is ready to activate again?
One example is my router webserver restart:
- platform: command_line switches: router: command_on: 'ssh -i /config/.ssh/dd-wrt-pri -F /config/.ssh/config root@192.168.1.1 /jffs/webstart' friendly_name: Router Webserver
Posts: 7
Participants: 3