Yesterday, 08:48
Hello,
I have a problem with a thermostat. I want the circular slider to change color depending on the current mode (heating/cooling), but right now I have to send the status every time.
Is there a solution for this?
I have a problem with a thermostat. I want the circular slider to change color depending on the current mode (heating/cooling), but right now I have to send the status every time.
Is there a solution for this?
Code:
localbus.listen('object', '1/4/8', (value) => {
const wrap = document.querySelector('.circularslider-fg')
if (!wrap) return
wrap.style.setProperty(
'--visu-widget-active-color',
value ? 'red' : 'blue'
)
})
