Yes they go in the root so not after or inside the views:
Well if you are using browser_mod and implementing this in your own interface it looks like your need to do this for each light but i do not know that maybe.
I made my own card to create a homekit style interface and there you can also use this card and use it for a row of entities but if you can find that in the readme of that card: https://github.com/DBuit/Homekit-panel-card
about the ‘global’ template, would you please consider looking in to that? Would be really cool if this could be done, (if needed maybe in conjunction with the decluttering template) to prevent having to write the exact popup code 43 times
I also made something new i called it rules maybe the name will change but you can template rules and this will be displayed on your home screen to inform you about stuff like how many lights are on, or for me when i need to put the trash outside see screenshot:
So i removed scenes from the card and renamed it toactions.
It can do the same but much more because it uses services now as was suggested by people, you can also add icons to use it more as a button.
No update yet for the pop-up card but i did update the homekit panel card!
I just released an update of the homekit card: https://github.com/DBuit/Homekit-panel-card
What is added/fixed/changes:
Add column support . This is optional but if you wanna use this the yams looks a bit different because you have to name the rows and columns in the readme there will be an example.
Display state info like brightness percentage for lights or last_changed for sensors not after the state (on/off) but in a circle inspired by A different take on designing a Lovelace UI
Custom hold_action. I added the tap_action before and now you can also customize the hold_action the same way
Custom double_tap_action. Just like hold you can also set a double_tap_action. By default if no double_tap is defined it will activate the tap action.
Icon spin. You can set spin: true on your entity and the icon will start spinning when the state == on can be useful for ventilation for example
Small css changes/fixes
Rewriten the readme
With the new columns you can now make in interface like this:
I created a quick new pop-up card after suggested by someone to reuse the light popup for media_player
So it is the same popup card as the lights but now the slider controls your volume of your media_player.
And you can configure extra actions to add more control like next and previous song and play/pause your media_player.
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.