Update logics
This commit is contained in:
parent
51d458c85e
commit
271846011e
1 changed files with 11 additions and 5 deletions
|
@ -213,7 +213,7 @@ in
|
||||||
trigger = [{ platform = "state"; entity_id = "input_select.scene_wohnzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
|
trigger = [{ platform = "state"; entity_id = "input_select.scene_wohnzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
|
||||||
action = [{
|
action = [{
|
||||||
service = ''
|
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
|
homeassistant.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
homeassistant.turn_off
|
homeassistant.turn_off
|
||||||
|
@ -226,7 +226,7 @@ in
|
||||||
trigger = [{ platform = "state"; entity_id = "input_select.scene_schlafzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
|
trigger = [{ platform = "state"; entity_id = "input_select.scene_schlafzimmer"; } { platform = "state"; entity_id = "sun.sun"; }];
|
||||||
action = [{
|
action = [{
|
||||||
service = ''
|
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
|
homeassistant.turn_on
|
||||||
{% else %}
|
{% else %}
|
||||||
homeassistant.turn_off
|
homeassistant.turn_off
|
||||||
|
@ -240,6 +240,12 @@ in
|
||||||
condition = [{ condition = "state"; entity_id = "input_select.scene_schlafzimmer"; state = "empty"; }];
|
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"; }];
|
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
|
# Warnung für offene Fenster oder Türen
|
||||||
# Warnungen für niedrige Akkustände
|
# Warnungen für niedrige Akkustände
|
||||||
# Warnungen für hohe Luftfeuchtigkeit
|
# Warnungen für hohe Luftfeuchtigkeit
|
||||||
|
@ -278,15 +284,15 @@ in
|
||||||
input_select = {
|
input_select = {
|
||||||
scene_schlafzimmer = {
|
scene_schlafzimmer = {
|
||||||
name = "Szene Schlafzimmer";
|
name = "Szene Schlafzimmer";
|
||||||
options = [ "empty" "heat" "active" ];
|
options = [ "empty" "heat" "active" "force-active" ];
|
||||||
};
|
};
|
||||||
scene_wohnzimmer = {
|
scene_wohnzimmer = {
|
||||||
name = "Szene Wohnzimmer";
|
name = "Szene Wohnzimmer";
|
||||||
options = [ "empty" "heat" "active" ];
|
options = [ "empty" "heat" "active" "force-active" ];
|
||||||
};
|
};
|
||||||
scene_kueche = {
|
scene_kueche = {
|
||||||
name = "Szene Kueche";
|
name = "Szene Kueche";
|
||||||
options = [ "empty" "heat" "active" ];
|
options = [ "empty" "heat" "active" "force-active" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
system_health = { };
|
system_health = { };
|
||||||
|
|
Loading…
Reference in a new issue