I agree, wildcard could be very useful for zwave component too
for example my Fibaro fgsd-002 is actually shown has many sensors, binary switches… it would be more user friendly to have a card with all informations of the Fibaro component
@andrey
That look really good. I like the use of regex as this makes if significantly more flexible.
I look forward to testing it out. I don’t have much time til later next week.
regexp is more powerful but reinterprets . which is a legal entity character.
glob is more readable, bring in just []!?* which are not legal entity characters.
I did not know that it was called glob syntax until just then.
For all my use cases glob syntax would do the job. But I am sure someone will come up with some unique case for it.
I did notice te same issue with the ‘.’ In the regex example. I was wondering if some way to define the use of regex (or glob) using something like the template brackets might differentiate a named entity_id from the paterna based ones.
Maybe something like this:
light.sample
{{regex_entity_id : light.s.*}}
{{glob_entiry_id : light.s*}}
It could be a bit simpler and use glob as part of the normal named entity_ids and add regex as a special template. This could even be added later.
. is a regex operator, but \. is a literal period if you need to match it explicitly.
I’m partial to regex myself, as long as this isn’t constantly re-evaluated - regexes can be expensive. I’m thinking that globs would probably suit 99% of the use cases people need.
Emby/Plex clients would really benefit from globbing or something along those lines. I’d like to have a tab that has all my “Emby” clients. Since these are very fluid, I can’t really define them ahead of time.
Did this ever make it any further? I’ve been setting Hass.io up over the last few days and this would be a really useful way of adding all current and future Emby clients to a single media tab.
I don’t think so. I played with creating something in HA but the api for manipulating a group won’t work. Without changes in the core of group handling, I don’t think it can be done, and since there doesn’t seem to be interest amongst the dev team, I’m not sure they’d go for it.
I have created a pull request, that if implemented, will allow me to create and provide a custom component that will be able to modify group membership based in globing.
When/if they merge it, I’ll post the custom component.