Yoni_Almog
(Yoni Almog)
October 16, 2020, 7:39am
185
After upgrading to Home Assistant 0.116.4 (from 0.115.3) I got errors in all my Auto Entities cards
Can someone help ?
Custom element doesnât exist: auto-entities.
card:
title: Movments
type: entities
filter:
include:
- entity_id: binary_sensor.motion_sensor*
type: âcustom:auto-entitiesâ
Pretty much.
Just a thought after someone had an issue with my weather card⌠Do you use HACS? Is it set up as an integration or YAML? Do you have the HACS side menu? If still using yaml try switching to adding the integration in the GUI instead.
Yoni_Almog
(Yoni Almog)
October 16, 2020, 8:06am
187
Yes, I have HACS and I have set it up via HACS.
I have HACS side menu.
In the breaking changes of the 0.116.4 it mentioned:
Custom Lovelace Cards
This release contains breaking changes for custom card developers, check the developers blog for more information.
If you have a custom card that stopped working this release, please report this with the custom card author.
I use this card and itâs working fine. Did you check you are running the latest version? Have you checked the card is in the lovelace resources?
nightmare1
(nightmare1)
October 17, 2020, 3:17pm
190
I have âcustom:auto-entitiesâ and it is working fine but i wanted to try adding another element with âcustom:template-entity-rowâ but i cant get it to work , it looks like maybe i have not installed the plugin correctly but i did it exactly the same as âauto-entitiesâ, what have i got wrong.
type: 'custom:auto-entities'
card:
title: Parcels
type: entities
filter:
include:
- entity_id: sensor.*track_package_*
options:
type: 'custom:template-entity-row'
name: >-
{{ state_attr('this.entity_id','friendly_name') |
regex_replace(find="Seventeentrack Package: ", replace="",
ignorecase=True)}}
maurizio53
(Maurizio Fabiani)
October 22, 2020, 10:22am
192
How to have shown a state of an entity?
I am using this:
include:
- domain: sensor
attributes:
battery_level: "<=100"
- domain: binary_sensor
attributes:
battery_level: "<=100"
- domain: switch
attributes:
battery_level: "<=100"
- entity_id: "*hue_smart*"
state: "<=100"
But it doesnât workâŚ
The entities are shown regularly but without the state valueâŚ
Joerg
October 22, 2020, 11:50am
193
This works for me:
card:
show_header_toggle: false
title: Batterie states
type: entities
filter:
include:
- domain: sensor
attributes:
battery_level: <=100
sort:
method: state
numeric: true
type: 'custom:auto-entities'
maurizio53
(Maurizio Fabiani)
October 22, 2020, 3:31pm
194
Hmmm maybe i was not so clear⌠what i need is to show a value of an entity state just like the option âattributesâ does.
How to include an entity inside the card and show his state value?
Joerg
October 22, 2020, 4:02pm
195
I donât get you, sorry.
You want something like that?:
maurizio53
(Maurizio Fabiani)
October 22, 2020, 4:30pm
196
Yes, thatâs what i try to haveâŚ
I have these sensors:
And i want to see their battery values.
I added this inside an auto entities card:
include:
- entity_id: "*hue_smart*"
state: "<=100"
But i donât get the battery value. How to do ?
Hope i am clear enough nowâŚ
Joerg
October 22, 2020, 5:07pm
197
You should have tried what I posted before.
Add switch
and binary_sensor
to my code above and you should be fine:
card:
show_header_toggle: false
title: Batterie states
type: entities
filter:
include:
- domain: sensor
- domain: switch
- domain: binary_sensor
attributes:
battery_level: <=100
sort:
method: state
numeric: true
type: 'custom:auto-entities'
Except for the hue thing, I donât know what domain it is. Itâs just a light, no?
This works too, for all entities with battery in its name, therefor some excludes:
card:
show_header_toggle: false
title: All Batteries
type: entities
filter:
include:
- entity_id: '*battery*'
exclude:
- domain: script
- domain: automation
sort:
method: state
numeric: true
type: 'custom:auto-entities'
Which gives me:
Note: there is no need to use battery_level: <=100
here.
maurizio53
(Maurizio Fabiani)
October 22, 2020, 5:41pm
198
No way, i tried both your examples but this is what i get:
Joerg
October 22, 2020, 5:57pm
199
What devices are Cubo
and Finestra
(window?) and does the Hue Smart Buttons have a numeric value?
Asking because f.e. the blink battery has no numeric values, it just says âgoodâ, ânormalâ and âlowâ.
Consider to post your entire code here not only what you have posted before.
maurizio53
(Maurizio Fabiani)
October 22, 2020, 6:02pm
200
Cubo and Finestra are two binary_sensors.
This is the entire code:
- type: custom:auto-entities
sort:
method: name
attribute: battery
card:
type: custom:bar-card
style: |
.card-header {
font-size: 18px;
}
bar-card-value, bar-card-name {
font-size: 12px;
transform-origin: 0 0;
text-shadow: 1px 1px #0008;
white-space: nowrap;
}
bar-card-value {
margin-right: auto;
margin-left: 6px;
margin-bottom: auto;
margin-top: auto;
}
bar-card-currentbar, bar-card-backgroundbar {
border-radius: 12px;
border: 1px solid #DDD9;
}
unit_of_measurement: "%"
severity:
- color: '#bf4040'
from: 0
to: 30
- color: '#bf9540'
from: 30.1
to: 70
- color: '#40bf40'
from: 70.1
to: 100
animation:
speed: 1000
delay: 1000
state: 'on'
color: '#222222'
direction: right
entity_row: true
height: 25px
width: 100%
limit_value: true
min: 0
max: 100
title: 'Livello Batterie:'
stack: vertical
target: 15
attribute: battery_level
positions:
icon: 'off'
indicator: 'off'
title: inside
minmax: 'off'
value: inside
show_minmax: true
filter:
include:
- domain: sensor
attributes:
battery_level: "<=100"
- domain: binary_sensor
attributes:
battery_level: "<=100"
- domain: switch
attributes:
battery_level: "<=100"
- entity_id: "*hue_smart*"
# state: "<=100"
exclude:
- entity_id: "*umidit*"
- entity_id: "*plug*"
- entity_id: "*illumin*"
- entity_id: "*pressur*"
- entity_id: "sensor.mi_h_4c65a8d05d5d"
- entity_id: "*hue*lamp*"
Joerg
October 23, 2020, 10:13am
201
Sorry, I didnât know about the bar-card integration and you are mixing it up with auto-entities, so this was a bit trickier.
I suspect it donât work for you because of wrong indentation.
Since the Hue buttons are recognized as sensors you should get them either by using an (auto-entities) filter with - domain: sensor
or - entity_id: "*hue_smart*"
or - entity_id: '*battery_level*'
Here is a shortend example which uses bar-card inside auto-entities and works for me, you may use this a basis to start over (bevor adding bar-cards other fancy stuff, like text formating, etc.) :
type: 'custom:auto-entities'
sort:
method: state
numeric: true
card:
type: 'custom:bar-card'
severity:
- color: '#bf4040'
from: 0
to: 30
- color: '#bf9540'
from: 30.1
to: 70
- color: '#40bf40'
from: 70.1
to: 100
show_header_toggle: false
title: Batteries
filter:
include:
- entity_id: '*battery_level*'
A word about the auto-entities sorting youâre trying use in your original code:
sort:
method: name
attribute: battery
If you use attribute
, you have to use attribute
as the method
:
sort:
method: attribute
attribute: battery
Jonsson9
(Martin Jonsson)
November 3, 2020, 11:33am
202
Is it possible to use with a picture glance card?
I have a camera that I would only like to show when the camera is âonâ.
Have you tried using a conditional card? That is how I achieved this!
Im still very new⌠and for some reason I canât filter out everything except browser_mod⌠i know this something sillyâŚbut plz help :). â> i get this error âCannot convert undefined or null to objectâ
type: custom:auto-entities
show_empty: false
card:
type: entities
title: Lights on
show_header_toggle: false
filter:
include:
- domain: light
- domain: switch
exclude:
- state: "off"
- state: "unavailable"
- attributes:
type: browser_mod
for me i get this error, when using -atributes
Cannot convert undefined or null to object
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
- attributes: null
type: browser_mod
1 Like
Joerg
November 12, 2020, 7:12am
206
This is because of a bad indentation of the last line.
Try
- attributes:
type: browser_mod
1 Like