hi i trying to get battery levels to show up in 1 single entities card
but i run in problem of some are Battery Level , Battery level, battery level
but i want to combine them all filter by the word battery level and ignore the case but i cant seem to figure it out i tried the or: as an option but then just labels everything level
ah ok that worked had to take out the 1st filter didnt like both.
and thats ok you cant know everything… my html coding days ended 20 yrs ago its surpassed me now all this new stuff i so behind lol… i appreciate the help…
least thats working to break things down
i been playing around with the help you given so i learned about the backslash for apostraphe
and i learned
| selectattr(‘name’,‘search’, ‘battery’,ignorecase=true)
| selectattr(‘name’,‘search’, ‘iphone’,ignorecase=true)
| map(attribute=‘entity_id’)
that makes it a AND
how do i do a OR
i did try
or:
sof if you wanted to list
Michael or Michelle as example… all in the entity card
so it excludes the remote home assistant, discharging, voltage
but i have these Xiaomi devices that tell the temperature… i use esp32 device as a bluetooth server… but is there a way to strip off the bluetooth servers name?
the entity shows up
Bluetooth Server #3 (House) Front Door Humidity (Xiaomi)
but in esphome each entity is really called
Front Door Humidity (Xiaomi)
Front Door Temperature (Xiaomi)
is there a way to strip off the front part.
Bluetooth Server #3 (House)
so only
Front Door Battery-Level (Xiaomi)
will show up or is that something i have to figure out in esphome to do?
and here is my code in esphome
esphome:
name: bluetooth-server-2
friendly_name: "Bluetooth Server #3 (House)"
- platform: atc_mithermometer
mac_address: "A4:C1:38:15:ED:F9"
temperature:
name: "Front Door Temperature (Xiaomi)"
id: test3
# Reset Counter to 0 When There Is An Update From Device
on_value:
then:
lambda: |-
id(counter3) = 0;
humidity:
name: "Front Door Humidity (Xiaomi)"
id: test3b
battery_level:
name: "Front Door Battery-Level (Xiaomi)"
id: test3c
battery_voltage:
name: "Front Door Battery-Voltage (Xiaomi)"
id: test3d
so id like the name to show up not espname + name and name doesnt show up in the entity ids properties the setting for name is blank
is there a way when you do the esphome… and the friendly name for the esp device it doesnt slap the esp friendly name in front of the name.