Hi:
Trying to create a template for garage door position. I have two sensors and am able to combine them into oped, closed, and moving. I would like to have opening, closing, open, and closed. Not quite sure how to go about this and was hoping someone could point me in the right direction:
garage_door_position_new:
friendly_name: Garage door position
value_template: >-
{% if states('binary_sensor.overhead_garage_door') == 'on'
and states('cover.athom_garage_door') == 'open' %}
moving
{% elif states('cover.athom_garage_door') == 'closed' %}
closed
{% elif states('binary_sensor.overhead_garage_door') == 'off' %}
open
{% endif %}