2023-06-12 21:56:22 +00:00
|
|
|
- id: front_door_doorbell
|
2022-08-18 23:02:16 +00:00
|
|
|
alias: '[Front door] Doorbell'
|
2021-05-11 18:34:52 +00:00
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
2022-09-05 17:52:13 +00:00
|
|
|
entity_id: switch.doorbell
|
2021-05-11 18:34:52 +00:00
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
action:
|
2022-10-19 20:25:52 +00:00
|
|
|
- service: notify.mobile_app_iphone
|
2021-05-11 18:34:52 +00:00
|
|
|
data:
|
2022-08-17 00:25:51 +00:00
|
|
|
message: Doorbell
|
|
|
|
data:
|
|
|
|
actions:
|
|
|
|
- action: UNLOCK_DOOR
|
|
|
|
title: Unlock door
|
2023-08-27 22:04:17 +00:00
|
|
|
- service: light.turn_on
|
|
|
|
target:
|
|
|
|
entity_id: light.notification_cube_light
|
|
|
|
- service: zha.issue_zigbee_cluster_command
|
|
|
|
data:
|
|
|
|
cluster_type: in
|
|
|
|
ieee: 00:12:4b:00:23:a6:51:b1
|
|
|
|
endpoint_id: 11
|
|
|
|
cluster_id: 768
|
|
|
|
command: 68
|
|
|
|
command_type: server
|
|
|
|
params:
|
|
|
|
update_flags: [ "Action", "Direction", "Time", "Start Hue" ]
|
|
|
|
action: "Activate from current hue"
|
|
|
|
direction: "Increment"
|
|
|
|
time: 1
|
|
|
|
start_hue: 1
|
|
|
|
- delay: '0:00:30'
|
|
|
|
- service: zha.issue_zigbee_cluster_command
|
|
|
|
data:
|
|
|
|
cluster_type: in
|
|
|
|
ieee: 00:12:4b:00:23:a6:51:b1
|
|
|
|
endpoint_id: 11
|
|
|
|
cluster_id: 768
|
|
|
|
command: 68
|
|
|
|
command_type: server
|
|
|
|
params:
|
|
|
|
update_flags: [ "Action", "Direction", "Time", "Start Hue" ]
|
|
|
|
action: "Deactivate"
|
|
|
|
direction: "Increment"
|
|
|
|
time: 1
|
|
|
|
start_hue: 1
|