jimz011 / homekit-infused

Homekit Infused 5 2023
https://jimz011.github.io/homekit-infused/
Other
878 stars 137 forks source link

error when using the media players view #154

Closed TheBoxTrot closed 2 years ago

TheBoxTrot commented 2 years ago

ive been using you premade media view as a template and replacing all the entities in it with my own but I'm unsure what is causing this and if I'm missing an addon or something like that

butoncardjsttemplateerror: typeerror: cannot read properties of undefined{reading 'state'} in 'if(states['sensor.media_players_playing'].state=='Playing')return'A media player is playing r.......

jimz011 commented 2 years ago

If you just copied my config, then it won't work since you are missing the media players playing sensor.

Just remove or comment out the button_badge lines in your setup from the mediaplayers pages.

This media player sensor was not included with the setup, simply because it is too complicated.