custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.97k stars 242 forks source link

tap-action not called if entity is binary_sensor #839

Open dnewell73 opened 8 months ago

dnewell73 commented 8 months ago

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.

dnewell73 commented 8 months ago

Never mind.....I had tap-action instead of tap_action :(