Glob syntax

Glob is used to wildcard multiple entities.

Glob is a matching pattern, used in most OSes. In go-home glob matching is powered by globwas/glob library.

Most systems support wildcarding entities using glob patters.

WARN Don't overdo wildard usage as it may result in unexpected behavior.

Syntax

Wildcard Description
* Matches any number of any characters including none
? Matches any single character
[abc] Matches one character given in the bracket
[a-z] Matches one character from the range given in the bracket
[!abc] Matches one character that is not given in the bracket
[!a-z] Matches one character that is not from the range given in the bracket

Examples

  • hue.light.* will select all light entities exposed by HUE hub. If both groups and lights are exposed, all of them will be selected.
  • hue.light.[!g]* will select only lights, as groups will be filtered by [!g] exclusion.