i’m quite unsure if there is something like a “custom-widget-library” for openhab3. I did not find any.
Therefore i thought maybe we could share our widgets here.
I really enjoy the possiblity to write widgets with the new main ui.
So here we go: I needed a control for my heaters. I have 3 buttons controlling three HVAC-states of my KNX heating control. Additionally the widget presents current temperature, desired temperature and state of valve. Maybe its interesting for anyone? Hints, additions, extensions and co are very welcome.
The only thing i am missing with openhab3 is adding that widget automatically in my docker-environment like items, things and stuff defined in text-files. I miss that for pages too. Isn’t it possible to define that sources in text-files? Is the User-Interface the only way for configuring that? Or am i overseeing something? Maybe i could utilize the REST-API and a corresponding init-script but that somehow sounds like overkill for me
That is great!!! Awesome, I control my home with oh2 and KNX and are moving to oh3 but I have starting problems to configure my own widgets.
This is fantastic…
I have two questions:
Is it possible to add support to change the “Solltemperatur” with an 1 bit object (in oh2 ist is a switch Off decrease the temperature On increase the temprature)?
I can set the HVAC mode and can see the valve status but I cannot see both temperatures. Do you have yany idea where I can start to find my failure?
There will be something. I think the hope is that the new marketplace, when it ever gets built, will also work to publish custom widgets and rules, or even packages that include both. In the mean time, I think this category or Add-ons -> UI are where such examples are posted. Many thanks for posting!
It’s all stored in plain text JSON in userdata/jsondb. You should be mounting userdata anyway.
Yes, for now the UI is the only way to build them (or through the REST API). Or, like I said, the JSONDB is plain text and includes lots of configs too. They should be considered and treated as config too.
of course i mount userdata but i like my config to be seperately version-controlled in my github repository. therefore a solution like text-config for items/things would be nice
As far as i see it correctly the configs in jsondb are stored as one big json-file (one for custom widgets and pages) aren’t they?
I think you need haven’t “fully” configured your item. As far as I know you cannot apply formats on the widget (at least not in the current release), hence you need to rely on the item state description (Add Metadata -> State Description -> Pattern -> %.1f °C ).
Also, on widget I recommend a small change which will display the formatted state (item state description), if defined, or fallback to the item state.
great idea and clear implementation. I am trying my luck from this widget now to call a second widget in which I can then set the temperature of the heater. So I have two widgets that are called one after the other. The whole thing works in principle already. Only: Can the variable (props) from the first widget be passed to the second widget?
Probably everything is quite simple. Only I do not get through here at all.