homeassistant disable heater

This commit is contained in:
Ingolf Wagner 2021-01-11 00:41:29 +01:00
parent 7284ffdec9
commit 05fed32fe3
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -66,8 +66,8 @@ in {
input_boolean.windows_up.icon = "mdi:toggle-switch";
# heater scenes
input_select.heater_state.options = [ "off" "on1" "on2" "on3" ];
input_select.heater_state_memory.options = [ "off" "on1" "on2" "on3" ];
#input_select.heater_state.options = [ "off" "on1" "on2" "on3" ];
#input_select.heater_state_memory.options = [ "off" "on1" "on2" "on3" ];
automation = [
@ -153,26 +153,26 @@ in {
option = "outside";
};
}
{
service = "input_select.select_option";
data_template = {
entity_id = "input_select.heater_state_memory";
option = ''
{% if not is_state("input_select.heater_state", "off") %}
{{ states('input_select.heater_state') }}
{%- else -%}
{{ states('input_select.heater_state_memory') }}
{%- endif %}
'';
};
}
{
service = "input_select.select_option";
data = {
entity_id = "input_select.heater_state";
option = "off";
};
}
#{
# service = "input_select.select_option";
# data_template = {
# entity_id = "input_select.heater_state_memory";
# option = ''
# {% if not is_state("input_select.heater_state", "off") %}
# {{ states('input_select.heater_state') }}
# {%- else -%}
# {{ states('input_select.heater_state_memory') }}
# {%- endif %}
# '';
# };
#}
#{
# service = "input_select.select_option";
# data = {
# entity_id = "input_select.heater_state";
# option = "off";
# };
#}
];
}
@ -206,13 +206,13 @@ in {
option = "default";
};
}
{
service = "input_select.select_option";
data_template = {
entity_id = "input_select.heater_state";
option = "{{ states('input_select.heater_state_memory') }}";
};
}
#{
# service = "input_select.select_option";
# data_template = {
# entity_id = "input_select.heater_state";
# option = "{{ states('input_select.heater_state_memory') }}";
# };
#}
];
}
@ -233,7 +233,7 @@ in {
alias = "windows state = up in the morning";
trigger = [{
platform = "time";
at = "09:00:00";
at = "08:30:00";
}];
action = [{
service = "input_boolean.turn_on";
@ -265,29 +265,29 @@ in {
}
# heater
{
alias = "heater state = on1 in the morning";
trigger = [{
platform = "time";
at = "09:00:00";
}];
action = [
{
service = "input_select.select_option";
data = {
entity_id = "input_select.heater_state";
option = "on1";
};
}
{
service = "input_select.select_option";
data = {
entity_id = "input_select.heater_state_memory";
option = "on1";
};
}
];
}
#{
# alias = "heater state = on1 in the morning";
# trigger = [{
# platform = "time";
# at = "09:00:00";
# }];
# action = [
# {
# service = "input_select.select_option";
# data = {
# entity_id = "input_select.heater_state";
# option = "on1";
# };
# }
# {
# service = "input_select.select_option";
# data = {
# entity_id = "input_select.heater_state_memory";
# option = "on1";
# };
# }
# ];
#}
#{
# alias = "heater state = on2 in the early evening";
# trigger = [{
@ -311,47 +311,47 @@ in {
# }
# ];
#}
{
alias = "heater state = off in the evening";
trigger = [{
platform = "time";
at = "23:30:00";
}];
action = [
{
service = "input_select.select_option";
data = {
entity_id = "input_select.heater_state";
option = "off";
};
}
{
service = "input_select.select_option";
data = {
entity_id = "input_select.heater_state_memory";
option = "off";
};
}
];
}
{
alias = "handle heater state";
trigger = [
{
platform = "time_pattern";
minutes = "/10"; # every 5 minutes
}
{
platform = "state";
entity_id = "input_select.heater_state";
}
];
action = [{
service = "script.turn_on";
data_template.entity_id =
"script.heater_{{ states('input_select.heater_state') }}";
}];
}
#{
# alias = "heater state = off in the evening";
# trigger = [{
# platform = "time";
# at = "23:30:00";
# }];
# action = [
# {
# service = "input_select.select_option";
# data = {
# entity_id = "input_select.heater_state";
# option = "off";
# };
# }
# {
# service = "input_select.select_option";
# data = {
# entity_id = "input_select.heater_state_memory";
# option = "off";
# };
# }
# ];
#}
#{
# alias = "handle heater state";
# trigger = [
# {
# platform = "time_pattern";
# minutes = "/10"; # every 5 minutes
# }
# {
# platform = "state";
# entity_id = "input_select.heater_state";
# }
# ];
# action = [{
# service = "script.turn_on";
# data_template.entity_id =
# "script.heater_{{ states('input_select.heater_state') }}";
# }];
#}
];
group = let
@ -441,50 +441,50 @@ in {
};
in {
heater_off = {
sequence = [
(heater_on "heater1" 5) # office
{ delay = delay; }
(heater_on "heater2" 5) # office
{ delay = delay; }
(heater_on "heater3" 5) # bed room
{ delay = delay; }
(heater_on "heater4" 5) # storage room
];
};
heater_on1 = {
sequence = [
(heater_on "heater1" hot) # office
{ delay = delay; }
(heater_on "heater2" hot) # office
{ delay = delay; }
(heater_on "heater3" cold) # bed room
{ delay = delay; }
(heater_on "heater4" cold) # storage room
];
};
heater_on2 = {
sequence = [
(heater_on "heater1" hot) # office
{ delay = delay; }
(heater_on "heater2" hot) # office
{ delay = delay; }
(heater_on "heater3" hot) # bed room
{ delay = delay; }
(heater_on "heater4" cold) # storage room
];
};
heater_on3 = {
sequence = [
(heater_on "heater1" cold) # office
{ delay = delay; }
(heater_on "heater2" cold) # office
{ delay = delay; }
(heater_on "heater3" hot) # bed room
{ delay = delay; }
(heater_on "heater4" cold) # storage room
];
};
#heater_off = {
# sequence = [
# (heater_on "heater1" 5) # office
# { delay = delay; }
# (heater_on "heater2" 5) # office
# { delay = delay; }
# (heater_on "heater3" 5) # bed room
# { delay = delay; }
# (heater_on "heater4" 5) # storage room
# ];
#};
#heater_on1 = {
# sequence = [
# (heater_on "heater1" hot) # office
# { delay = delay; }
# (heater_on "heater2" hot) # office
# { delay = delay; }
# (heater_on "heater3" cold) # bed room
# { delay = delay; }
# (heater_on "heater4" cold) # storage room
# ];
#};
#heater_on2 = {
# sequence = [
# (heater_on "heater1" hot) # office
# { delay = delay; }
# (heater_on "heater2" hot) # office
# { delay = delay; }
# (heater_on "heater3" hot) # bed room
# { delay = delay; }
# (heater_on "heater4" cold) # storage room
# ];
#};
#heater_on3 = {
# sequence = [
# (heater_on "heater1" cold) # office
# { delay = delay; }
# (heater_on "heater2" cold) # office
# { delay = delay; }
# (heater_on "heater3" hot) # bed room
# { delay = delay; }
# (heater_on "heater4" cold) # storage room
# ];
#};
fyrtur_up = {
sequence = [