Fix garage automation triggers and improve presence handling
- Update leaving trigger to fire on any transition from "home" (not just to "not_home") - Handle zone-based states (e.g. Arbeit, Dybbroparken) correctly - Relax SnowyWhite tracker condition to allow non-"not_home" states (fixes blocking on "unknown") - Improve reliability of presence-based garage control
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
- id: garage_auto_claus_presence
|
- id: garage_auto_claus_presence
|
||||||
alias: Garage auto Claus
|
alias: Garage auto Claus
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: device_tracker.clausiphone
|
entity_id: device_tracker.clausiphone
|
||||||
to: "home"
|
to: "home"
|
||||||
@@ -10,17 +10,18 @@
|
|||||||
- platform: state
|
- platform: state
|
||||||
entity_id: device_tracker.clausiphone
|
entity_id: device_tracker.clausiphone
|
||||||
from: "home"
|
from: "home"
|
||||||
to: "not_home"
|
|
||||||
id: leaving
|
id: leaving
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
- condition: time
|
- condition: time
|
||||||
after: "05:00:00"
|
after: "05:00:00"
|
||||||
before: "23:00:00"
|
before: "23:00:00"
|
||||||
|
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: device_tracker.snowywhite_location_tracker
|
entity_id: device_tracker.snowywhite_location_tracker
|
||||||
state: "home"
|
state: "not_home"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- choose:
|
- choose:
|
||||||
|
|||||||
Reference in New Issue
Block a user