mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-21 04:33:38 +00:00
Created new Locator automation to trigger 'where is everyone automation'. #1472
This commit is contained in:
@@ -35,7 +35,15 @@
|
||||
- wait_template: >-
|
||||
{{ states.sun.sun.state == 'above_horizon' }}
|
||||
- service: homeassistant.turn_on
|
||||
entity_id: switch.alarm_panel_1_motion_detection
|
||||
entity_id:
|
||||
- switch.alarm_panel_1_motion_detection
|
||||
- switch.office_lamp_switch_socket
|
||||
- service: number.set_value
|
||||
target:
|
||||
entity_id: number.alarm_panel_1_screen_brightness
|
||||
data:
|
||||
value: 100
|
||||
|
||||
- service: button.press
|
||||
entity_id: button.alarm_panel_1_restart_browser
|
||||
- service: homeassistant.turn_off
|
||||
|
@@ -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
|
||||
|
@@ -26,4 +26,9 @@
|
||||
- switch.lr_amp
|
||||
- light.kitchen_lights
|
||||
- switch.alarm_panel_1_motion_detection
|
||||
- service: number.set_value
|
||||
target:
|
||||
entity_id: number.alarm_panel_1_screen_brightness
|
||||
data:
|
||||
value: 100
|
||||
|
Reference in New Issue
Block a user