I have a template cover that made for my garage door opener using a relay and a tilt sensor. When I try to make automations in node red using this new entity and I select:
Domain: cover
Serivce: close_cover
Entity Id:
my template cover does not show up in the list of entities. Any ideas why its not listed as a cover in node red?
Here’s my config:
cover:
- platform: template
covers:
new_garage_door:
device_class: garage
friendly_name: "New Garage Door"
value_template: >-
{% if is_state('binary_sensor.ecolink_garage_door_tilt_sensor_sensor', 'on') %}
open
{% else %}
closed
{% endif %}
open_cover:
- service: switch.turn_on
data:
entity_id: switch.shelly1_e8db84d638e8
close_cover:
- service: switch.turn_on
data:
entity_id: switch.shelly1_e8db84d638e8
stop_cover:
- service: switch.turn_on
data:
entity_id: switch.shelly1_e8db84d638e8
icon_template: >-
{% if is_state('cover.new_garage_door', 'open') %}
mdi:garage-open
{% else %}
mdi:garage
{% endif %}
type or paste code here