Hi everybody,I have 2 questions and I really hope someone can help me:
- I created this knob widget by using template widget:
<div ng-init="knob = {
value: itemValue(SetTemp_FF_Office ),
options: {
scale: {
enabled: true,
type: 'dots',
color: 'gray',
width: 2,
spaceWidth: 10,
quantity: 10,
height: 8
},
skin: {
type: 'tron',
width: 5,
color: 'orange',
spaceWidth: 5
},
trackWidth: 30,
barWidth: 30,
step: 1,
startAngle: 20,
endAngle: 340,
trackColor: 'rgba(52,152,219,.1)',
barColor: 'rgba(52,152,219,.5)',
textColor: 'white',
subText: {
enabled: true,
text: 'Volume',
color: 'gray',
font: 'auto'
},
}
};">
</div>
<div>
<ui-knob value="knob.value" options="knob.options" ng-click="sendCmd(SetTemp_FF_Office , knob.value)"/>
</div>
This knob widget can send value properly whenever I clicked on it (on Habpanel side). But when I turn into classic UI and change the value, the HABpanel can not update the new value, it only shows up the old one. For example:
my .item:
Number SetTemp_GF_Living "Livingroom Setpoint Temp. [%.1f Ă°C]"
my .sitemap:
Setpoint item=SetTemp_GF_Living minValue=21 maxValue=35 step=1
On habpanel side, I click to change the range of value and the corresponding item on classic UI updates its value immediately (exp: 33 celcius)
But when I increase/decrease the value from classic UI:
Only the value on classic UI changes, the value on HABpanel still remains (30 celcius - this is the previous value I clicked on HABpanel UI)
How can I fix that? Please show me how
- Beside above problem, whenever I refresh habpanel UI, all the knob widgetsâ values become NULL or N/A. Itâs very frustrating, please show me how to fix it?