Hi I have successfully setup my garage door opener using card code provided in another thread - including status icon. But I cannot find what I am doing wrong below - when I click on the icon - the garage is opening. But when I click again - it is not closing the door…what am I missing here?
entity: binary_sensor.sonoff_ABCDE
icon: 'hass:garage'
show_icon: true
show_name: false
state:
- color: 'rgb(255,0,0)'
icon: 'hass:garage-open'
value: 'on'
- color: 'rgb(68,115,159)'
type: ''
value: 'off'
tap_action:
action: call-service
service: switch.turn_on
service_data:
entity_id: switch.sonoff_ABCDE
type: 'custom:button-card'