Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Changing tabs using “path” service broken #118

Closed
dmatik opened this issue Jan 26, 2020 · 17 comments
Closed

Changing tabs using “path” service broken #118

dmatik opened this issue Jan 26, 2020 · 17 comments
Labels
Bug Something isn't working

Comments

@dmatik
Copy link

dmatik commented Jan 26, 2020

Hi,
Since todays several updates, not sure which one exactly since I updated them all and only then noticed, there a glitch when moving from tab to tab using the go to path service.
I have such buttons in my lovelace design, and they just started doing it today.
Have them working fine for months until now.
The screenshot would not help here, only video. And there is no such option. Sorry for that.

@dmatik dmatik added the Bug Something isn't working label Jan 26, 2020
@github-actions
Copy link

Please, be sure to read the issues section of the docs and provide the required information. Issues that don't provide the necessary information may not get a reply and may be closed.

@maykar
Copy link
Owner

maykar commented Jan 26, 2020

If I understand you correctly, you have a button that navigates to the path of another view. Is that view hidden? If it is hidden do you have hidden_tab_redirect set to false?

@dmatik
Copy link
Author

dmatik commented Jan 26, 2020

Hi,
Thanks for quick response.
Nope, no hidden views.
I have the main view with buttons that redirect to most of other views. Have this working for along time.
Switching between views using the header itself seems to be working fine.
Also seems that the issue is happening only on iPhone and not on PC’s browser.

@dmatik
Copy link
Author

dmatik commented Jan 26, 2020

Also... this issue is only on iPhone’s official companion app...
Even on Safari browser on the same iPhone it works just fine.

Edit: Started happening on Safari as well. Not only on app.

@PostSven
Copy link

same issue here, the whole ios app is glitching back and forth when tapping a button using the navigate path.

              - tap_action:
                  action: navigate
                  navigation_path: /lovelace/lampen
                  haptic: light

@browetd
Copy link

browetd commented Jan 26, 2020

Not sure if this is related but if, from my main tab, I click on a button with a path to a hidden tab, HA comes back immediately to the main tab (phone and PC, same behaviour)... If I choose to display permanently the "hidden" tab, it stays on it... Maybe be due to the fact that on my main tab, I have entities updated every second... I had that in a previous version of Custom Header but it was fixed at that time... More information: If I completely disable Custom header, all the tabs are visible on the top of my screen but the problem remains the same with previously "hidden" tabs, If I choose one of the tab by clicking on it on the top of the screen, it goes back to the main tab...
If this comment is not related to the current issue, let me know and I open a new issue.

@maykar
Copy link
Owner

maykar commented Jan 26, 2020

Please, share your config or any other info from the link in the bots comment above.

@PostSven
Copy link

PostSven commented Jan 26, 2020

Hi, see info below:

Home Assistant 0.104.3

http://myurl/frontend_latest/app.ecb6dd07.js:726:267614 SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds

custom_header:
  compact_mode: true

and
custom_header:
  compact_mode: true
  hide_header: true

resources:
  - url: /community_plugin/custom-header/custom-header.js
     type: module

Only seems to happen on IOS devices.

@maykar
Copy link
Owner

maykar commented Jan 26, 2020

I am able to reproduce. Bear with me as the only iOS and Mac setups I have are ancient. Makes troubleshooting a slow and painful process.

@PostSven
Copy link

I am able to reproduce. Bear with me as the only iOS and Mac setups I have are ancient. Makes troubleshooting a slow and painful process.

Check! Thanks for the quick reply

@Knapoc
Copy link

Knapoc commented Jan 26, 2020

I'm experiencing the same issue.

My config for custom-header:

custom_header:
  compact_mode: true
  voice_hide: true
  hide_config: true
  hide_tabs:
   - plants
   - settings

Happens with multiple browser: chrome, firefox and safari.
As soon as I unhide the tabs, path redirects via buttons work again.

@PostSven
Copy link

I'm experiencing the same issue.

My config for custom-header:

custom_header:
  compact_mode: true
  voice_hide: true
  hide_config: true
  hide_tabs:
   - plants
   - settings

Happens with multiple browser: chrome, firefox and safari.
As soon as I unhide the tabs, path redirects via buttons work again.

You probably have a different issue, add

hidden_tab_redirect: false

To your config

@Knapoc
Copy link

Knapoc commented Jan 26, 2020

I already tried this. Fixes it in firefox & chrome but in safari I get continuous redirects between to views

@PostSven
Copy link

PostSven commented Jan 26, 2020

I already tried this. Fixes it in firefox & chrome but in safari I get continuous redirects between to views

Yes you are facing 2 issues.

1 is fixed with the config change, and the other one is a bug at this moment

hidden_tab_redirect: was changed from default false to true i believe

@jimz011
Copy link

jimz011 commented Jan 26, 2020

I also have hidden_tab_redirect: false (but I already had that). But I don't think that is the issue. It just lives its own life when navigating to a hidden tab (with the above setting yes).

I even got it as far as moving back and forth between 5 views. My UI wasn't responding at all so I pressed multiple buttons after each other. After a second or 10 it started doing something again, but now it would just rotate between those 5 views that I have selected earlier. It gets even more funny:
When I open the app again after 15/30 minutes or so. It just continues what it was doing (so rotating between those views).

I also found that when going to another tab, it often loses connection and wants to reconnect (it will show the yellow cog at the bottom right of the screen on the ios app. When this happens the UI will refresh, but most of the UI will then become unreponsive, you could still scroll. But pressing a button would do nothing until you either waited long enough or refresh)

@dmatik
Copy link
Author

dmatik commented Jan 26, 2020

1.3.1 seems to be fixing the issue with go to path of the view.
Thank you very much for quick resolution!

@PostSven
Copy link

installed 1.3.1 the disco mode flickering is gone (so far) i will keep testing!

@maykar maykar closed this as completed Jan 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants