mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-20 12:10:28 +00:00
Created new Locator automation to trigger 'where is everyone automation'. #1472
This commit is contained in:
@@ -42,3 +42,31 @@
|
||||
- service: switch.turn_off
|
||||
data:
|
||||
entity_id: "{{ trigger.entity_id }}"
|
||||
|
||||
|
||||
- alias: 'Bedroom Screensaver Watchdog'
|
||||
id: Bedroom-Screensaver-Watchdog-automation
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: switch.alarm_panel_1_screensaver
|
||||
to: 'off'
|
||||
|
||||
condition:
|
||||
- condition: or
|
||||
conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||
state: 'on'
|
||||
|
||||
action:
|
||||
- service: switch.turn_on
|
||||
entity_id: switch.alarm_panel_1_screensaver
|
||||
|
Reference in New Issue
Block a user