Initial radiator config

This commit is contained in:
2020-11-18 23:06:28 +02:00
parent 7c6255f2e8
commit 129aa527f4
16 changed files with 226 additions and 32 deletions
@@ -85,7 +85,7 @@ cards:
cards:
- type: "custom:mini-graph-card"
entities:
- sensor.living_room_thermostat_temperature
- sensor.living_room_radiator_temperature
cache: false
group_by: hour
hours_to_show: 72
@@ -19,6 +19,20 @@ cards:
layout: horizontal
max_columns: 3
cards:
- type: entities
title: Climate
icon: mdi:thermometer
show_header_toggle: false
entities:
- input_boolean.heating_enabled
- input_number.radiators_temperature
- climate.living_room_radiator_mode
- climate.bedroom_radiator_mode
- climate.kitchen_radiator_mode
- script.turn_on_all_radiators
- type: divider
- input_number.toshiba_cool_temp
- input_number.toshiba_trigger_temp
- type: custom:decluttering-card
template: climate_card
variables:
@@ -163,6 +163,10 @@ cards:
show_header_toggle: false
icon: mdi:air-purifier
entities:
- script.turn_on_all_radiators
- automation.climate_heating_turn_on_all_radiators_at_5_am
- automation.climate_heating_link_living_room_radiator_to_windows
- type: divider
- automation.climate_ac_turn_on_if_hot
- automation.climate_ac_turn_off
- type: divider
@@ -33,8 +33,14 @@ cards:
entity: sensor.multisensor_6_battery_level
name: Multisensor
- type: custom:battery-entity-row
entity: sensor.living_room_thermostat_battery_level
name: Thermostat
entity: sensor.living_room_radiator_battery_level
name: Living Room Radiator
- type: custom:battery-entity-row
entity: sensor.bedroom_radiator_battery_level
name: Bedroom Radiator
- type: custom:battery-entity-row
entity: sensor.kitchen_radiator_battery_level
name: Kitchen Room Radiator
- type: custom:battery-entity-row
entity: sensor.aeon_labs_zw130_wallmote_quad_battery_level
name: Wallmote
@@ -0,0 +1,18 @@
ac_button_card:
card:
type: custom:button-card
template: default
entity: climate.toshiba_ac
name: AC
state:
- value: 'off'
operator: '!='
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
tap_action:
action: call-service
service: script.toshiba_ac_toggle_cool
@@ -0,0 +1,21 @@
radiator_button_card:
card:
type: custom:button-card
template: default
entity: "[[entity_id]]"
name: Radiator
icon: mdi:radiator
state:
- value: 'off'
operator: '!='
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
tap_action:
action: call-service
service: script.toggle_radiator
service_data:
entity_id: "[[entity_id]]"
@@ -83,8 +83,12 @@
scene_color_1: rgb(254, 255, 209)
- type: horizontal-stack
title: Purifier
title: Climate
cards:
- type: custom:decluttering-card
template: radiator_button_card
variables:
- entity_id: climate.bedroom_radiator_mode
- type: custom:button-card
template:
- default
@@ -48,6 +48,10 @@
- type: horizontal-stack
title: Devices
cards:
- type: custom:decluttering-card
template: radiator_button_card
variables:
- entity_id: climate.kitchen_radiator_mode
- type: custom:decluttering-card
template: brita_water_card
- type: custom:button-card
@@ -95,14 +95,14 @@
entity: binary_sensor.pi_hole_enabled
name: Pi-Hole
icon: mdi:pi-hole
- type: entities
entities:
- entity: climate.living_room_thermostat_mode
name: Radiator
- entity: climate.toshiba_ac
name: AC
- entity: input_number.toshiba_cool_temp
- entity: input_number.toshiba_trigger_temp
- type: horizontal-stack
cards:
- type: custom:decluttering-card
template: radiator_button_card
variables:
- entity_id: climate.living_room_radiator_mode
- type: custom:decluttering-card
template: ac_button_card
- type: vertical-stack
cards:
@@ -188,7 +188,7 @@
template:
- small
- progress
entity: sensor.living_room_thermostat_temperature
entity: sensor.living_room_radiator_temperature
name: Radiator temperature
- type: custom:button-card
template:
@@ -134,22 +134,8 @@
- type: horizontal-stack
cards:
- type: custom:button-card
template: default
entity: climate.toshiba_ac
name: AC
state:
- value: 'off'
operator: '!='
styles:
card:
- background-color: var(--primary-color)
- color: black
icon:
- color: black
tap_action:
action: call-service
service: script.toshiba_ac_toggle_cool
- type: custom:decluttering-card
template: ac_button_card
- type: custom:button-card
template: default
entity: switch.camera
+1 -1
View File
@@ -353,7 +353,7 @@ sensor.average_temperature:
template:
- small
- progress
entity: sensor.living_room_thermostat_temperature
entity: sensor.living_room_radiator_temperature
name: Radiator
state_display: "[[[ return Math.round(entity.state) + ' °C' ]]]"
- type: custom:button-card
@@ -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
+2 -2
View File
@@ -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
+1
View File
@@ -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