duncan86
(Duncan Bloom)
November 22, 2021, 7:14am
446
Well I used the NMAP integration, which created a āknown_devices.yamlā file. And in there I put
picture: /local/path to image/image.png
Did this for all the discovered devices. But the NMAP integration changed some time ago. So iām not using this anymore. Still looking for a new way to track all devices on my network.
Hope this helps a little.
If youāre trying and it wont work, let me know. Iāll try to see if I can help.
1 Like
Try customizing entity_picture
inside customize
section for these device_tracker
entities.
AleXSR7001
(AleXSR700)
November 24, 2021, 7:23pm
448
Hello all, hello @Ildar_Gabdullin ,
I was wondering if auto-entities could also work with Apexcharts
without creating one chart with multiple but rather one chart per entity.
Code for multiple charts without auto-entities
type: vertical-stack
cards:
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Living Room Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_living_room
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_living_room
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Dining Room Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_dining_room
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_dining_room
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Master Bedroom Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_master_bedroom
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_master_bedroom
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Guest Toilet Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_guest_toilet
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_guest_toilet
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Office Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_office
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_office
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Kitchen Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_kitchen
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_kitchen
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Master Bathroom Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_master_bathroom
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_master_bathroom
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
- type: custom:apexcharts-card
layout: minimal
graph_span: 48h
experimental:
color_threshold: true
update_interval: 10 s
yaxis:
- show: false
max: 21
min: 0
header:
title: Walk-in Temperature
show: true
show_states: true
colorize_states: true
apex_config:
legend:
show: false
datalabels:
enabled: true
grid:
show: false
chart:
height: 100px
series:
- entity: sensor.eq_3_temperature_walk_in
stroke_width: 2
group_by:
func: last
fill_raw: zero
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
type: line
opacity: 1
curve: smooth
- entity: sensor.eq_3_temperature_walk_in
stroke_width: 0
group_by:
func: last
fill_raw: zero
type: area
color_threshold:
- value: 4.5
color: blue
- value: 20
color: red
opacity: 0.1
curve: smooth
Code with auto-entities but each entity is one series
(Please ignore the config-template-card, it matters not)
type: custom:config-template-card
entities:
- input_select.days_back_to_show
variables:
span: states['input_select.days_back_to_show'].state+'d'
days: |
-states['input_select.days_back_to_show'].state+'d'+'1d'
card:
type: vertical-stack
cards:
- type: custom:auto-entities
filter:
include:
- entity_id: sensor.eq_3_temperature*
options:
entity: this.entity_id
stroke_width: 2
group_by:
func: last
fill_raw: zero
card:
type: custom:apexcharts-card
graph_span: ${span}
span:
start: day
offset: ${days}
experimental:
color_threshold: true
update_interval: 10 s
now:
show: false
color: red
label: Now
yaxis:
- min: 0
apex_config:
grid:
show: false
Adapt this example for your needs:
type: custom:auto-entities
card:
type: vertical-stack
card_param: cards
filter:
include:
- entity_id: "sensor.cleargrass_1_*"
options:
type: history-graph
entities:
- entity: this.entity_id
Also - do not overload people with unimportant details, give Minimal Working Example.
Then people will help you faster!
P.S. I removed options for sort
, show_empty
etc to simplify the idea.
AleXSR7001
(AleXSR700)
November 24, 2021, 8:18pm
450
Ildar_Gabdullin:
card_param: cards
Hmmm, works with history-graph but not yet with ApexCharts. Still seem to have something wrong
type: custom:auto-entities
card:
type: vertical-stack
card_param: cards
filter:
include:
- entity_id: sensor.eq_3_temperature*
options:
type: custom:apexcharts-card
series:
- entity: this.entity_id
Gives error: /// apexcharts-card version 1.10.1-dev.1 /// value.entity is extraneous
But series needs to be specified, otherwise error that series is missing.
The generated card is:
What you can do is:
either open an issue for auto-entities
- āgenerated card includes extraneous lineā;
or open an issue for apexcharts-card
- āallow extraneous optionsā
Update:
opened 12:50AM - 25 Nov 21 UTC
Let's create a stack of graph cards.
Here is one graph card w/o auto-entitiesā¦ :
```
type: custom:apexcharts-card
series:
- entity: sensor.cleargrass_1_co2
graph_span: 1h
```
![image](https://user-images.githubusercontent.com/71872483/143331216-c7cda166-77ee-41b3-9ef2-f24553ef180e.png)
The code for the stack:
```
type: custom:auto-entities
card:
type: vertical-stack
title: auto-stack
unique: true
show_empty: true
card_param: cards
filter:
include:
- entity_id: sensor.cleargrass_1_*
options:
type: custom:apexcharts-card
series:
- entity: this.entity_id
graph_span: 1h
```
The output:
![image](https://user-images.githubusercontent.com/71872483/143331885-5709c6d6-139e-4cbe-b58a-21c1d529a789.png)
Seems that `auto-entiites` inserts an `entity` option into the destination card.
Since `apexcharts-card` does not accept extraneous options - the error is shown.
The error is not shown when using with `history-graph` card since the `history-graph` accepts extraneous options:
![image](https://user-images.githubusercontent.com/71872483/143332116-4019b1f5-c6dd-425c-bcb3-0c11fac7397a.png)
But the `apexcharts-card` gives an error:
![image](https://user-images.githubusercontent.com/71872483/143332234-c6f8709a-ffcc-4bf1-93d6-57c53873290e.png)
Unfortunately, auto-entities
still gives unstable results with map
.
Sometimes this card does not show a map:
type: vertical-stack
cards:
- type: entity
entity: sun.sun
- type: custom:auto-entities
card:
type: map
show_empty: false
filter:
include:
- entity_id: device_tracker.life360*
options:
default_zoom: 14
When it does:
I used to have a auto-entities card with the types of waste that are going to be picked up (GitHub - pippyn/Home-Assistant-Sensor-Afvalbeheer: Provides Home Assistant sensors for multiple Dutch and Belgium waste collectors ). It worked great until two days ago. I have an empty card with only the title.
I donāt know if it was the update to HA 2021.12 or just after that. The individual sensors are working if I look them up. I did not make any changes to the card. Does anyone have an idea what goes wrong?
type: custom:auto-entities
card:
show_header_toggle: false
type: entities
title: Afvalkalender
filter:
include:
- attributes:
Days-until: < 14
options:
secondary_info: Nog [[ {entity}.attributes.Days-until ]] dag(en)
type: custom:secondaryinfo-entity-row
entity_id: sensor.meerlanden*
show_empty: false
sort:
method: attribute
attribute: Days-until
numeric: true
xisio
(Krzysztof)
December 16, 2021, 4:41pm
454
Hi, how can i hide entities with some state (where are unavailable) ?
exp.
type: custom:auto-entities
card:
type: entities
filter:
include:
- entity_id: '*sensor.washmaschine*'
not:
state: '*unavailable*'
exclude: []
put the filter under exclude
not include
since your goal is to EXCLUDE unavailable entities. Itās explained in the ReadMe in Github pretty well. Did you bother to check there? Like this example there:
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"
1 Like
xisio
(Krzysztof)
December 16, 2021, 6:58pm
456
ASNNetworks:
unavailable
Thank you, I tried the examples in the first place only in a stupid way I tried to filter out the unavailable state in Polish instead of English and it didnāt work.
type: custom:auto-entities
card:
type: entities
filter:
include:
- entity_id: '*sensor.pralka*'
exclude:
- state: "off"
- state: "niedostÄpny"
works very well in English
Surely since Polish values are only for UI, internally the state is āunavailableā.
1 Like
Solved: the attribute Days-until has been altered to Days_until apparently. Changed that in the code and itās working again
1 Like
Now that HA provides a button to trigger the OTA update for Shelly devices I thought is was time to add a card to my maintenance dashboard that shows me what device have an update pending.
type: custom:auto-entities
card:
type: entities
title: Shelly OTA Updates
filter:
template: |
{% for sensor in states.binary_sensor -%}
{% if 'firmware_update' in sensor.entity_id and sensor.state == 'on' %}
{{ sensor.entity_id | regex_replace('^binary_sensor.([a-z0-9_]+)_firmware_update$','button.\\1_ota_update') }},
{% endif %}
{%- endfor %}
To get this to work make sure you are on HA 2021.12, use the official Shelly integration and have the firmware sensor of your Shelly devices enabled.
@thomasloven tnx for this great card
2 Likes
Cafun
December 22, 2021, 9:55am
460
Hi hope someone can help me with this.
I would like a card for birthdays. So far so good.
The problem is, I need 2 filters because of different attributes I want to show in the card and for one filter 1 need 2 states: > 0 and < 20.
But I donāt get that to work.
Here is the code:
type: custom:auto-entities
card:
type: entities
title: 'Verjaardagen'
filter:
include:
- entity_id: sensor.anniversary*
options:
type: custom:multiple-entity-row
entity: this.entity_id
entities:
- attribute: years_at_next_anniversary
unit: jaar
state: '< 20'
- entity_id: sensor.anniversary*
options:
type: custom:multiple-entity-row
entity: this.entity_id
entities:
- attribute: current_years
unit: jaar
state: '= 0'
sort:
method: state
numeric: true
show_empty: false
cavester
(Mark Smith)
December 27, 2021, 11:14am
461
Hi All,
Iāve been using this card for a while now and created quite a comprehensive list of warnings. Iāve a new challenge and I canāt think how to solve it.
Iāve created enhanced sensors for local river level sensors, adding their maximum ānormalā level (and locations for showing on a map).
Iāve set a filter group for sensors containing the word āfloodā but of course I get all the flood sensors regardless of their level. I want them to only appear when their state value exceeds this attribute value, Iām having a mental block and canāt sus how to express this in a filter.
Can anyone help?
Thanks
Post a simplified code for your attempts for auto-entities-card
containing your sensors.
Have you tried this ?
cavester
(Mark Smith)
December 27, 2021, 8:50pm
463
Thatās not quite what Iām trying to achieve, here is some code that doesnāt work:
- domain: sensor
entity_id: /flood/
state: ā> this.entity_id.maximum_normalā
I know itās wrong but Iām not thinking clearly as to what it should be
cavester:
maximum_normal
Is it an attribute?
What possible values does it have? Are they [0ā¦9, 10ā¦99, 100ā¦999], [0ā¦9], [10ā¦99] or ā¦?
Also, what do you want to display - this attribute or a state?
cavester
(Mark Smith)
December 27, 2021, 10:20pm
465
Hi yes an attribute.
Itās variable, ie flood level sensor specific and is measure in metres. It seems to vary from about 0.7 to 2.5. I only want to show flood sensors that are above the maximum normal figure that is applicable to that entity.
Maximum normal: 0.85m which is an attribute of sensor.any_Flood_level and is fixed for each sensor but different for each sensor.
Sensor.any_Flood_level: 0.75
And sensor does not showin my auto list.
Sensor.any_Flood_level: 1.1
The sensor shows in my auto list. It can just shown an icon, or the state, not bothered, but did assume it would show a state if it could be done