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: 'Tess Home'
|
||||
alias: "Tess Home"
|
||||
id: automation_tess_home
|
||||
mode: restart
|
||||
|
||||
@@ -7,18 +7,18 @@ trigger:
|
||||
event_type: automation_reloaded
|
||||
|
||||
condition:
|
||||
- alias: 'They were previously considered away'
|
||||
- alias: "They were previously considered away"
|
||||
condition: state
|
||||
entity_id: input_boolean.tess_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_tess
|
||||
above: 0
|
||||
value_template: "{{ dict((states|selectattr('entity_id', 'in', state_attr('group.person_tess', 'entity_id'))|list)|groupby('state'))['home']|count }}"
|
||||
action:
|
||||
- service: input_boolean.turn_off
|
||||
- action: input_boolean.turn_off
|
||||
entity_id: input_boolean.tess_travelling
|
||||
- service: input_boolean.turn_on
|
||||
entity_id: input_boolean.tess_home
|
||||
- action: input_boolean.turn_on
|
||||
entity_id: input_boolean.tess_home
|
||||
|
||||
Reference in New Issue
Block a user