So i made a third version of the slider popup for covers.
It works the same as the media_player except it has 1 extra config option ** sliderService** where you need to set if you want to control the normal position or the tilt position with the slider.
I first thought to make 1 pop-up that could work for most entities but configuration gets much more complicated and i can make these pretty quick
finale made it to have this popup show on each button, and use it in the button_template (opposed to writing it on each and every light entity card).
in my previous attempt above, I forgot to use the correct JS syntax used in the button card. duh. here is the correct thing, using browser-mod:
Since I couldn’t read the name of the entity, next to the X, let me ask this:
What would be the variable to use for coloring the title? Also, could we position the name centrally in the popup, atop the icon, or at least in that small column of icon, % and slider?
I’ve now set color: 'var(--primary-color)' and that makes the card follow theming so it seems for now
I’ve also not used the icon template, since I have all my lights customized, and that follows suit nicely.
Thanks again for this great card! Unfortunately the following does only work partially for me:
It does work for my Hue LED Strip, but not my other lights. I configured all the icon colors exactly the same way (greyscale, based only on brightness %) - but for the other ones it shows the standard yellow.
BTW: it shows the correct icon_color in developer settings and other cards.
vs.
Thank you very much for any feedback!
EDIT: My bad, it was only luck that the color was matching - as the led strip was white…
Would it somehow be possible to make it compatible with custom ui? This and the integrated light card are the only (to my knowledge) where it does not work fully.
Love the new enhancements! Quick question. Would like to be able to use the settings button to call a script. Not requesting a change on you part, just wanted to know if it is possible for me to edit the .js to achieve this? Thanks!
Seems to be apparent on some devices. My IKEA and Philips lights work fine, but my xiaomi hub will never go to 100% and stick to 99%. Even if I’d do a service call to set it to say 50% it will be at 49%. Weird but ok
@DBuit I am going to try the new enhancements soon. Last question before I get to it. Could you do that settings button location on your other cards as well? (E.g. thermostat, cover and switch popup?)
Just liked the way it looks on the screen, off to the side, and was trying to use it as a navigate button to reopen the previously opened popup. I open this popup from a already opened popup. Will try that out to see. Thanks for the quick response!
Just a weird question maybe, but isn’t yeelight from xiaomi? Would explain a bit though. Might be that all xiaomis have this ‘problem’. (if it isn’t xiaomi, aren’t they affiliated with them?)
Although the integration for Home Assistant does not belong to any xiaomi platform, if it is true that they will enter into the xiaomi ecosystem and are visible from the Mi Home app, it is probably related, it still has something to do with the value of brightness ranging from 0 to 255
Have this 99% issue with popup-card as well, with Yeelights (IKEA and Osram work fine). But 100% brightness does work when using service calls or by using the brightness slider on more-info page with the Yeelights. So this is purely with Yeelights and this popup-card.
It does the same for me when using Apple’s Homekit. So I’m not entirely sure if it is related to this popup card. Button-card shows me 99% too even after a service-call. It would change to 99% in a little while.
Strange. Using HomeKit my Yeelights go to 100%, no issues. Btw this 99% issue is with Yeelight bulbs and the Yeelight strips (only when using the popup-card in my case).