maykar / lovelace-swipe-navigation

↔️ Swipe through Lovelace views on mobile.
MIT License
205 stars 71 forks source link

Is this still working in v117 #38

Closed erikwachters closed 3 years ago

erikwachters commented 3 years ago

I can't get it to work in v117. I've did a copy paste of the example but nothing happens.

maykar commented 3 years ago

Yes this is working in 0.117, it was updated for it a few hours ago. The current version that was updated for HA v0.117 is v1.2.7.

erikwachters commented 3 years ago

Hello,

swipe_nav:
  animate: swipe
  swipe_amount: 30
maykar commented 3 years ago

Does the resource exist either in ui-lovelace.yaml or in configuration > lovelace dashboards > resources?

What device are you using and have you cleared cache?

On iPhone companion app this can be difficult and can require many refreshes of the page. On Android companion app, close app, hold app icon, select app info, select storage & cache, clear cache.

damanti-me commented 3 years ago

Yes, for iPhone you need to clear the cache in the settings. Then it's working :)

maykar commented 3 years ago

@damanti-me Out of curiosity, is that a setting in the iPhone companion app or is there a place in iPhone settings to clear app cache? Would be useful to know so I can point folks in that direction when needed.

damanti-me commented 3 years ago

@maykar

  1. open the iPhone app "Home Assistant" by Nabu Casa
  2. open the menu
  3. scroll down to app configuration
  4. scroll down to reset Frontend Chache

edit: i also restarted the app after this

maykar commented 3 years ago

Perfect, thank you!

KTibow commented 3 years ago

@maykar was that double-comment on purpose?

maykar commented 3 years ago

What double comment 😜...nope, just poor connection and a itchy trigger finger I guess.

erikwachters commented 3 years ago

What do yu mean with this:

Does the resource exist either in ui-lovelace.yaml or in configuration > lovelace dashboards > resources?

I use Android & chrome o Windows. I cleared the cache, no joy.

maykar commented 3 years ago

I'm going to assume you're not using YAML mode here:

Go to your sidebar and click on "Configuration", then click on "Lovelace Dashboards", then on "Resources". Do you see something like this /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js in there? If not, then click the plus icon, add /hacsfiles/lovelace-swipe-navigation/swipe-navigation.js in the URL field and hit "create".

HACS should automatically do this for you, but there have been occasions where it has not.

erikwachters commented 3 years ago

I'm going to assume you're not using YAML mode here:

I'am in yaml mode. :)

I added this to my recources, correct?

maykar commented 3 years ago

That's the right resource and just in case, how to add resources in yaml mode:

https://www.home-assistant.io/lovelace/dashboards-and-views/#adding-more-dashboards-with-yaml

Then in top right menu while on a lovelace page select "Reload resources"

erikwachters commented 3 years ago

Got it. For some reason I put the resources section in the lovelace.yaml iso configuration.yaml and that did the trick. Strange that this is the first time I have troubles with this.

Anyway, thanks for the support!!