Tap_action works as double_tap and double_tap does it double (> 3.4.0-3 and only with deep_press)
See original GitHub issueChecklist
- I updated the card to the latest version available
- I cleared the cache of my browser
Describe the bug Updates 3.4.0-3, 3.4.0-4 and 3.4.0-5 have a bug when a button has a double_tap action in it. Double_action actually does it twice. And tap_action works as a double_tap action. This bug is not present on 3.4.0-2 and previous versions. Buttons that only have tap_acion are not affected, so the tap_action command does work. But then double_tap action is added, then it will get bugged.
Version of the card Version: 3.4.0-3, 3.4.0-4 and 3.4.0-5
To Reproduce This is the configuration I used (template):
media_appletv:
template: media
state:
- styles:
card:
- background-color: var(--card-background-media)
icon:
- color: var(--media-entity-color)
name:
- color: var(--button-text-color)
value: playing
- styles:
card:
- background-color: var(--card-background-media)
- filter: opacity(50%)
icon:
- color: var(--media-entity-color)
name:
- color: var(--button-text-color)
value: paused
- styles:
name:
- color: var(--button-text-color)
card:
- background-color: var(--sensor-accent-color)
icon:
- color: var(--media-entity-color)
- animation:
value: 'off'
double_tap_action:
action: toggle
tap_action:
action: call-service
haptic: medium
service: remote.send_command
service_data:
command: menu
entity_id: remote.appletv_4k
Screenshots If applicable, add screenshots to help explain your problem.
Expected behavior It should work like on 3.4.0-2 and before.
Desktop (please complete the following information):
- Browser Edge Chromium
- Version 86.0.622.63
Smartphone (please complete the following information):
- Device: iPhone XS Max
- OS: iOS 14
- Browser Safari
- Version: Stock
Additional context Add any other context about the problem here.
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top GitHub Comments
Cant seem to figure this out. @RomRider do you have any idea how i could solve this?
Allright, thank you for looking into this. Perhaps there is some correlation to stack-in-card as well. Embedded cards (like swiper card) don’t work there. I hope you have the time to take a look to stack-in-card as well since more reports are coming in.
https://github.com/custom-cards/stack-in-card/issues/17#issuecomment-731609508
I am currently moving to a new place, so my HA instance is down for 2-3 weeks. I am happy to help with testing soon!