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

Entity Button Card registering 2 clicks on single tap on iOS. #4802

Closed
3 tasks done
mig2008pt opened this issue Feb 7, 2020 · 5 comments · Fixed by #4841
Closed
3 tasks done

Entity Button Card registering 2 clicks on single tap on iOS. #4802

mig2008pt opened this issue Feb 7, 2020 · 5 comments · Fixed by #4841
Labels
Bug Current Bug in UI - Extra Attention

Comments

@mig2008pt
Copy link

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

The problem

Entity Button Card registers 2 clicks when I tap on it. Double tap action seems to work well.
This only happens on iOS, app or browser. Works as intended on MacBook.

Expected behavior

Steps to reproduce

Environment

arch armv7l
dev false
docker false
hassio false
os_name Linux
python_version 3.7.3
timezone Europe/Lisbon
version 0.105.2
virtualenv true
  • Home Assistant release with the issue:
    0.105.1
    0.105.2
  • Last working Home Assistant release (if known):
    0.104.3
  • UI Type (States or Lovelace):
    Lovelace
  • Browser and browser version:
    iOS Home Assistant App
    iOS Chrome version 80.0.3987.88
    iOS Safari (iOS 13.3.1).
  • Operating system:
    iOS 13.3.1

Problem-relevant configuration

              - type: entity-button
                entity: switch.tomada_04
                name: Shield
                icon: mdi:power
                icon_height: 48px
                tap_action:
                  action: toggle
                hold_action:
                  action: more-info

or

              - type: entity-button
                entity: switch.tomada_02
                name: Foco
                icon: mdi:power
                icon_height: 48px
                tap_action:
                  action: call-service
                  service: switch.toggle
                  service_data:
                    entity_id: switch.tomada_02
                double_tap_action:
                  action: more-info

Javascript errors shown in your browser console/inspector

Additional information

May be related with issue;
#4419

@mig2008pt mig2008pt added the Bug Current Bug in UI - Extra Attention label Feb 7, 2020
@iantrich
Copy link
Member

iantrich commented Feb 7, 2020

@mig2008pt you cleared the browser cache? I'm unable to replicate on iOS 13.3.1 iPhone 7

@mig2008pt
Copy link
Author

Yes, cleared it again now, restarted phone, and still happen. Downloaded chrome to tryout and the same result.
Seemed odd nobody having this problem. For me started after updating to 105.1
Tried now with an older iPad Air and works “well” but if do a fast tap quick enough I’m able to “highlight” the entity button without toggling the state...
Don’t know what is the problem with my iPhone 7 Plus...

@frlarsendeloitte
Copy link

frlarsendeloitte commented Feb 9, 2020

I'm having the exact same problem. Tap registers two clicks on tap action. Hold action works fine.
I'm on iOS 13.3.1 and I have tried it in Chrome, Safari and the HA app.
I have both updated HA to 0.152.2 and the iOS version at around the same time, so don't know which of the two caused this.

@robyevolution
Copy link

I have the same problem with iphone and ipad pro with ios 13.3.1 and home assistant 0.105.2

@mikenabhan
Copy link

I would like to comment and say that I am facing this same issue, and first noticed in on iOS but this issue persists into firefox running on windows. It is not strictly the same, it appears as though I am holding down the button instead of a single click/tap.

Will test after this fix gets pulled into build but I have had to revert to .104.x in the mean time.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants