mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
alias: 'Guest Location Update'
|
||||
id: automation_guest_location_update
|
||||
mode: restart
|
||||
|
||||
trigger:
|
||||
# Guest moved
|
||||
- platform: state
|
||||
entity_id:
|
||||
- input_select.guest_status_dropdown
|
||||
- input_boolean.guest_home
|
||||
# Sleeping status changed
|
||||
- input_boolean.guest_is_awake
|
||||
- input_boolean.guest_in_bed
|
||||
condition:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'
|
||||
|
||||
action:
|
||||
- service: script.turn_on
|
||||
entity_id: script.guest_travel_sensor
|
||||
Reference in New Issue
Block a user