Add user group selector. Fix #13

This commit is contained in:
2019-12-10 21:37:53 +01:00
parent 5495c5ba8c
commit ac934da820
3 changed files with 7 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ When the state of `<entity>` is `<state 1>`, `<card 1>` will be displayed, when
If the state of `<entity>` doesn't match any `<state>`, the `<card>` for the `<default>` state will be displayed.
## Options
- `<entity>` **Required** An entity id or `hash`, `user`, `deviceID`
- `<entity>` **Required** An entity id or `hash`, `user`, `group`, `deviceID`
- `<default>` State to use as default fallback
- `<state N>` The state to match
- `<card N>` Lovelace card configuration
@@ -164,6 +164,9 @@ If the `entity` parameter is set to `user`, which card is displayed will depend
## Unknown user
```
### group
`group` can take one of two values - `admin` or `user` depending on whether the currently logged in user is in the `Administrators` group or not.
### deviceID
If the `entity` parameter is set to `deviceID`, which card is displayed will depend on the device-browser combination which is currently displaying the page.