Skip to content

Commit

Permalink
Add toggle thremostat between off and heat script
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Jan 7, 2024
1 parent ead7dcd commit 162cf4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,15 @@ set_high_temperature:
temperature: >
{{ states("input_number.temperature_high") }}
toggle_thermostat_off_heat:
alias: Toggle climate between 'off' and 'heat'
sequence:
- service: climate.set_hvac_mode
entity_id: climate.thermostat
data:
hvac_mode: |-
{{ "off" if is_state('climate.thermostat', "heat") else "heat" }}
leaving:
alias: Leaving the house
sequence:
Expand Down

0 comments on commit 162cf4d

Please sign in to comment.