question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tap_action works as double_tap and double_tap does it double (> 3.4.0-3 and only with deep_press)

See original GitHub issue

Checklist

  • 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:open
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
roflcooptercommented, Nov 19, 2020

Cant seem to figure this out. @RomRider do you have any idea how i could solve this?

0reactions
ASNNetworkscommented, Dec 8, 2020

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found