Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tap-action not called if entity is binary_sensor #839

Open
dnewell73 opened this issue Mar 15, 2024 · 1 comment
Open

tap-action not called if entity is binary_sensor #839

dnewell73 opened this issue Mar 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dnewell73
Copy link

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:

  • 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.

@dnewell73 dnewell73 added the bug Something isn't working label Mar 15, 2024
@dnewell73
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant