Custom wildcards for multiple similar sensors?

Hi everybody,

I have a bunch of sensors like this

  • sensor.arbeitszimmer_vibration_action (name: Arbeitszimmer/Vibration_action)
  • sensor.wohnzimmer_vibration_action (name: Wohnzimmer/Vibration_action)
  • sensor.garage_vibration_action (name: Garage/Vibration_action)

etc.

Is there a way to customize these so that sensor.*_vibration_action will turn into <room> Vibration? Somehow, the * part needs to be replaced with whatever comes right after sensor..

I already use customize_glob for some sensors, but those are not room specific; for example, all sensor.*_watt sensors have friendly_name: Power, but in this case, I’d like to include the individual room name.

Thank you for your ideas :slight_smile:

is this to show up in lovelace? If so you can provide a friendly name in lovelace.
OR you can use the customize to set a friendly name for each sensor

Yes, it is for lovelace. I was hoping that I didn’t have to manually change the display name for each sensor… and I usually use customize for this, but what I am trying to do is automatically have each entity customize their name based upon this pattern described above. But I guess I am stuck with manually doing this, then?

How about auto entities and filter? https://github.com/thomasloven/lovelace-auto-entities

filter:
  include:
    - entity_id: '*_vibration_action'

Thank you, @Petrica. I already use the auto-entities card, but the result is not what I am looking for.

On the left, there are these vibration_action sensors; all of them are there, but their friendly_name is not set. On the right, I have manually set the friendly_name, and this is how I want to display the items on the left as well - I was just hoping to be able to do this via customize somehow so that the entities would “pick up” on what their friendly name was supposed to be.