That did not work, but good news! ScottG on the discord helped me work through the options to get a working version! For all those struggling to get Auto Entities to work with Mushroom Chips, here is a working code block:
Options are your friend for the auto entities card. For scenes to work, the chips must be of the entity variety, and I really recommend having the name
You really want to use the tap_action: action: toggle blurb. This has to be separate lines! ScottG pointed out I was trying to make tap_action: toggle work when in the chips card it is passed as an object, not as a string (therefor the action part must be indented on the line below)
cant be.
the config I posted works fine.
ofc all choices you can make have an effect, so yes, using the content_info: name adds the name in stead of the state.
setting a tap action other than default makes a difference.
as long as you use the magic card_param to populate the correct parameter in the auto-entities config, and set a few options of your choice, you should be good. as I suggested here
Hi , I need help with auto entities and the Maxi media player card. I do not if itās posible but I would like to show the correctly playing media player. With mini media player I have no problem. I made a group of media players and with auto entities I show the currently player one but I,m not able to do it with the Maxy media player card.
This is the code I use for mini media player and I do no know how adapt it to Maxi media player. Any help will be appreciated.
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?