Questions/help: chip cards at top of mobile dashboard - Mini-splits thermostats heat mode on glance count not working properly

good evening, all, I am semi new to HA (started in mid November 24’), I finally got around to making dashboards, working on my mobile dashboard right now and adding ‘chip cards’ at the very top, so far, I have open door count, lights on, locks unlocked. We have 6 mini-splits in our house, and at a glance I’d like to know how many of the 6 are on.

I use templates for all of them so far, and have text pasted into my configuration.yaml. The text I paste into my configuration.yaml seems to not generate errors, also, I pasted the same text into ‘template editor’ within Developer tools (screenshot below) and under ‘state’ it shows ‘1’, which is correct, because currently 1 of my 6 minisplits are turned on. But when I paste text into the mushroom chip card’ it gets an error ‘entity not found’ (screenshot attached as well). So I am bit lost what I am missing, since it ‘works’ in the developer area template editor, but I know its my user error :slight_smile: .

What I am trying to accomplish, is a 4th chip card at the very top of my mobile dashboard to show how the number of how many of my mini-splits are on ‘heat’ mode.

Also, here is the configuration.yaml text and also here is the text I paste into the chip card badge.

thank you very much in advance!
Jonathan

  - sensor:
    - name: "climater"
      unique_id: climate_dudes
      icon: mdi:fan
      state: "{{ states.climate |selectattr('state','eq','heat') | map(attribute='entity_id') | list | length}}"
type: entity
show_name: false
show_state: true
show_icon: true
entity: sensor.climate_dudes
color: blue

Are you sure this is a custom mushroom card?
Not a standard badge? If a standard - do not call it “chip”, it’s just a “badge” (in fact, a “badge” word has many meanings in HA, but this thingy on a top of a view is called a “badge”).

If the card says “entity not found” - perhaps the entity does not exist?
Go to Settings → Entities, if it is not there - a reason to think “May be unique_id does not stand for entity_id?”

1 Like

THANK YOU!!! lldar, that fixed it, after search my entities under settings/devices, I saw it did not follow my ‘climate_dudes’ unique ID for whatever reason it named it ‘climate_4’.

so I went back to the badge and edited the entity name and BOOM its fixed!!

see screenshots! 1 mini-split is on right now, so its displaying the correct information!!! thank you thank you!!



1 Like

Note that you can EDIT entity_id to whatever you want since you provided “unique_id” & thus made this entity “editable in UI”.
Example with some entity:

1 Like

Hi, lldar, one more question, if you do not mind. If I also want my climate badge to display if a mini-split is on but in cooling mode (summer time of year, etc). Do I simply add a " ,‘cool’ " right behind " ‘state’,‘eq’,‘heat’ "?

Example below of the change I’d make:

 state: "{{ states.climate |selectattr('state','eq','heat','cool')

thank you in advance!

Should be like

selectattr('state','in',['heat','cool'])
1 Like

that 100% worked, THANK YOU!!!

1 Like