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