Skip to content

Commit

Permalink
Added automation to turn on under floor heating when rates are below …
Browse files Browse the repository at this point in the history
…0p/kW.
  • Loading branch information
dannytsang committed Oct 29, 2023
1 parent 2009be4 commit 41f4813
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/home.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,16 @@ script:
command: power
target:
entity_id: remote.bedroom_remote
- service: script.send_to_home_log
data:
message: "Turning conservatory under floor heating."
log_level: "Debug"
- service: climate.set_temperature
data:
temperature: "{{ states('input_number.conservatory_default_under_floor_temperature')|float }}"
hvac_mode: off
target:
entity_id: climate.conservatory_under_floor_heating
mode: single
asleep_turn_everything_off:
alias: Asleep Turn Everything Off
Expand Down
105 changes: 105 additions & 0 deletions packages/rooms/conservatory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,111 @@ automation:
- person.danny
- person.terina
mode: single
# Unit rate related automations
- id: "1689626117479"
alias: "Conservatory: Electricity Rates Pays For Usage"
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.electricity_current_rate
below: 0
condition:
- condition: state
entity_id: input_boolean.enable_conservatory_under_floor_heating_automations
state: "on"
- alias: "Not in holiday mode"
not:
- condition: state
entity_id: input_select.home_mode
state: Holiday
action:
- choose:
- conditions:
- condition: numeric_state
entity_id: sensor.conservatory_area_mean_temperature
below: "25"
- condition: numeric_state
entity_id: climate.conservatory_under_floor_heating
attribute: temperature
below: "20"
sequence:
- parallel:
- service: script.send_to_home_log
data:
message: >-
Electrictity rate below 0 ({{ states('sensor.electricity_current_rate', with_unit=True) }}).
Setting under floor target temperature to 20°C (currently
{{ state_attr('climate.conservatory_under_floor_heating', 'temperature') }}°C).
title: Conservatory
log_level: "Normal"
- service: climate.set_temperature
data:
temperature: 20
hvac_mode: heat
target:
entity_id: climate.conservatory_under_floor_heating
- alias: "Air temperature is hot but floor is cool"
conditions:
- condition: numeric_state
entity_id: sensor.conservatory_area_mean_temperature
above: "24"
- condition: numeric_state
entity_id: climate.conservatory_under_floor_heating
attribute: temperature
below: "20"
sequence:
- parallel:
- service: script.send_to_home_log
data:
message: "Ambient air temperature is above 24°C ({{ states('sensor.conservatory_area_mean_temperature', with_unit=True) }})
but floor is cool {{ state_attr('climate.conservatory_under_floor_heating', 'temperature') }}°C).
Skipping Underfloor heating."
title: "Conservatory"
people:
- person.danny
default:
- service: script.send_direct_notification
data:
message: "Ambient air temperature is above 21°C. Skipping Underfloor heating."
title: "Conservatory"
people:
- person.danny
mode: single
- id: "1689626117480"
alias: "Conservatory: Electricity Rates Starts To Cost"
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.electricity_current_rate
above: -0.01
condition:
- condition: numeric_state
entity_id: climate.conservatory_under_floor_heating
attribute: temperature
above: "{{ states('input_number.conservatory_default_under_floor_temperature')|float }}"
- alias: "Not in holiday mode"
not:
- condition: state
entity_id: input_select.home_mode
state: Holiday
- condition: state
entity_id: input_boolean.enable_conservatory_under_floor_heating_automations
state: "on"
action:
- parallel:
- service: script.send_to_home_log
data:
message: >-
Turning off under floor heating by setting target temperature to {{ states('input_number.conservatory_default_under_floor_temperature', with_unit=True) }}.
title: Conservatory
log_level: "Debug"
- service: climate.set_temperature
data:
temperature: "{{ states('input_number.conservatory_default_under_floor_temperature')|float }}"
hvac_mode: heat
target:
entity_id: climate.conservatory_under_floor_heating
mode: single

scene:
- id: "1610234583738"
Expand Down

0 comments on commit 41f4813

Please sign in to comment.