mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
blue_room to boys_room
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
alias: 'Kristy Home'
|
||||
alias: "Kristy Home"
|
||||
id: automation_kristy_home
|
||||
mode: restart
|
||||
|
||||
@@ -10,32 +10,32 @@ trigger:
|
||||
entity_id:
|
||||
- group.person_kristy
|
||||
- device_tracker.nmap_tracker_d6_28_7a_58_b8_da
|
||||
to: 'home'
|
||||
to: "home"
|
||||
|
||||
- platform: event
|
||||
event_type: automation_reloaded
|
||||
|
||||
condition:
|
||||
- alias: 'They were previously considered away'
|
||||
- alias: "They were previously considered away"
|
||||
condition: state
|
||||
entity_id: input_boolean.kristy_home
|
||||
state: 'off'
|
||||
state: "off"
|
||||
|
||||
- alias: 'At least one tracker is home'
|
||||
- alias: "At least one tracker is home"
|
||||
condition: numeric_state
|
||||
entity_id: group.person_kristy
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_kristy', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.kristy_travelling
|
||||
|
||||
- service: input_boolean.turn_on
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.kristy_home
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.allow_announcements
|
||||
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.out_of_bed_alert
|
||||
|
||||
Reference in New Issue
Block a user