Hallo zusammen,
ich habe aktuell ein Problem, bei dem ich nicht wirklich weiß, wie ich weiter machen soll.
Ich sende via Shortcut die Alarmzeit von meinem iPhone an einen Helper. Das klappt soweit. Wenn sich die Zeit updatet, triggert das eine Automation in HA, welche die HUE Automation mit den Wake Up Lights aktiviert.
Alles klappt erstmal wie es soll - ich stelle den Alarm ein und in der HUE App sehe ich, dass die Automation für die Wake Up Lights aktiviert ist.
Das Problem: Die Wake Up Animation läuft nicht, obwohl sie in der HUE App aktiv ist.
Wie könnte ich das debuggen? Ich habe wirklich keine Ahnung, wo ich ansetzen soll.
P.S.: Ich möchte bewusst die HUE Animation für Wake Up Lights verwenden, da alle anderen Third Party Lösungen entweder extrem aufwendig zum Konfigurieren der Farbcodes sind oder einfach nicht an die HUE Wake Up Animation ran kommen.
alias: wakeUpLights_schlafzimmer
description: >-
Schaltet die Wake Up Lights im Schlafzimmer an. Bedingungen: Weckzeit vor
Sonnenaufgang und Werktag
triggers:
- trigger: state
entity_id:
- input_datetime.alarmtime
conditions:
- condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: input_datetime.alarmtime
attribute: hour
state: 6
- condition: state
entity_id: input_datetime.alarmtime
attribute: minute
state: 0
- condition: and
conditions:
- condition: state
entity_id: input_datetime.alarmtime
attribute: hour
state: 7
- condition: state
entity_id: input_datetime.alarmtime
attribute: minute
state: 0
actions:
- if:
- condition: template
value_template: |2-
{{
state_attr('input_datetime.alarmtime', 'hour') == 7 and
state_attr('input_datetime.alarmtime', 'minute') == 0
}}
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.automation_wake_up_7am
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.automation_wake_up_6am
else:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.automation_wake_up_6am
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.automation_wake_up_7am
enabled: true
mode: single