MTry / homebridge-smart-irrigation

Turn any electrical irrigation valve into a smart-valve.. or run your pumps on a smart schedule based on your climate! This homebridge plugin exposes a multi-zone irrigation sprinkler dummy control system to Apple's HomeKit. Although a dummy, it brings smarts of an evapotranspiration based climate and plant adaptive irrigation controller with the use of OpenWeatherMap API. The plugin can optionally email you, and/or send you push notifications through Pushover or Pushcut, with the watering schedule it has calculated, or when a watering run is completed, along with the next 7-day weather forecast. Added option to expose system controls to Homekit allowing a user to enable/disable irrigation, rechecks, push and email notifications from within the Home App. Associated WaterLevel Characteristic shows the % of watering cycle remaining.
MIT License
78 stars 3 forks source link

Timer Not Working #42

Open thebradbishop opened 1 year ago

thebradbishop commented 1 year ago

When I start the Sprinkler in the Home App, there are no timers counting down. Also I have the default timers set in the homebridge config but when I check the accessory they aren’t set. Trying to set them doesn’t save on the accessory itself.

angyalz commented 1 year ago

@MTry I checked it, it's a real bug. Log:

[8/28/2022, 8:12:52 PM] [homebridge-smart-irrigation] This plugin generated a warning from the characteristic 'Remaining Duration': characteristic was supplied illegal value: number 27793 exceeded maximum of 18000. See https://homebridge.io/w/JtMGR for more info.

MTry commented 1 year ago

Thanks for pointing this out.. if I recall I had taken care of this but seems something is missing - will review again.

MTry commented 1 year ago

@MTry I checked it, it's a real bug. Log:

�[37m[8/28/2022, 8:12:52 PM] �[39m�[36m[homebridge-smart-irrigation]�[39m This plugin generated a warning from the characteristic 'Remaining Duration': characteristic was supplied illegal value: number 27793 exceeded maximum of 18000. See https://homebridge.io/w/JtMGR for more info.

I was checking this and recalled that I had limited this to 18000 seconds which is 5 hours - much above the default 30 minutes of HomeKit! The number 27793 corresponds to almost 8 hours which seems rather high to leave the valve on!

angyalz commented 1 year ago

@MTry I checked it, it's a real bug. Log:

�[37m[8/28/2022, 8:12:52 PM] �[39m�[36m[homebridge-smart-irrigation]�[39m This plugin generated a warning from the characteristic 'Remaining Duration': characteristic was supplied illegal value: number 27793 exceeded maximum of 18000. See https://homebridge.io/w/JtMGR for more info.

I was checking this and recalled that I had limited this to 18000 seconds which is 5 hours - much above the default 30 minutes of HomeKit! The number 27793 corresponds to almost 8 hours which seems rather high to leave the valve on!

I was not set any time, just turned on the switch and came this log message. When I have some time I will see where this value comes from.

angyalz commented 1 year ago

@MTry I checked it, it's a real bug. Log:

�[37m[8/28/2022, 8:12:52 PM] �[39m�[36m[homebridge-smart-irrigation]�[39m This plugin generated a warning from the characteristic 'Remaining Duration': characteristic was supplied illegal value: number 27793 exceeded maximum of 18000. See https://homebridge.io/w/JtMGR for more info.

I was checking this and recalled that I had limited this to 18000 seconds which is 5 hours - much above the default 30 minutes of HomeKit! The number 27793 corresponds to almost 8 hours which seems rather high to leave the valve on!

So, I started zone manually. I think the expected behavior is that the counter starts counting down from the value set in Home app. I think that 27793 = sunrise - now() // now()=8:12:52PM; see log timestamp