Last active
March 4, 2024 08:48
-
-
Save kai-zer-ru/1133a2863eca1ffe9a9d8172bcc47262 to your computer and use it in GitHub Desktop.
water_heater.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Упраление чайником | |
description: Управляем чайником | |
domain: automation | |
input: | |
water_heater: | |
name: Чайник | |
selector: | |
entity: | |
filter: | |
- domain: | |
- water_heater | |
multiple: false | |
alarm_control_panel: | |
name: Сигнализация | |
selector: | |
entity: | |
filter: | |
- domain: | |
- alarm_control_panel | |
multiple: false | |
mode: restart | |
max_exceeded: silent | |
trigger: | |
- platform: numeric_state | |
entity_id: | |
- !input water_heater | |
attribute: current_temperature | |
below: 60 | |
id: heat | |
- platform: numeric_state | |
entity_id: !input water_heater | |
attribute: current_temperature | |
above: 98 | |
id: heat_after_boil | |
- platform: numeric_state | |
entity_id: !input water_heater | |
attribute: current_temperature | |
below: 35 | |
for: | |
hours: 0 | |
minutes: 0 | |
seconds: 0 | |
id: boil | |
- platform: time | |
at: "00:00:00" | |
id: time | |
condition: [] | |
action: | |
- if: | |
- condition: trigger | |
id: | |
- heat | |
then: | |
- if: | |
- condition: and | |
conditions: | |
- condition: time | |
after: "06:00:00" | |
before: "23:50:00" | |
- condition: or | |
conditions: | |
- condition: state | |
entity_id: !input alarm_control_panel | |
state: disarmed | |
- condition: state | |
entity_id: !input alarm_control_panel | |
state: armed_home | |
then: | |
- service: water_heater.set_temperature | |
data: | |
temperature: 70 | |
operation_mode: Heat | |
target: | |
entity_id: !input water_heater | |
- if: | |
- condition: trigger | |
id: | |
- heat_after_boil | |
then: | |
- delay: | |
hours: 0 | |
minutes: 0 | |
seconds: 10 | |
milliseconds: 0 | |
- service: water_heater.set_temperature | |
data: | |
temperature: 70 | |
operation_mode: Heat | |
target: | |
entity_id: !input water_heater | |
- if: | |
- condition: trigger | |
id: | |
- boil | |
then: | |
- if: | |
- condition: and | |
conditions: | |
- condition: time | |
after: "06:00:00" | |
before: "23:50:00" | |
- condition: or | |
conditions: | |
- condition: state | |
entity_id: !input alarm_control_panel | |
state: disarmed | |
- condition: state | |
entity_id: !input alarm_control_panel | |
state: armed_home | |
then: | |
- service: water_heater.set_operation_mode | |
data: | |
operation_mode: Boil+Heat | |
target: | |
entity_id: !input water_heater | |
- if: | |
- condition: trigger | |
id: | |
- time | |
then: | |
- service: water_heater.set_operation_mode | |
data: | |
operation_mode: "off" | |
target: | |
entity_id: !input water_heater |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment