hansen-hasst/packages/mailbox/mailbox_received.yaml

55 lines
1.6 KiB
YAML
Raw Normal View History

2022-08-12 09:08:44 +00:00
automation:
2022-11-20 15:11:00 +00:00
- id: mailbox_mail_received
alias: mailbox_mail_received
2022-08-12 09:08:44 +00:00
mode: single
trigger:
- device_id: ca819ab69f4c9e16861daf8ffacdd10e
entity_id: binary_sensor.mailbox_motion_iaszone
domain: binary_sensor
platform: device
type: motion
condition:
- type: is_not_open
condition: device
device_id: 6649a68ae459ea3e7f61eb4155ffe23d
entity_id: binary_sensor.mailbox_door_iaszone
domain: binary_sensor
action:
- service: notify.notify
data:
title: Post
message: ist da.
- service: switch.turn_on
target:
entity_id: switch.mailbox
- service: scene.create
data:
2022-08-18 14:45:03 +00:00
snapshot_entities:
- light.office_bulb
- switch.adaptive_lighting_default
scene_id: livingroom_office_bulb_state
- service: automation.turn_off
target:
entity_id: automation.light_save_last_state
2022-08-12 09:08:44 +00:00
- service: switch.turn_off
target:
entity_id: switch.adaptive_lighting_default
- service: light.turn_on
target:
entity_id: light.office_bulb
data:
2022-08-18 14:45:03 +00:00
rgb_color: [0,0,255]
2022-08-12 09:08:44 +00:00
- delay:
seconds: 15
- service: scene.turn_on
target:
2022-08-18 14:45:03 +00:00
entity_id: scene.last_on_state
2022-08-12 09:08:44 +00:00
- delay:
2022-08-18 14:45:03 +00:00
seconds: 0
milliseconds: 500
2022-08-12 09:08:44 +00:00
- service: scene.turn_on
target:
2022-08-18 14:45:03 +00:00
entity_id: scene.livingroom_office_bulb_state
- service: automation.turn_on
target:
entity_id: automation.light_save_last_state