-
Notifications
You must be signed in to change notification settings - Fork 3
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
Manual on does not respect manual watering time set #45
Comments
So it seems that the seconds_left value is the unix epoch when the watering will end, the label is a bit misleading. If I convert the epoch back to date from the first script it shows the 10 minutes as end time. However in the Menlor app I still see 5+ hours. Not sure what is going wrong there |
Is the machine you're running the script on and the device running the Melnor app set to the same timezone? The device clock is a simple monotonic timer, and the app converts the value back to a localized date using some complex logic. I've reverse engineered the logic as best I can, but I wouldn't be surprised if there are bugs. The |
Hi,
I am trying to turn on a zone manually to run it for the set manual watering time. I am able to push the manual watering time (10 minutes), but when I turn the zone on the second left value is 5+ hours.
This is the code I am using
And here is the result:
Not sure what I am doing wrong.
I wrote another script to test how the seconds_left field value changes if I start the timer from the melnor app. It seems that the value is "random" and does not change during the time of the timer.
Example this is what I get when the timer is set to 1 minute (reading is done every 1 second with await device.fetch_state()):
The text was updated successfully, but these errors were encountered: