Closed mamoel666 closed 3 years ago
Same for me.
For now, you can you can set icon to anything like icon: s
and it reverts to the entity's icon.
But icons do not show at all, last working version with working icons is 1.11.0 (so I've temporary downgraded mini media player) btw thanks - it is great project
version | 2021.1.1 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
virtualenv | false |
python_version | 3.8.7 |
os_name | Linux |
os_version | 5.4.86 |
arch | x86_64 |
timezone | Europe/Warsaw |
Yeah I can't quite work it out - it has something to do with when an icon is overidden in the front end UI via the entities page.
Same here. I have icons overwritten at the entity level, but indeed do not show up since the last update. Weirdly, the effects seems to differ between devices.
I don't use icon customization nor entity level icon override, so it does not look as cause…
Same issue
same issue for me; i ended up adding the icon mdi into the customize.yaml file
I have 6 mini media players on a tab of my UI. Each one is overridden in the ui using icon: mdi:icon-name
. Only the first such icon on the page shows up. The others all show blank spaces.
If I remove the ui overrides then the default icon shows up just fine. As @iptvcld says above you can then use the customize.yml file to do what you want. I would rather not do that though.
I would hazard a guess it's something to do with the change made here
Same here
Same here
Quick Fixed for those who want to do it manually while waiting for the next release.
Edit your js on ./www/community/mini-media-player-bundle.js using your noteeditor
search for return this.config.icon ? this.player.icon : ICON.DEFAULT;
and change it to return this.config.icon ? this.player.icon || ICON.DEFAULT;
and you should have working mini-media-player
Enjoy
@ranrinc It does not help, so as temporary fix downgrade to 1.11.0 stlli is better…
@ranrinc It does not help, so as temporary fix downgrade to 1.11.0 stlli is better…
It's working for me...
Anyway like I said its a quick solutions
Quick Fixed for those who want to do it manually while waiting for the next release.
Edit your js on ./www/community/mini-media-player-bundle.js using your noteeditor
search for
return this.config.icon ? this.player.icon : ICON.DEFAULT;
and change it toreturn this.config.icon ? this.player.icon || ICON.DEFAULT;
and you should have working mini-media-playerEnjoy
I made the change but how do I clear the JS cache so that this updates in the UI?
Quick Fixed for those who want to do it manually while waiting for the next release. Edit your js on ./www/community/mini-media-player-bundle.js using your noteeditor search for
return this.config.icon ? this.player.icon : ICON.DEFAULT;
and change it toreturn this.config.icon ? this.player.icon || ICON.DEFAULT;
and you should have working mini-media-player EnjoyI made the change but how do I clear the JS cache so that this updates in the UI?
In my case refresh HA and you should see the implementations
I got it working by just defining 'mdi:icon-name' under the icon tab in my HASSIO entities section.
Edit your js on ./www/community/mini-media-player-bundle.js using your noteeditor
search for
return this.config.icon ? this.player.icon : ICON.DEFAULT;
and change it toreturn this.config.icon ? this.player.icon || ICON.DEFAULT;
and you should have working mini-media-player
So I tried this hack but I do not find this text anywhere in the js
return this.config.icon ? this.player.icon : ICON.DEFAULT
I also installed the repo and looked for it in main.js file there and made a comparable change to source code but then it would not compile.
I got it working by just defining 'mdi:icon-name' under the icon tab in my HASSIO entities section.
I don't understand what you mean with this? Which entity? what icon tab?
Just go into Configuration > Entities > Your-Entity. Then add the manual mdi icon as above. It will then appear in your lovelace UI.
Just to be clear. That is not a final solution, just a quick fix if you are in a hurry to see the icons. The real problem has to be fixed in mini-media-player and released in a new version.
Well I was attempting the quick fix and also fixing the card but the posted solution... well that text isn't found and if I edit the js file it won't compile
Yeah my js file does not contain that text either.
@ranrinc It does not help, so as temporary fix downgrade to 1.11.0 stlli is better…
Rolling back to 1.11.0 made no difference (yes I cleared my browser cache).
Looks like Customize is the best solution for now.
Hopefully fixed now, let me know 🙂
For me v1.12.1 works OK
This morning I updated to v1.12.0 via HACS. Now the icons are missing.
Example config:
I restarted HA and cleared browser cache.
Environment: Home Assistant 2020.12.2 in Docker (Synology NAS).