Advertisement
energywave

Sensore presenza a casa

Feb 12th, 2024
1,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.71 KB | None | 0 0
  1.   # Presenza in casa di Henrik. Viene data priorit√† a qualunque sensore indichi una presenza in casa con tempo minimo di fuori casa di 5 minuti per evitare false uscite
  2.   - binary_sensor:
  3.       - name: "Henrik a casa?"
  4.         # state: "{{ is_state('person.henrik_sozzi', 'home')}}"
  5.         state: "{{ is_state('device_tracker.hsphone', 'home') or is_state('device_tracker.tel_henrik', 'home') or is_state('device_tracker.tel_henrik_wifi', 'home') }}"
  6.         delay_off:
  7.           minutes: 5
  8.         picture: "/local/henrik{% if not(is_state('binary_sensor.henrik_at_home', 'on')) %}_off{% endif %}.jpg"
  9.         device_class: presence
  10.         unique_id: "henrik_at_home"
  11.         attributes:
  12.           name: Henrik
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement