various esphome changes
This commit is contained in:
@@ -13,11 +13,11 @@ input_select:
|
||||
|
||||
input_boolean:
|
||||
heat_pump_automation:
|
||||
name: Enable Heat Master Bedroom Night Cycling
|
||||
name: Enable Heat Pump Master Bedroom Night Cycling
|
||||
initial: off
|
||||
|
||||
automation:
|
||||
- alias: "Master Bedroom Night Cycling"
|
||||
- alias: "Master Bedroom Heat Pump Night Cycling"
|
||||
description: "Turns the climate.master_bedroom to 'cool' for 15 minutes every hour if temperature is below the selected threshold."
|
||||
trigger:
|
||||
- platform: time_pattern # Use time_pattern to run the automation on a recurring schedule.
|
||||
@@ -31,7 +31,6 @@ automation:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ states('sensor.master_bedroom_environment_zth01_temperature_2') | float > states('input_select.heat_pump_temperature_threshold') | float }}
|
||||
|
||||
# Actions: Define the steps of the automation.
|
||||
action:
|
||||
# Action 1: Turn on the heat pump by setting HVAC mode to "cool".
|
||||
@@ -48,7 +47,6 @@ automation:
|
||||
- service: climate.turn_off
|
||||
target:
|
||||
entity_id: climate.master_bedroom
|
||||
|
||||
mode: single # Ensures only one instance of this automation runs at a time.
|
||||
|
||||
# always switch off the automation at 5am
|
||||
@@ -73,3 +71,15 @@ automation:
|
||||
target:
|
||||
entity_id: climate.master_bedroom
|
||||
mode: single
|
||||
|
||||
# ensure the automation is off on a HA reboot
|
||||
- alias: "Ensure Heat Pump Automation is Off on Startup"
|
||||
description: "Turns off the heat pump automation (input_boolean.heat_pump_automation) when Home Assistant starts."
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.heat_pump_automation
|
||||
mode: single
|
||||
|
Reference in New Issue
Block a user