Setup the Alarm clock

This commit is contained in:
2026-05-06 22:12:54 +02:00
parent d6313b8a29
commit 87ba4b93eb
3 changed files with 402 additions and 2 deletions

View File

@@ -29,6 +29,34 @@ sleep_switch:
args:
button: 'off'
press_type: 'long_release'
off_events:
- WAKEUP
bedroom_light_switch:
module: smartswitch
class: SmartSwitch
entity: switch.bedroom_light
off_events:
- turn_off_all_lights
toggle_events:
button_press_pierre:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_pierre'
args:
press_type: 'press'
button: 'on'
button_press_maeva:
event_name: zha_event
event_data:
device_name: 'bedroom_remote_maeva'
args:
press_type: 'press'
button: 'on'
sonos_led:
module: smartswitch
@@ -73,6 +101,16 @@ light_bedroom_bedlight_pierre:
press_type: 'hold'
button: 'down'
on_events_with_transition:
wake_up_events:
transition_time: 120
brightness_pct: 50
events:
WAKEUP_IN:
event_name: WAKEUP_IN
event_data:
wakeup_in: 5
light_bedroom_bedlight_maeva:
module: smartlight
class: SmartLight
@@ -113,4 +151,32 @@ bed_ledstrip:
class: SmartLight
entity: light.bedroom_ledstripe
smart_conditions: (input_boolean.sleeping or binary_sensor.day_interval_night) and (binary_sensor.bedroom_motion_bed_pierre or binary_sensor.bedroom_motion_bed_maeva)
smart_conditions:
trigger_conditions: (input_boolean.sleeping or binary_sensor.day_interval_night) and (binary_sensor.bedroom_motion_bed_pierre or binary_sensor.bedroom_motion_bed_maeva)
blocking_conditions: switch.bedroom_light or light.bedroom_bedlight_pierre or light.bedroom_bedlight_maeva
on_events_with_transition:
wake_up_events:
transition_time: 120
brightness_pct: 50
events:
WAKEUP_IN:
event_name: WAKEUP_IN
event_data:
wakeup_in: 8
light_brightness_pct: 1
alarm_clock:
module: alarmclock
class: AlarmClock
mqtt_device_name: AD Alarm Clock
switch_alarmclock_main: input_boolean.main_alarmclock
switch_alarmclock_secondary: input_boolean.secondary_alarmclock
inputdate_alarmclock_main: input_datetime.main_alarmclock
inputdate_alarmclock_secondary: input_datetime.secondary_alarmclock
input_text_wakeup_time: input_text.wakeup_time
sleeping_condition: input_boolean.sleeping