Hi,
I’m with openHAB 5.1.3 on OpenBSD amd64.
as far as I researched, it’s not possible to manage custom roles for users in karaf console, as it’s still an open enhancement request: Add/remove user roles via karaf console · Issue #2453 · openhab/openhab-core · GitHub
but I found I can edit:
vi /var/db/openhab/jsondb/users.json
and just add multiple roles to the array alike:
`“roles”: [“administrator”,“parent”],`
And then in karaf console they are shown:
openhab> openhab:users list
sebastia (administrator, parent)
test1 (child, user)
test2 (parent, user)
I found that at least user or administrator role are necessary, but then can add more roles to each user. So I have to combine my custom “parent” and “child” with “user” role.
So far so good. In the Pages, I can use:
visibleTo:
- role:parent
to hide elements from children. that’s nice.
The default Overview page renders my locations with equipment semantically, and as far as I figured up to now, I can only hide the complete overview page.
I haven’t found a way to for example hide some of the equipments, or make them read-only.
Can I do this in the overview page, or at the item or in the model?
When I create a custom page, and I have controls, which for parents I want to have usable, but for children, I’d like to have them read-only, because they may show a current state.
Is that something I could achieve?
cheers,
Sebastian