I’ve updated card-modder to work around the odd behavior of the darksky-weather-card thing…
Latest version is 70344a
.
HI Jim ,
Would you care to show the conic you made for those buttons (they are buttons are they?) Lights, Devices, Climate, Scenes etc etc? You talk about Picture elements, but as this https://www.home-assistant.io/lovelace/picture-elements/ shows a completely different approach, Ive never even looked at that… Your screens make me rethink, and Id really like to get to know how you did that.
thanks!
They are probably just picture cards with tap_action set to navigate.
Back in the days that was the only way to do it…
ofcourse, you can check my github page for my entire lovelace code but trust me, I am not a programmer or anything. I just stumbled upon Home Assistant and so I thought lets try if I can do this. I have no knowledge of how good, nice or clean code should look like and I’m pretty sure it can all be done much simpler. But this is what I came up with which works perfect for me.
edit: I mentioned the picture-elements card because I had trouble making a rounded corner on those. The other ones are indeed just picture cards with a navigation path. But thanks to @thomasloven I know how to make rounded corners on those too.
auto-entities
Sometimes you may wish to add a lot of entities to a card, or perhaps just some, but which ones may change.
Like say you want to list all lights that are turned on, or all sensors whose battery is about to run out.
My first contact with custom lovelace cards was the monster-card by ciotlosm, which does exactly this. It does have some shortcomings, though, and that’s why I made a reimplementation of it which I chose to call
auto-entities
Differences from monster-card includes:
- support for actual regular expressions
- support for custom cards (it can be used to populate a fold-entity-row, for example)
- support for fetching entities from a group
- ability to parse advanced attribute specifications
Awesome!!!
Now there’s the need for a:
- type: custom:thomasloven_magic_monster_update_and_whatever_comes_next_card
I’m going to give this a crack to see if I can use it to fix this problem:
It doesn’t seem to work with media-control and custom mini player cards… Should it? I got excited about this one specifically for this purpose (dynamically showing all plex media player playing)
*Also, could you show me an example of the combined with fold entity, etc… (I mean the lovelace code and format itself), not entirely sure how to do it along with auto-entities…
**And finally, is there a sort option? I have a view that shows me all scripts, lights, etc… I used Monster before and they were sorted alphabetically, with this one, not sorted at all…
OK well that rocks the free world…
- type: custom:auto-entities
card:
type: entities
title: NSW Warnings & Events
show_header_toggle: false
filter:
include:
- entity_id: "geo_location.nsw_fire_service_feed_*"
show_empty: true
Not sure how to integrate it into the folding-entity-row though?
so there’s 5 in the group but 2 have disappeared so they don’t show so no more nasty yellow which is exactly what I wanted…
Would be nice if they could be sorted in distance order as well…
Same problem I’m wondering about… tried a few things but can’t make it work yet
Also, it’s not yet available in the custom-updater like your other cards…
I use the card-modder (attachment code) … and it does not show the design background
- type: custom:card-modder
card:
type: custom:auto-entities
show_empty: false
card:
type: entities
title: Lights on
show_header_toggle: false
filter:
include:
- domain: light
exclude:
- state: "off"
- state: "unavailable"
style:
background-image: url("/local/lovelace/background/cardbackk.png")
background-repeat: no-repeat
background-color: rgba(50,50,50,0.3)
background-size: 100% 68px
border-radius: 20px
border: solid 1px rgba(100,100,100,0.3)
box-shadow: 3px 3px rgba(0,0,0,0.4)
overflow: hidden
is the extra ‘k’ supposed to be in the file name?
background-image: url("/local/lovelace/background/cardbackk.png")
Yes, this is the correct name for the background image. I use the same name for other places
Thanks @thomasloven. Working great again. I had to manually update it. It’s been over 6 hours since you posted the update, and card tracker is still showing the previous version as the latest, and wants me to install that. Not sure what’s happening there.
Is card tracker playing up for anyone else?
yes I don’t see the auto-entity card in the tracker either
Updater usually runs once a day I think. https://github.com/custom-cards/information/blob/master/repos.json
@ludeeus does a job need to be kicked off?
That would make sense based on what I see. That’s a shame. Should be able to click the check button and it checks the latest versions of each card installed.