diff --git a/automations.yaml b/automations.yaml index f552027..e89626a 100644 --- a/automations.yaml +++ b/automations.yaml @@ -2958,13 +2958,34 @@ mode: queued max: 10 - id: '1785027869879' - alias: Alfred Lock Force Sync - description: Forces a refresh of the Alfred Lock helper state every 5 minutes. + alias: Alfred Lock - Silent Force Hardware Sync + description: Mutes living room Echo, forces Alexa to check physical lock state, + and restores volume. triggers: - - minutes: /5 + - minutes: /15 trigger: time_pattern actions: - - action: homeassistant.update_entity + - action: scene.create + data: + scene_id: echo_volume_snapshot + snapshot_entities: + - media_player.living_room_1_2 + - action: media_player.volume_set target: - entity_id: input_boolean.alfred_lock_sync_switch + entity_id: media_player.living_room_1_2 + data: + volume_level: 0 + - action: media_player.play_media + target: + entity_id: media_player.living_room_1_2 + data: + media: + media_content_id: Is the front door locked? + media_content_type: custom + metadata: {} + - delay: + seconds: 5 + - action: scene.turn_on + target: + entity_id: scene.echo_volume_snapshot mode: single