Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106509

Binary sensor with trigger

$
0
0

There is a working binary sensor template it just takes all statuses from the real sensor except two

template:
  - trigger:
      - trigger: state
        entity_id: binary_sensor.dvizhenie_kabinet
        not_to:
          - unknown
          - unavailable
    binary_sensor:
      - name: Movement_cabinet_binary
        unique_id: move_cab
        state: '{{ trigger.to_state.state }}'

I would like it to be in the correct syntax, how can I do the same but have the binary sensor created like this?

- platform: template
  binary_sensors:
    sensor1_name:

How to do it ?

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>