mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Initial radiator config
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
input_boolean:
|
||||
heating_enabled:
|
||||
name: Heating enabled centrally
|
||||
icon: mdi:radiator
|
||||
|
||||
input_number:
|
||||
radiators_temperature:
|
||||
name: Radiators target temperature
|
||||
unit_of_measurement: "°C"
|
||||
mode: box
|
||||
min: 22
|
||||
max: 27
|
||||
step: 0.5
|
||||
icon: mdi:temperature-celsius
|
||||
|
||||
group:
|
||||
all_radiators:
|
||||
name: "All Radiators"
|
||||
entities:
|
||||
- climate.living_room_radiator_mode
|
||||
- climate.bedroom_radiator_mode
|
||||
- climate.kitchen_radiator_mode
|
||||
|
||||
script:
|
||||
maybe_turn_radiator_on:
|
||||
alias: Climate · Heating · Maybe turn radiator on
|
||||
sequence:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.heating_enabled
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.georgi_home
|
||||
state: "on"
|
||||
- service: climate.turn_on
|
||||
data_template:
|
||||
entity_id: "{{ entity_id }}"
|
||||
- service: climate.set_temperature
|
||||
data_template:
|
||||
entity_id: "{{ entity_id }}"
|
||||
temperature: "{{ states('input_number.radiators_temperature') | int | default(25) }}"
|
||||
|
||||
toggle_radiator:
|
||||
alias: Climate · Heating · Toggle radiator
|
||||
sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: "{{ is_state(entity_id, 'off') }}"
|
||||
sequence:
|
||||
- service: script.maybe_turn_radiator_on
|
||||
data_template:
|
||||
entity_id: "{{ entity_id }}"
|
||||
default:
|
||||
- service: climate.turn_off
|
||||
data_template:
|
||||
entity_id: "{{ entity_id }}"
|
||||
|
||||
turn_on_all_radiators:
|
||||
alias: Climate · Heating · Turn on all radiators
|
||||
sequence:
|
||||
- condition: and
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.heating_enabled
|
||||
state: "on"
|
||||
- condition: state
|
||||
entity_id: binary_sensor.georgi_home
|
||||
state: "on"
|
||||
- service: script.maybe_turn_radiator_on
|
||||
data:
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
- service: script.maybe_turn_radiator_on
|
||||
data:
|
||||
entity_id: climate.bedroom_radiator_mode
|
||||
- service: script.maybe_turn_radiator_on
|
||||
data:
|
||||
entity_id: climate.kitchen_radiator_mode
|
||||
|
||||
automation:
|
||||
- alias: Climate · Heating · Turn on all radiators at 5 am
|
||||
trigger:
|
||||
platform: time
|
||||
at: "05:00:00"
|
||||
action:
|
||||
- service: script.turn_on_all_radiators
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "💨 Climate module · "
|
||||
message: "Heating On · All rooms · 5 AM"
|
||||
domain: climate
|
||||
|
||||
- alias: Climate · Heating · Link living room radiator to windows
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
state: "on"
|
||||
- condition: not
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: climate.turn_off
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "💨 Climate module · "
|
||||
message: "Heating Off · Living room · Window opened"
|
||||
domain: climate
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
state: "off"
|
||||
sequence:
|
||||
- service: script.maybe_turn_radiator_on
|
||||
data:
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "💨 Climate module · "
|
||||
message: "Heating On · Living room · Window closed"
|
||||
domain: climate
|
||||
@@ -50,14 +50,14 @@ homekit:
|
||||
- binary_sensor.trisensor_motion
|
||||
- binary_sensor.multisensor_motion
|
||||
- sensor.bedroom_weather_temperature
|
||||
- sensor.living_room_thermostat_temperature
|
||||
- sensor.living_room_radiator_temperature
|
||||
- sensor.trisensor_temperature
|
||||
- sensor.multisensor_6_temperature
|
||||
- sensor.hallway_motion_illuminance
|
||||
- sensor.kitchen_motion_illuminance
|
||||
- sensor.purifier_humidity
|
||||
- sensor.bedroom_weather_humidity
|
||||
- climate.living_room_thermostat_mode
|
||||
- climate.living_room_radiator_mode
|
||||
- climate.toshiba_ac
|
||||
- media_player.master_bedroom
|
||||
- switch.desk_outlet
|
||||
|
||||
@@ -20,6 +20,8 @@ script:
|
||||
- service: script.toshiba_ac_on_cool_if_hot
|
||||
- service: script.sonos_join_bedroom
|
||||
- service: script.routine_coming_home_welcome_home
|
||||
- service: script.turn_on_all_radiators
|
||||
|
||||
|
||||
routine_coming_home_after_sunset:
|
||||
alias: Routine · Coming home · After sunset
|
||||
@@ -89,3 +91,4 @@ automation:
|
||||
"Cool, I'll be ready!"
|
||||
] | random
|
||||
}}
|
||||
- service: script.turn_on_all_radiators
|
||||
|
||||
@@ -26,6 +26,7 @@ script:
|
||||
- media_player.nvidia_shield
|
||||
- media_player.living_room_tv
|
||||
- switch.titanium
|
||||
- group.all_radiators
|
||||
|
||||
- service: light.turn_on
|
||||
entity_id: light.browser_kitchen
|
||||
|
||||
@@ -11,6 +11,7 @@ script:
|
||||
- media_player.living_room_tv
|
||||
- light.all
|
||||
- climate.toshiba_ac
|
||||
- group.all_radiators
|
||||
- fan.philips_airpurifier
|
||||
|
||||
- service: media_player.media_stop
|
||||
|
||||
Reference in New Issue
Block a user