49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
- id: front_door_doorbell
|
|
alias: '[Front door] Doorbell'
|
|
mode: restart
|
|
trigger:
|
|
- platform: state
|
|
entity_id: switch.doorbell
|
|
from: 'off'
|
|
to: 'on'
|
|
action:
|
|
- service: notify.mobile_app_iphone
|
|
data:
|
|
message: Doorbell
|
|
data:
|
|
actions:
|
|
- action: UNLOCK_DOOR
|
|
title: Unlock door
|
|
- 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
|