template: - cover: - unique_id: templatecover.garage_door device_class: GARAGE open_cover: - action: switch.turn_on data: entity_id: switch.shelly_garage_door close_cover: - action: switch.turn_on data: entity_id: switch.shelly_garage_door stop_cover: - action: switch.turn_on data: entity_id: switch.shelly_garage_door default_entity_id: cover.garage_door name: Garage Door state: "{{is_state('binary_sensor.garage_door','on')}}"