Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## in configuarion.yaml
- template:
- - binary_sensor:
- - name: "presence_sensor" #name what you want
- unique_id: presence_bathroom #name what you want
- device_class: presence
- icon: mdi:motion-sensor
- state: >
- {{ is_state('binary_sensor.xxxxxxx_contact','off') }} #replace with your binary sensor entity id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement