This widget is a thermostat inspired by the standard knob widget. It can display the current sensor temperature with the temperature set point, as well as the current heating state.
Thanks for this widget! Works great for me… Had to play around a little bit to adjust the colours and scale, but worked out great in the end! Thanks for you effort.
Nice Widget!
For my heating, scale would be good between 18 and 24 Celsius, but after editing min and max in ng-knob-thermo.js the design was broken. Is there any documentation?
I had the same problem… You also need to add the min/max and quanity (in scale section) in control-oh.js. Quantity are the number of intervals, e.g. i’ve adjusted my min/max to 18-23, with step of 0.5… giving me a quantity of 11
Thanks, I found these settings and changed the values.
The widget is working, but every time the page is called or refreshed, it shows “14 °” which I found to be
scope.value = scope.value || 14;
in ng-knob-thermo.js
Is that some kind of a default value?
And the orange ring is messed up : )
Thank you @blobule for your quick answer!
I tried the new version and now it is very easy to customize it.
My refresh problem didnt disappear, Im afraid:
The first and second screenshot shows how data is changed when operating your widget.
The third screenshot shows status after refreshing the panel.
Do you have any idea why this happens?
14C is a default value when no update has been sent to the widget.
Solved by getting the widget to pull item values on initialization, and not wait for an update.
Seems to solve the issue. I’ve updated the gitlab repository.
Note that I still get this problem during editing in habpanel. However, it you visit another panel then come back, the widget is always displayed correctly.
If you still get 14C in normal operation (not editing), maybe the setpoint item is not correctly configured for that widget? or its a habpanel / angular issue?
I did some testing now: if the Minimum value is set to 14 or below, everything works. I set Max value to different values and also Step value to 0.5, everything ok.
If Min value is set to 15 and above, the 14C default comes up if page is loaded or refreshed. The widget can be operated then, showing correct values, but reloading results in default value 14.
It also doesnt take values from other widgets, eg another slider with the same item, which it does if set to Min Value 14 or below.
I found another issue about updating the heating status. If the page is loaded or even changed from another page within habpanel, every status is “not heating”. after a refresh or after changing temperature the status is correctly updated. changing the page and then coming back to the heating page results in “not heating” again. I dont think this is an problem with my items, because default sliders work normal.