-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Item states are being reset #61
Comments
Can you try to reboot the system? |
or try to set item_enable.sendCommand(ON) first and after that the schedule times |
I rebootet the system, and updated to OH 3.0.1 in the meantime. I changed the code to:
Unfortunately, still the same behavior:
|
Workaround, but I'm not proud of this:
|
Hi, the problem is as follows:
This could be prevented by using:
Ideally, a combination of both as the API is rate limited very strictly. My quick and dirty workaround: I use timers in ECMAScript 11 to delay each command by 30 seconds from the last: setTimeout(function() { setTimeout(function() { ` |
Since some weeks, I'm facing a strange issue where the item states are being reset instantly. So this code:
Results in the following logs:
If you check
worx_landroid_scheduler_thursday_start_hours
, it is correctly changed from "0" to "12" at2021-06-10 11:53:44.945
but changed back from "12" to "0" at2021-06-10 11:53:47.111
.I'm using OH 3.0.0 and the latest release from the worxlandroid binding. Same code worked perfectly last year.
Any ideas how to further investigate this?
The text was updated successfully, but these errors were encountered: