Adding restart button to all ESPHome nodes

This commit is contained in:
Jason Williams 2023-06-02 11:41:07 -06:00
parent 2de799c753
commit 2789e0e4c3
4 changed files with 20 additions and 4 deletions

View File

@ -48,4 +48,8 @@ binary_sensor:
device_class: moisture
filters:
- invert
- delayed_off: 5s
- delayed_off: 5s
button:
- platform: restart
name: "Restart"

View File

@ -135,4 +135,8 @@ light:
progress_interval: 10ms
- addressable_random_twinkle
- addressable_fireworks
- addressable_flicker
- addressable_flicker
button:
- platform: restart
name: "Restart"

View File

@ -159,4 +159,8 @@ cover:
condition:
binary_sensor.is_on: garage_door_open
then:
- switch.turn_on: garage_door_switch
- switch.turn_on: garage_door_switch
button:
- platform: restart
name: "Restart"

View File

@ -37,4 +37,8 @@ sensor:
url: !lambda |-
return (std::string) "https://jasonsplant.jaywll.co/newreading?v=" + to_string(int(id(moisture_level).state));
headers:
auth-key: !secret houseplant_key
auth-key: !secret houseplant_key
button:
- platform: restart
name: "Restart"