Below is my config for my garage door using a Zooz relay and a tilt sensor. It has worked for years but is now unreliable. Tilt sensor and cover show closed but it shows as closing in the Home app. See anything that I need to add or change?
cover:
- platform: template
covers:
garage_door_relay:
device_class: garage
friendly_name: "Garage Door"
value_template: "{{ is_state('binary_sensor.z_wave_plus_gold_plated_reliability_garage_door_tilt_sensor_window_door_is_open', 'on') }}"
open_cover:
service: script.garage_door_open
close_cover:
service: script.garage_door_close
icon_template: >-
{% if is_state('binary_sensor.z_wave_plus_gold_plated_reliability_garage_door_tilt_sensor_window_door_is_open', 'on') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif