Better way to control Garage Doors?

Hi All,

I have a card setup to control garage doors, I’ve using the binary sensor as main entity as I want to show the door status on icon, I then have tap action set to call service. The issue I have is there is no feedback when pressing button so its hard to tell command has been issued.

I’m using chips card as this takes up less room, any suggestions as to a better way to implement this please?

type: custom:mushroom-chips-card
chips:
  - type: entity
    entity: binary_sensor.garage_door_1
    name: Garage 1
    content_info: name
    tap_action:
      action: call-service
      service: switch.turn_on
      target:
        entity_id: switch.garage_door_1_toggle
      data: {}
  - type: entity
    entity: binary_sensor.garage_door_2
    name: Garage 2 - Up
    content_info: name
    tap_action:
      action: call-service
      service: switch.turn_on
      target:
        entity_id: switch.garage_door_2_open
      data: {}
  - type: entity
    entity: binary_sensor.garage_door_2
    name: Garage 2 - Down
    content_info: name
    use_entity_picture: false
    tap_action:
      action: call-service
      service: switch.toggle
      target:
        entity_id: switch.garage_door_2_close
      data: {}
alignment: center

You could look at GitHub - finity69x2/cover-control-button-row: button row for controlling open/close covers in Home Assistant.

It might be what you are looking for.

You’ll have to create a template cover to use it tho.

Hey, Thanks for link.

I’ve setup a template cover, however struggling to get it to read the door sensor status, I have a separate binary sensor, however status on cover displays unknown.

  - platform: template
    covers:
      garage_door_1_cover:
        device_class: garage
        friendly_name: "Garage Door 1"
        unique_id: gdr1cover
        value_template: '{{ states("binary_sensor.garage_door_1") }}'
        open_cover:
          - condition: state
            entity_id: binary_sensor.garage_door_1
            state: "off"
          - service: switch.toggle
            target:
              entity_id: switch.garage_door_1_toggle
        close_cover:
          - condition: state
            entity_id: binary_sensor.garage_door_1
            state: "on"
          - service: switch.turn_off
            target:
              entity_id: switch.garage_door_1_toggle
        stop_cover:
          service: switch.turn_on
          target:
            entity_id: switch.garage_door_1_toggle
        icon_template: >-
          {% if is_state('sensor.garage_door_1', 'on') %}
            mdi:garage-open
          {% else %}
            mdi:garage
          {% endif %}

I’ve had strange issues before with using the states() method in cases like this.

try defining it explicitly:

value_template: '{{ is_state("binary_sensor.garage_door_1", "on") }}'

or even:

value_template: >
  {% if states("binary_sensor.garage_door_1") == "on" %}
    true
  {% else %}
    false
  {% endif %}