Advertisement
xangin

reverse binary sensor

Aug 1st, 2022
1,571
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.35 KB | None | 0 0
  1. ## in configuarion.yaml
  2. template:
  3.   - binary_sensor:
  4.       - name: "presence_sensor" #name what you want
  5.         unique_id: presence_bathroom #name what you want
  6.         device_class: presence
  7.         icon: mdi:motion-sensor
  8.         state: >
  9.          {{ is_state('binary_sensor.xxxxxxx_contact','off') }}   #replace with your binary sensor entity id
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement