Skip to content

Button on the dashboard gets triggered when switching tabs #25129

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

Open
mariusz-schimke opened this issue Apr 21, 2025 · 4 comments
Open

Button on the dashboard gets triggered when switching tabs #25129

mariusz-schimke opened this issue Apr 21, 2025 · 4 comments
Labels
Bug Current Bug in UI - Extra Attention iOS Apple iOS specific issues (not Safari desktop)

Comments

@mariusz-schimke
Copy link

mariusz-schimke commented Apr 21, 2025

iOS device model, version and app version

Model Name: iPhone
Software Version: 18.x
App version: (Can't find, but it's been happening for over a year. I always keep the app up to date.)

Home Assistant Core Version

core-2025.3.3 (and later)

Describe the bug

For quite some time, I've noticed instances where our garage door opens unexpectedly, and no one in the family knows who triggered it. After observing these occurrences, I discovered that sometimes, when switching between dashboard tabs, a button on the newly opened tab is activated without any user interaction. I have finally managed to reproduce and record this issue—please see the attached video. This behavior seems to be the reason why the garage door occasionally opens on its own.

Could you investigate this issue and determine what’s causing it? I’m not entirely sure which specific steps trigger the bug, but I suspect it may be related to the popup and how focus is handled when switching tabs.

Please review the attached video for reference. The last second of the recording shows me manually closing the gate by clicking the down arrow—this is unrelated to the issue and can be ignored.

To Reproduce
In the video, the main garage door button is located on the first (default) tab of the dashboard. Here’s the sequence of actions that leads to the issue:

  • I navigate to another tab.
  • I open a popup and interact with a drop-down menu, ensuring that the popup has focus.
  • I return to the first tab by closing the popup and tapping the tab’s icon at the top.
  • At this moment, the garage door button is activated, even though I never touched it.

Expected behavior

Screenshots

423208540-d4bbe019-3178-43b6-8882-f243b2a5d38d.mov

Additional context

It's been happening for over a year now so it's hard for me to specify the exact versions of the app, of HASS and of iOS. It still seems to take place now and then. When that happens, there's also a haptic feedback of the device (vibration) just like when you click the button. I always keep all mentioned software up to date.

@bgoncal
Copy link
Member

bgoncal commented Apr 22, 2025

Thats really weird indeed, you are not using any custom cards right? Since the app is only a wrapper for the web interface of home assistant, I'll move this issue to the frontend repo so you may find help faster for that.

@bgoncal bgoncal transferred this issue from home-assistant/iOS Apr 22, 2025
@mariusz-schimke
Copy link
Author

@bgoncal, I'm not sure if I got you right, but I don't use any external themes or anything like that. Is there a way I can make sure?

@bgoncal
Copy link
Member

bgoncal commented Apr 22, 2025

If you don’t know probably you are not using anything custom, let’s hope someone from the frontend can help out with this, it goes out of my expertise

@jsk4
Copy link

jsk4 commented Apr 30, 2025

Happens to me as well, I can pretty reliably reproduce it. See attached recording where everytime I switch tabs it triggers the "Reset office" scene, except the last time I switch tabs.
Sometimes it triggers the "Standard" scene as well, so it's not always consistent which one it clicks.

Converted.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Current Bug in UI - Extra Attention iOS Apple iOS specific issues (not Safari desktop)
Projects
None yet
Development

No branches or pull requests

3 participants