Hello,
I am in the process of making an alarm clock.
I have create the following helpers:
- input_boolean.wakestatus_1 ( to switch the alarm clock on and off in general )
- input_datetime.waketime_1 ( so set the alarm time)
- input_boolean.wakeweekday_mon_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_tue_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_wed_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_thu_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_fri_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_sat_1 (so that the alarm clock goes on that day or not)
- input_boolean.wakeweekday_sun_1 (so that the alarm clock goes on that day or not)
So now I would like to make an automation, whitch take care of the following:
- is input_boolean.wakestatus_1 = on
- input_datetime.waketime_1 = now
- input_boolean.wakeweekday_mon_1 = on
- input_boolean.wakeweekday_tue_1 = on
- input_boolean.wakeweekday_wed_1 = on
- input_boolean.wakeweekday_thu_1 = on
- input_boolean.wakeweekday_fri_1 = on
- input_boolean.wakeweekday_sat_1 = on
- input_boolean.wakeweekday_sun_1 = on
- and today is a day of the week when a boolean is on
I have test ist with the following code:
alias: Wecker 1
description: ''
trigger:
- platform: time
at: input_datetime.waketime_1
condition:
- condition: state
entity_id: input_boolean.wakestatus_1
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_mon_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_tue_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_wed_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_thu_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_fri_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_sat_1
state: 'on'
- condition: or
conditions:
- condition: state
entity_id: input_boolean.wakeweekday_sun_1
state: 'on'
action:
- service: scene.turn_on
target:
entity_id: scene.musik_fur_wecker
metadata: {}
mode: single
but it does not start the scene. And I have no idea how to add this “and today is a day of the week when a boolean is on”
and today is a day of the week when a boolean is on