Not sure if someone has tried doing this before, but I’m running into an issue when attempting to create a single button to Turn On / Shutdown my NAS depending on the NAS state. The button would change the icon, name, and script depending on the state of the NAS. I tried making the code while using the Lovelace UI to display the proper shutdown button for an NAS on state, but clicking the button doesn’t shut down the NAS. When I use the code in my NAS footer popup, the popup refuses to open.
Here’s a working static button that enables shutting down the NAS via a button press:
Hey @Mattias_Persson,
somehow i cant get the update popup to work. Probably due to the new UI version-sensors and messed up names?
Even I renamed these sensors I am getting following error:
I do have the x plex token obtained and typed into the sensor in the yaml file. Sensor works and says online, but there is no data… . Im pretty sure I did it correctly. This is more of a me problem now because it has nothing to do with your ui, but thanks for your help! I
In my case, in the first two options, I get an xml with info, but the last one returns a 404 error. Something must be wrong with this url. But the token I’m sure is fine.
And the first two putting the ip address
You just posted two different ip’s 192.168.1.114 and 192.168.1.2
You’ll get 401 Unauthorized if your token is incorrect. So the fact that you see MediaContainer shows that your token works. I get MediaContainer size="50" with lots of data.
I get this error on the update popup in the footer.
ButtonCardJSTemplateError: ReferenceError: marked is not defined in 'if (entity) { let links = new RegExp('<a href="([^"]+)"', "g"), installed = entity.state...'
The problem seems to be in the template ipdater_hass but I dont understand what the problem ist.
Copy paste error. The ip is 114 and the error was 404 with only one of the urls
When I access the server from a computer, does it show me everything it has? To the question you ask me, if I added something, I would believe that at least that is what I think I did. Maybe it wasn’t the right method. How should I do to add something?
I reply to the last message I just wrote. I feel very stupid because it is something that I have been leaving the do for a year. If you hadn’t asked me the question if I added something that no one had ever asked me before, I would never have solved it. I thank you for so much patience. Thank you very much
Plex now brings data but this error that I imagine has to do with extra_styles and hue lights that you have. But I don’t understand why it affects this card
hello everyone, I’m having this very annoying problem in the display of the last two groups of button cards that are larger than the others, I tried a lot but without success, I hope someone can help me
I only looked at default layout. Your rows should be 4 values, 4 rows grid-template-rows: 0 repeat(2, fit-content(100%)) 0fr but the issue at hand looks like it has something to do with swipe-card. What happens if you remove the media section and have two entertainment sections side by side?
Send a private message to me with your ui-lovelace.yaml and button_card_templates.yaml in a .zip file and also attach all attributes from sensor.plex_recently_added
hello mattias then I tried to modify the grid rows and both to remove the media and put another 4 button cards in place of the media but the problem persists, it is a defect that makes me only on default and phone in portrait, while on tablet with fully kiosk you can see well, honestly I have run out of ideas