Using new sensor instead of family group to detect presence state #35
This commit is contained in:
@ -155,7 +155,7 @@
|
|||||||
description: Runs when family arrives at home
|
description: Runs when family arrives at home
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: sensor.family_presence
|
||||||
from: not_home
|
from: not_home
|
||||||
to: home
|
to: home
|
||||||
- platform: event
|
- platform: event
|
||||||
@ -171,7 +171,7 @@
|
|||||||
description: Runs when the family has left home
|
description: Runs when the family has left home
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: group.family
|
entity_id: sensor.family_presence
|
||||||
from: home
|
from: home
|
||||||
to: not_home
|
to: not_home
|
||||||
- platform: event
|
- platform: event
|
||||||
|
@ -282,7 +282,7 @@ script:
|
|||||||
alias: Family Is Away
|
alias: Family Is Away
|
||||||
sequence:
|
sequence:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: group.family
|
entity_id: sensor.family_presence
|
||||||
state: not_home
|
state: not_home
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
target:
|
target:
|
||||||
|
Reference in New Issue
Block a user