Open AlexC opened 6 months ago
Sorry for the long delay in replying. In the latest version of the card, I've taken out all the custom action-handling code and deferred to the built-in Home Assistant actions handler. That should hopefully fix any bugs with actions for now and for the future.
Please let me know if this is still an issue with the latest version!
Sorry for the long delay in replying. In the latest version of the card, I've taken out all the custom action-handling code and deferred to the built-in Home Assistant actions handler. That should hopefully fix any bugs with actions for now and for the future.
Please let me know if this is still an issue with the latest version!
Sounded promising though unfortunately in the latest version the issue remains. Let me know if you can replicate it, or if you need me to work out a different/simpler config to aid this.
Using version v1.30.2, I can confirm a similar behavior that is probably related. I am using the timer with a tap action that toggles an input boolean of another entity via a service call.
type: custom:timer-bar-card
entity: timer.heat_shot_timer
name: Heat Boost
icon: mdi:fire
invert: true
mushroom:
tap_action:
action: call-service
service: input_boolean.toggle
target:
entity_id: input_boolean.heat_shot_toggle
As expected, clicking on the icon calls the service once, but clicking on the timer while it is running triggers the service three times in my case.
Describe the bug The following configuration uses "double_tap_action" to add 5 minutes onto a timer, however if I double tap it will execute the script twice. If I tap just once, then the script is executed once. This only appears to affect mobile devices, desktop browser is fine.
As
tap_action
is set to none, I would expect a single tap to not execute anything.Additionally, if I do have a
tap_action
, I have noticed that thetap_action
will trigger when tapping the icon, however if you tap (once) the timer bar then it will trigger thedouble_tap_action
Your card configuration
Script in case that helps:
Debug information Please add
debug: true
to your configuration and either take a screenshot or paste the output here!