Hi, Trying to have icon for when garage door has been open for longer then 1 min.
Below doesn’t seem to work any pointers as to where I’m going wrong please.
binary_sensor:
- platform: template
sensors:
GD_Status:
friendly_name: 'GD Status'
delay_on:
minutes: 1
delay_off:
minutes: 1
value_template: "{{ is_state('binary_sensor.garage_door', 'Open') }}""
icon_template: >-
{% if is_state('binary_sensor.garage_door', 'Open') %}
mdi:alert-circle
{% else %}
mdi:emoticon-outline
{% endif %}