11 hours ago
(Yesterday, 15:30)Daniel Wrote: You can do it like this, just create more ifs and put corect plan IDs
Code:localbus.listen('object', '0/0/1', (value) => {
if (value==0) {
Visu.showPlan(7);
}
else if (value==1) {
Visu.showPlan(17);
}
else {
Visu.showPlan(13);
}
});
That's perfect, but I would like to add a confirmation: showPlan not just when the object has a certain value, but when another object (boolean) is pressed.