1
0
Fork 0

Update logics

This commit is contained in:
Malte Brandy 2021-12-12 16:38:09 +01:00
parent 51d458c85e
commit 271846011e

View file

@ -213,7 +213,7 @@ in
trigger = [{ platform = "state"; entity_id = "input_select.scene_wohnzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
action = [{
service = ''
{% if is_state('input_select.scene_wohnzimmer', 'active') and is_state('sun.sun', 'below_horizon') %}
{% if is_state('input_select.scene_wohnzimmer', 'force-active') or (is_state('input_select.scene_wohnzimmer', 'active') and state_attr('sun.sun', 'elevation') < 6) %}
homeassistant.turn_on
{% else %}
homeassistant.turn_off
@ -226,7 +226,7 @@ in
trigger = [{ platform = "state"; entity_id = "input_select.scene_schlafzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
action = [{
service = ''
{% if is_state('input_select.scene_schlafzimmer', 'active') and is_state('sun.sun', 'below_horizon') %}
{% if is_state('input_select.scene_schlafzimmer', 'force-active') or (is_state('input_select.scene_schlafzimmer', 'active') and state_attr('sun.sun', 'elevation') < 6) %}
homeassistant.turn_on
{% else %}
homeassistant.turn_off
@ -240,6 +240,12 @@ in
condition = [{ condition = "state"; entity_id = "input_select.scene_schlafzimmer"; state = "empty"; }];
action = [{ service = "input_select.set_value"; data.value = "heat"; entity_id = "input_select.scene_schlafzimmer"; }];
}
{
alias = "Morgens Licht an";
trigger = [{ platform = "time"; at = "08:00:00"; }];
condition = [{ condition = "state"; entity_id = "input_select.scene_schlafzimmer"; state = "heat"; }];
action = [{ service = "input_select.set_value"; data.value = "active"; entity_id = "input_select.scene_schlafzimmer"; }];
}
# Warnung für offene Fenster oder Türen
# Warnungen für niedrige Akkustände
# Warnungen für hohe Luftfeuchtigkeit
@ -278,15 +284,15 @@ in
input_select = {
scene_schlafzimmer = {
name = "Szene Schlafzimmer";
options = [ "empty" "heat" "active" ];
options = [ "empty" "heat" "active" "force-active" ];
};
scene_wohnzimmer = {
name = "Szene Wohnzimmer";
options = [ "empty" "heat" "active" ];
options = [ "empty" "heat" "active" "force-active" ];
};
scene_kueche = {
name = "Szene Kueche";
options = [ "empty" "heat" "active" ];
options = [ "empty" "heat" "active" "force-active" ];
};
};
system_health = { };