Friday weekly update
It’s this time of the week again.
Start page revamp
Some advertisement on the left, announcements and events on the right.
Installed control interfaces appear very central now.
“legacy” and “developer” interfaces will be rendered as small boxes only.
Also the tutorial texts got extended & improved.
Dark theme received some love
Especially the charts are a tricky part. But I think I caught all static “white” parts and the page can now fully adapt and switch between bright and dark mode.
My initial idea for “scheduled tasks” were to expose every internally scheduled task of our openHAB Core Scheduler. That way I could display also Scheduled Tasks (Timers) that are created from within Scripts.
I changed my mind though. Instead I will use two approaches to satisfy all timer needs.
- Items will have an “expire” namespace as metadata. That will pretty much work like the current OH1 expire binding. You can assign as many “expire” timers on an Item as you like. An expired timer can either change the items state or execute a rule. Every of those timers must have a unique ID and can have tags. That way you can influence (read: stop/restart) expire timers with a given ID or given tags.
The usecase I have in mind: “Turn off a light 3 minutes after it has been turned on. If a motion sensor registered a movement in the meantime, reset the timer”
- Use rules for timed tasks. The calender view above will find all rules with the tag “alarm”. You can create a new timed task by clicking on any date/time. A dialog popup will ask you if you are going to create a recurring or absolute timed task and you can select from a list of pre-defined actions.
Internally a rule will be created.
That’s it. No fancy changes to the core.
I have no idea how user roles are implemented at the moment. But personally I would like to set which REST endpoints a user can access (via REGEX expression) and which Items can be accessed.
In the above example “Grandma” for example can only access “Items” (so no configuration, no inbox, no rules etc) and only Items with the tag “kitchen”.
That should be sufficient for user roles or did I forget a usecase?
Small changes and fixes
- Configurations are now rendered correctly.
- Logview is live. If a websocket connection can be found, it will display received data. Otherwise example data as before.
- The graphs on maintenance are now live. If a websocket connection can be found, those will display received data. Otherwise example data as before.
And that’s all I got time for this week. On my agenda are still semantic tagging and rules.
As usual, if you want to support me with this OH vision, please consider donating or helping out.