Working great now. Thanks! <3
Unfortunately I have no luck. It completely disables all cards inside the same lay-out card if mini-graph is also present. Other tabs where mini-graph is not used, all other cards show up. All cards are inside auto-entities.
Reverted to 1.7.0, works. Updated back to 1.8.2, again lost cards.
1.8.2 is working great now for my use case. Thank you for the awesome project.
Thanks for the quick fix, Thomas, 1.8.2 fixed the issue I had posted on GitHub. Appreciate all that you create and do!
anyone else noticing small gaps surrounding an auto-entities config like these all of a sudden: https://github.com/thomasloven/lovelace-auto-entities/issues/173
only thing changed is HA, and auto-entities
The following code worked perfectly ok until upgrade to 1.8.2 It kills the lovelace page containing this code. Removing it restores the remainder of the page. Any guidance to point me to the necessary correction would be appreciated:
card:
title: GAD
type: entities
entities:
- entities:
- entity: input_boolean.notify_utility
- entity: input_datetime.gad_notification_time
head:
label: Notification Settings
type: section
padding: 0
type: 'custom:fold-entity-row'
filter:
include:
- entity_id: sensor.gad_restafval
- entity_id: sensor.gad_gft
- entity_id: sensor.gad_papier
- entity_id: sensor.gad_pmd
- entity_td: sensor.gad_textiel
show_empty: false
show_header_toggle: false
sort:
attribute: Sort-date
method: attribute
numeric: true
title: GAD
type: 'custom:auto-entities'
As a lot of other users, I’m using some Shelly devices for my home automation.
When debugging, flashing firmware or no matter what, I’m using the Shelly built-in web interface. Mainly because it’s user friendly and it offers more options than the app.
For now, I’ve been using a static entities-card to reach the devices (all static IP adresses):
entities:
- icon: 'mdi:power-plug-outline'
name: Smart Plug Boiler
type: weblink
url: 'http://192.168.68.xxx/'
...etc...
Although it works fine, it still…well…static and all Shelly devices publish their IP-adress on MQTT, so it is stored in sensor.shelly_xxx_ip
Building a list is fairly simple and works perfectly:
type: 'custom:auto-entities'
card:
type: entities
title: Smartplugs
filter:
include:
- entity_id: sensor.shelly*ip
But its still just an entities-card, so not clickable.
I’ve been trying with custom:template-entity-row
but no success.
Option 1: make all entities weblinks, but how to get the entity value in the url-field? I’ve found that this field is not template-able. The entity sensor.shelly*ip just has a state (the IP adress) and a friendly_name attribute.
type: 'custom:auto-entities'
card:
type: entities
title: Network
filter:
include:
- entity_id: sensor.shelly*ip
options:
type: weblink
url: ???
Option 2: use custom:template-entity-row
and set the tap-action but same problem here. This is also not useable for option one because you would get 2 type
definitions.
type: 'custom:auto-entities'
card:
type: entities
title: Network
filter:
include:
- entity_id: sensor.shelly*ip
options:
type: 'custom:template-entity-row'
tap_action:
action: url
url_path: ???
Any suggestions from the community?
I just started playing with this card and it’s not behaving as I’d expect. In my case, I’m using it for to display info about my 3D printer. There’s a printer error sensor that is “Off” if no error is present. That’s really the only entity I care about hiding, so I’m attempting to filter and exclude sensors in state “Off.”
type: 'custom:auto-entities'
card:
type: entities
entities:
- entity: binary_sensor.ender_3_project_printing_error
name: Print Error
secondary_info: last-updated
- entity: sensor.ender_3_project_job_percentage
name: Print Completion
icon: 'mdi:file-percent-outline'
- entity: sensor.octoprint_time_elapsed_format
icon: 'mdi:clock-start'
name: Printing Time Elapsed
- entity: sensor.octoprint_time_remaining_format
name: Printing Time Remaining
icon: 'mdi:clock-end'
filter:
exclude:
- state: "Off"
I’ve gone into Developer Tools and checked the state just to be sure… and it is, in fact, “Off.”
Do I have a syntax problem in my card somewhere?
type: custom:auto-entities
entities:
- LIST 1
filter:
include:
- LIST 2
exclude:
- LIST 3
card:
CARD_OPTIONS
auto-entities takes LIST 1, adds LIST 2 and removes LIST 3.
Then it adds this to CARD_OPTIONS, and that’s what you’ll get in your card.
Thanks for your reply, but is that not what I’ve done in my auto-entity card above?
Are we able to filter using time
and date
?
I want to be able to only show the current sensor, for this sensor, thanks
After some of the latest updates this code does not work as a separate card:
type: 'custom:auto-entities'
card:
type: entities
title: auto-entities (sort name global)
entities:
- entity: sensor.ac68u_devices_connected
name: Подключено устройств
secondary_info: last-changed
- type: section
filter:
include:
- domain: device_tracker
attributes:
source_type: router
options:
secondary_info: last-changed
unique: true
sort:
method: name
reverse: false
ignore_case: true
Moreover - it forces some other cards to disappear.
How to reproduce:
- Open any view.
- Add a new card. Open code editor and add that code. Save.
- The added card is not displayed.
- Open raw editor.
- Find the added card and move it between cards located on this view. Save.
- Open the view - all cards located after the added card not displayed.
Yes, I have the same issue when using mini-graph inside auto-entities. Somehow everything on the page inside the same layout-card is gone. Happens on all my pages where mini-graph is present. Other pages work fine. On 1.7.0 all works. I hope it’s fixable.
There’s a bug in auto-entities which can cause this. I’m working on it right now.
Does anyone have problems with disappearing cards that are not in layout-card or vertical-stack-in-card?
not disappearing, but appearing gaps around the auto-entities card (in stack-in-card): 🔹 Auto-entities - Automatically fill cards with entities
using the hui-element card on the auto-entities card fixes that for now.
Here 3 cards:
- auto-entities
- entity card
- entities card
The last 2 are not displayed too.
- title: zzzzzzzzz
path: zzzzzzzzz
badges: []
cards:
- type: 'custom:auto-entities'
card:
type: entities
title: auto-entities
entities:
- entity: sun.sun
secondary_info: last-changed
- type: section
filter:
include:
- domain: device_tracker
options:
secondary_info: last-changed
unique: true
sort:
method: name
reverse: false
ignore_case: true
- type: entity
entity: sun.sun
- type: entities
entities:
- sun.sun
- sun.sun
This should be fixed in 1.8.3
Fwiw @Mariusthvdb this has been happening as long as I can remember with conditional cards in vertical stacks too.