CCOSTAN / Home-AssistantConfig

:house: Home Assistant configuration & Documentation for my Smart House. Write-ups, videos, part lists, and links throughout. Be sure to :star: it. Updated FREQUENTLY!
https://www.vCloudInfo.com
Other
4.82k stars 505 forks source link

Convert to BUTTON from Switch #1159

Open CCOSTAN opened 2 years ago

CCOSTAN commented 2 years ago

Restart Juicebox is a perfect implementation of this.

Requires 12.2021 though.

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

Rehan52004 commented 1 year ago

please explain more about the issue. Some images or example

CCOSTAN commented 1 year ago

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!