Base Config explained
The base config is written as yaml. This should make it easy to make your own changes because it is written exactly as you would in your dashboard.
You can find it here.
If you want to change things just override the parts you want to change.
In the end your config and the base config get merged so the strategy has all required configuration options.
Global
Everything under the “global” key is defined so you do not to define it again on your grids. If you want other options just provide your own “global” key in your config.
Global Filter and Sort are described below.
Filter
The base config filters out every entity that has has been hidden or disabled. Additionally entities that have a “hidden” label will get filtered out.
---
exclude:
- type: disabled_by
comparator: match
value: ".*"
- type: hidden_by
comparator: match
value: ".*"
- type: label
config:
label: hidden
value: hidden
Sort
The entities get filtered by multiple “sorts”. That means they get sorted by the first of the sort, if they are the same the second, if they are the same again the third and so on.
They get sorted like this:
- label: sorted by a label matching the regexp = a label called Sort:1, Sort:2, Sort:3, …
- area: the id of the area
- integration: the id of the integration
- entity: the id of the entity
---
- type: label
config:
label: "^sort_\\d+$"
- type: area
- type: integration
- type: entity