Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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
- - binary_sensor:
- - name: "Henrik a casa?"
- # state: "{{ is_state('person.henrik_sozzi', 'home')}}"
- state: "{{ is_state('device_tracker.hsphone', 'home') or is_state('device_tracker.tel_henrik', 'home') or is_state('device_tracker.tel_henrik_wifi', 'home') }}"
- delay_off:
- minutes: 5
- picture: "/local/henrik{% if not(is_state('binary_sensor.henrik_at_home', 'on')) %}_off{% endif %}.jpg"
- device_class: presence
- unique_id: "henrik_at_home"
- attributes:
- name: Henrik
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement