21.04.2026, 12:55
Then you need to use Custom JS. Change widget ID (46), listening address (0/0/1) and colors as needed.
Note that you need to switch to the User view for Custom JS to work.
Note that you need to switch to the User view for Custom JS to work.
Code:
Visu.on('widget-ready', 46, ({ widget }) => {
const el = widget.getCompactModeEl()
widget.listen('0/0/1', (value) => {
el.style.color = value ? '#FF9900' : '#0099FF'
})
})