Home-AssistantConfig icon indicating copy to clipboard operation
Home-AssistantConfig copied to clipboard

Convert to BUTTON from Switch

Open CCOSTAN opened this issue 3 years ago • 2 comments

Restart Juicebox is a perfect implementation of this.

Requires 12.2021 though.

https://www.home-assistant.io/integrations/input_button/

CCOSTAN avatar Dec 17 '21 15:12 CCOSTAN

please explain more about the issue. Some images or example

Rehan52004 avatar Oct 03 '23 16:10 Rehan52004

I have some switches that when I turn off, they just turn back on as they are really buttons (like restarting my Juicebox). image

So rather than this being a switch, I need to change this to a button.

command_line:
    switch:
      name: Restart Juicebox
      unique_id: restart_juicebox_switch
      command_on: "/usr/bin/curl -k 'http://192.168.10.91/command/reboot'"

This might make a good little video. Thanks!

CCOSTAN avatar Oct 03 '23 17:10 CCOSTAN