tbh, I dont use that card, but I have installed it quickly, and can not get it right eitherā¦ seeing the same as you do, and inspector clearly shows its the mapping not getting it right.
@petro made this in a separate chat (thanks!), and weāve not yet added other config options to that. downside of template in auto-entities is that you have to get all other options also inside that template. so, depending on how complex you want it to be, you might be up for a challenge yet
Not checked your template - but you cannot combine ātemplateā & āoptionsā.
All options must be defined as a part of ātemplateā. See examples in the thread.
I only have one left I want to rewrite if possible:
template: >
{%- set alert_level = states('input_number.battery_alert_level')|int %}
{%- set ns = namespace(batt_low=[]) %}
{%- set ns = namespace(batt_low=[]) %}
{%- for s in label_entities('batterij')
if is_number(states(s)) and states(s)|int < alert_level
or not has_value(s) %}
{%- set ns.batt_low = ns.batt_low + [s] %}
{%- endfor %}
{{ns.batt_low}}
selecting all batteries below alert level or lost contact
I also want to show the alert message in the box, and not only the name of the friendly name of the alert. But it seems that the message is not an attribute of an alert. Is it possible to extract the alert message somehow?
{%- set area_filter = states( 'input_select.room') -%}
{{- area_entities( area_filter ) | select('search', '^light\.') | list -}}
Assigns the value of an input_select to variable area_filter
Selects all entities in that room/area ( area_filter ), filters that list down to just lights