Hi,
Long time HA user, but first time I’ve needed to make a call for help, having exhausted my search capabilities in the forum!. Recently purchased some gs-wds07 sensors (433mhz with Open and Closed state).
I’ve added these into HA as separate binary sensors, then I’m trying to use another binary sensor to determine the overall state (Open or Closed).
Whilst both the Rear Door Open and Rear Door Closed binary sensors update their state correctly when the door sensor is activated, the overall Rear Door Status binary sensor never changes from ‘off’.
The config I’m using for this is below. Is there something obvious that I’m not getting right?
binary_sensor:
- platform: rflink
devices:
rear_door_open:
name: Rear door open
off_delay: 1
aliases:
- ev1527_05af90_0a
- selectplus_0506f5_02
rear_door_closed:
name: Rear door closed
off_delay: 1
aliases:
- ev1527_05af90_0e
- selectplus_0506f1_02
- platform: template
sensors:
rear_door:
friendly_name: Rear door status
entity_id:
- binary_sensor.rear_door_open
- binary_sensor.rear_door_closed
value_template: >-
{% if is_state('binary_sensor.rear_door_open', 'on') %}
on
{% elif is_state('binary_sensor.rear_door_closed', 'on') %}
off
{% endif %}
Thanks!