Closed ScumbagSteve closed 4 months ago
Thanks, could reproduce the issue:
createState('test_scheduleById', '00:00', async () => {
scheduleById('test_scheduleById', () => {
// ...
});
await setStateAsync('test_scheduleById', '10:11', true);
await setStateAsync('test_scheduleById', '10:12', true);
await setStateAsync('test_scheduleById', '10:13', true);
await setStateAsync('test_scheduleById', '10:14', true);
console.error(__engine.__schedules);
console.error(JSON.stringify(getSchedules(false)));
});
returns 5 instead of 1. Just counting is wrong, schedule works like expected
I'm sure that
Script type
Blockly Schedule warning
The problem
When using the "Zeitplan aus Zeit-Zustand" trigger, I get a schedule warning in the log:
Test-Skript: More than 100 schedules registered. Check your script!
I was able to recreate this with a very basic script:
It seems like each trigger is treated as a "new" one, and therefore sooner or later a warning is issued. This could be "works as designed", however I would assume that this warning does not consider "overwritten" triggers. Is there maybe an issue with releasing scheduled triggers in the background, and it's therefore taken into account?
Attached to blockly code to import:
iobroker.current.log (in debug mode!)
No response
Version of nodejs
v18.19.1
Version of ioBroker js-controller
5.0.19
Version of adapter
8.1.1