Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Switch in the front end that acts like a non-locking push button rather than a toggle

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>