26.04.2021, 13:02
Change plan IDs, group addresses and values as needed.
Code:
$(function(){
if (typeof grp == 'undefined') {
return;
}
$('body').on('showplan', function(event, id) {
if (id == 2) {
grp.write('0/0/1', 50);
}
else if (id == 3) {
grp.write('0/0/1', 90);
}
}).trigger('showplan', [ currentPlanId ]);
});