value: 'off'
color: red
icon: mdi:garage-open-variant
styles:
icon:
animation: blink 2s linear infinite
value: 'on'
icon: mdi:garage-variant
color: green
When I tap the button, I just get the history window for the binary_sensor. It does not call my script. It does call the script if I change the entity to the momentary relay that activates my garage door. However, since that's a momentary switch, my state section is not working correctly, as that relies on the state of the binary_sensor.
I have the following yaml for my garage button:
type: custom:button-card entity: binary_sensor.garage_door_sensor icon: mdi:garage-variant name: Garage tap-action: action: call-service service: script.toggle_garage_door state:
When I tap the button, I just get the history window for the binary_sensor. It does not call my script. It does call the script if I change the entity to the momentary relay that activates my garage door. However, since that's a momentary switch, my state section is not working correctly, as that relies on the state of the binary_sensor.