automation: - alias: mailbox_mail_taken_out mode: single trigger: - device_id: 6649a68ae459ea3e7f61eb4155ffe23d entity_id: binary_sensor.mailbox_door_iaszone domain: binary_sensor platform: device type: opened action: - service: notify.notify data: title: Post message: ist aus dem Briefkasten geholt. - service: switch.turn_off target: entity_id: switch.mailbox - service: scene.create data: 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 - service: automation.turn_off target: entity_id: automation.mailbox_mail_received - service: switch.turn_off target: entity_id: switch.adaptive_lighting_default - service: light.turn_on target: entity_id: light.office_bulb data: rgb_color: [0,0,255] - delay: seconds: 15 - service: scene.turn_on target: entity_id: scene.last_on_state - delay: seconds: 0 milliseconds: 500 - service: scene.turn_on target: entity_id: scene.livingroom_office_bulb_state - service: automation.turn_on target: entity_id: automation.light_save_last_state - service: automation.turn_on target: entity_id: automation.mailbox_mail_received