I would like to use wildcards in influxdb platform’s whitelist, like this:
influxdb:
whitelist:
- device_tracker.*
I cannot list each individual device_tracker item in the whitelist. This info comes from my access point (unifi), and I want to keep track of each device that connects, ESPECIALLY the ones that I don’t know.
As the code stands, it can’t be done. I modified the influxdb.py file myself to add a regular expression wildcard for both white and black lists - it’s not terribly complex, but more than what is easily put in a forum post.
If I have time I will see if I can put together a pull request for a future version.
I want to put a pull request together, just haven’t ever done that before. You can replace your influxdb.py and add the two constants to const.py in the meantime. Changed files listed here: changes
To use it, you can use explicit white and black list items, or regex wildcards. For the precedence, see the code. Example usage below.
A bit of a coincidence, I just revisited it recently. There has been a bit of change to how the core code is structured, I will summarize it and see about either a PR or passing the code your way for it. Should have that shortly.