reorganized code

This commit is contained in:
Mahasri Kalavala
2022-12-04 12:38:48 -05:00
parent 20bdf8ed76
commit bb0cf6db6b
17 changed files with 407 additions and 1092 deletions

View File

@@ -55,3 +55,14 @@ automation:
- tv
- led
- voice
script:
###############################################################################
# A script that toggles Nest Thermostat between eco/away & non-eco/away modes
###############################################################################
toggle_climate:
sequence:
- service: climate.set_away_mode
data_template:
entity_id: climate.dining_room
away_mode: "{{ false if state_attr('climate.dining_room', 'away_mode') == 'on' else true }}"