2022-06-05 20:28:11 +00:00
|
|
|
- id: alarm-clock-automation
|
|
|
|
alias: '[Alarm-Clock] Wakeup automation'
|
2020-11-03 23:55:41 +00:00
|
|
|
trigger:
|
2022-07-10 10:34:59 +00:00
|
|
|
- platform: calendar
|
|
|
|
event: start
|
|
|
|
offset: '-0:30:0'
|
2021-07-26 16:45:55 +00:00
|
|
|
entity_id: calendar.automations_wakeup
|
2020-11-03 23:55:41 +00:00
|
|
|
action:
|
2022-08-06 00:45:16 +00:00
|
|
|
# Set speed for blinds
|
2022-11-16 00:27:25 +00:00
|
|
|
# - service: zha.issue_zigbee_cluster_command
|
|
|
|
# data:
|
|
|
|
# ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
|
|
|
|
# command: 0x0006
|
|
|
|
# command_type: server
|
|
|
|
# endpoint_id: 1
|
|
|
|
# cluster_id: 258
|
|
|
|
# args:
|
|
|
|
# - 0
|
|
|
|
# - 0
|
|
|
|
# - 0x69
|
|
|
|
# - 0
|
|
|
|
# - [ 4, 0, 0, 0, 10 ]
|
|
|
|
# - service: zha.issue_zigbee_cluster_command
|
|
|
|
# data:
|
|
|
|
# ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
|
|
|
|
# command: 0x0006
|
|
|
|
# command_type: server
|
|
|
|
# endpoint_id: 1
|
|
|
|
# cluster_id: 258
|
|
|
|
# args:
|
|
|
|
# - 0
|
|
|
|
# - 0
|
|
|
|
# - 0x69
|
|
|
|
# - 0
|
|
|
|
# - [ 4, 0, 0, 0, 10 ]
|
2021-11-20 00:10:04 +00:00
|
|
|
- service: automation.turn_off
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.bedroom_motion_off
|
2021-09-23 22:29:08 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 2000
|
|
|
|
brightness: 1
|
2022-06-05 20:28:11 +00:00
|
|
|
entity_id:
|
|
|
|
- light.bedroom_lights
|
|
|
|
- light.bed_lamps
|
|
|
|
- light.bed_lightstrip
|
2021-09-23 22:29:08 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
data:
|
|
|
|
kelvin: 5300
|
|
|
|
transition: 1800
|
|
|
|
brightness: 255
|
2022-06-05 20:28:11 +00:00
|
|
|
entity_id:
|
|
|
|
- light.bedroom_lights
|
|
|
|
- light.bed_lamps
|
|
|
|
- light.bed_lightstrip
|
2021-12-07 00:03:01 +00:00
|
|
|
- repeat:
|
2021-12-12 22:51:26 +00:00
|
|
|
count: 10
|
2021-12-07 00:03:01 +00:00
|
|
|
sequence:
|
|
|
|
- service: cover.set_cover_position
|
|
|
|
target:
|
|
|
|
entity_id: cover.bedroom_blinds
|
|
|
|
data:
|
2021-12-12 22:51:26 +00:00
|
|
|
position: "{{ repeat.index * 10 | int }}"
|
2021-12-07 00:03:01 +00:00
|
|
|
- delay:
|
2021-12-12 22:51:26 +00:00
|
|
|
seconds: 180
|
2022-06-05 20:28:11 +00:00
|
|
|
- choose:
|
|
|
|
- conditions:
|
2022-06-26 01:25:52 +00:00
|
|
|
- condition: or
|
|
|
|
conditions:
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: armed_home
|
|
|
|
- condition: state
|
|
|
|
entity_id: alarm_control_panel.home_alarm
|
|
|
|
state: disarmed
|
2022-06-05 20:28:11 +00:00
|
|
|
sequence:
|
|
|
|
- service: media_player.volume_set
|
|
|
|
data:
|
|
|
|
volume_level: 0.1
|
|
|
|
entity_id: media_player.bedroom
|
|
|
|
- delay:
|
|
|
|
seconds: 10
|
|
|
|
- service: media_player.play_media
|
|
|
|
data:
|
|
|
|
entity_id: media_player.bedroom
|
|
|
|
media_content_id: 'https://open.spotify.com/playlist/3Qu9kE0ivJIkn76pxTLMFe'
|
|
|
|
media_content_type: music
|
|
|
|
- service: script.good_morning
|
|
|
|
- delay:
|
|
|
|
minutes: 30
|
2023-05-25 22:41:28 +00:00
|
|
|
- service: vacuum.start
|
|
|
|
target:
|
|
|
|
entity_id: vacuum.valetudo_valetudos5
|
2021-11-20 00:10:04 +00:00
|
|
|
- service: automation.turn_on
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- automation.bedroom_motion_off
|
2022-06-05 20:28:11 +00:00
|
|
|
- service: light.turn_off
|
|
|
|
target:
|
|
|
|
entity_id:
|
|
|
|
- light.bedroom_lights
|
|
|
|
- light.bed_lamps
|
|
|
|
- light.bed_lightstrip
|
2022-08-06 00:45:16 +00:00
|
|
|
# Set back speed for blinds
|
2022-11-16 00:27:25 +00:00
|
|
|
# - service: zha.issue_zigbee_cluster_command
|
|
|
|
# data:
|
|
|
|
# ieee: '84:71:27:ff:fe:d3:3a:e9' # Bedroom Blind Left
|
|
|
|
# command: 0x0006
|
|
|
|
# command_type: server
|
|
|
|
# endpoint_id: 1
|
|
|
|
# cluster_id: 258
|
|
|
|
# args:
|
|
|
|
# - 0
|
|
|
|
# - 0
|
|
|
|
# - 0x69
|
|
|
|
# - 0
|
|
|
|
# - [ 4, 0, 0, 0, 100 ]
|
|
|
|
# - service: zha.issue_zigbee_cluster_command
|
|
|
|
# data:
|
|
|
|
# ieee: '84:71:27:ff:fe:cf:cd:ec' # Bedroom Blind Right
|
|
|
|
# command: 0x0006
|
|
|
|
# command_type: server
|
|
|
|
# endpoint_id: 1
|
|
|
|
# cluster_id: 258
|
|
|
|
# args:
|
|
|
|
# - 0
|
|
|
|
# - 0
|
|
|
|
# - 0x69
|
|
|
|
# - 0
|
|
|
|
# - [ 4, 0, 0, 0, 100 ]
|
2021-01-07 01:52:50 +00:00
|
|
|
mode: single
|