Hello all, I’m trying to understand filtering of databases with the entity_glob wildcards. Every example I could find shows the wildcard ( * ) with and underscore ( _ ). My main question is if placing multiple wildcards works. Here’s the best of my understanding:
-
sensor.temp*
- it will filter sensors that begin with “temp” no matter what follows even if nothing follows -
sensor.*temp
- it will filter sensors that end with “temp” no matter what precedes it even if nothing precedes it -
sensor.*temp*
- it will filter sensors that have the word “temp” anywhere in the entity_id even if there is nothing else there, i.e. it will filter the entity “sensor.temp”
I’m trying to make sure that my filtering is working as intended but I started InfluxDB with all of the entities initially turned on so I can’t tell if it’s appropriately filtering. Does this filter below make sense? I recognize that there will be some redundancy there but as I understand it shouldn’t cause any issues, right?
Thanks for any advice.
include:
domains:
- person
- alarm_control_panel
entity_globs:
- sensor.weather_*
- sensor.powerwall_*
- sensor.washing_machine_energy_*
- sensor.drying_machine_energy_*
- sensor.solar_*
- sensor.power_production_*
- sensor.outdoor_motion_sensor_*
- sensor.office_motion_sensor_*
- sensor.*kw*
- sensor.*energy*
- sensor.*power*
- sensor.*current*
- sensor.*factor*
- sensor.*solar*
- sensor.*sun*
- sensor.*moon*
- sensor.*cloud*
- sensor.*uv*
- sensor.*cpu*
- sensor.*processor*
- sensor.*memory*
- sensor.*load*
- sensor.*space*
- sensor.*apf*
- sensor.*temp*
- sensor.*humidity*
- sensor.*pressure*
- sensor.*co2*
- sensor.*presence*
- sensor.*particulate*
- sensor.*house*
- binary_sensor.powerwall_*
- binary_sensor.*motion*
- binary_sensor.*contact*
- binary_sensor.*occupancy*
entities:
- sensor.house_empty
- sensor.estimated_illuminance
- sensor.bedroom_particulate_sensor
- sensor.senseair_co2_value_2
- sensor.particulate_matter_2_5um_concentration_2
- sensor.processor_use_percent