Comments (11)
Hi @asafhas,
Can you provide me the config you have; How many programs and the settings, each zone's settings.
Just to clarify the issue:
The individual zones are turning on/off as expected but the program is still appearing as running once all zones have completed their cycles?
from irrigation-v5.
Hi,
Can you also let me know the irrigation switches/device you are using, this may have an impact, I have local control of my switching, but if you have a cloud based solution or one that has high latency this may change how the system behaves.
from irrigation-v5.
I think if this is a latency issue you can move the 'await asyncio.sleep(1)' to immediately before the 'self.check_switch_state()'. It will help giving an additional second for the status to update without impacting the refresh cycle.
I will update my repository, but if you do make the change let me know if it resolves the issue.
from irrigation-v5.
I have made the change, V5.2.3 has been published as a Beta. Please let me know if this resolves the issue and I will make it the main release.
from irrigation-v5.
I managed to create a dummy high latency switch, the behaviour of the program was very odd. I will have a new version, 5.2.4, that handles the high latency issue on turn on and turn off more elegantly, and provide warning in the log if it is encountered.
I am handling latency of up to 10 seconds that should be ample for almost all situations, touch wood.
switch:
- platform: template
switches:
dummy_1:
friendly_name: Zone 1
value_template: "{{ is_state('input_boolean.dummy_switch_1', 'on') }}"
turn_on:
- delay: '00:00:06'
- service: input_boolean.turn_on
entity_id: input_boolean.dummy_switch_1
turn_off:
- delay: '00:00:06'
- service: input_boolean.turn_off
entity_id: input_boolean.dummy_switch_1
input_boolean:
dummy_switch_1:
from irrigation-v5.
Thank you for the quick reply.
Regarding your questions above:
- I have 2 programs, 1 zone in each. The issue above happened in both programs.
- The relays I use are connected to ESP8285 chip, running Tasmota, on a local network.
I've copied the relevant changes from version 5.2.4 and will let it run for a few days. I'll update here.
When trying the new code, I saw one time the two prints: "Switch has significant delay skipping" and "Switch has excesive latency".
When it happened I've noticed that the program stopped (only had "RUN" button in the UI), but the zone kept running (had "STOP" button in the UI). The water switch itself was ON.
I couldn't reproduce it again, yet.
from irrigation-v5.
5.2.4 sends a stop to the switch if the latency is to long, but if this works is dependant on your device, I can only use the emulated model above. the program can't wait indefinitely either as this has the potential of hanging the program.
I am not sure what other failsafe I can put in place. You may need to create an automation, that turns off the switch if the program is not running
I would investigate if you are having connectivity issues with your device or maybe your MQTT config as a 10 second delay is excessive. Have you considered using ESPHOME? I believe it will work on the 8285
from irrigation-v5.
Hi, I have released v5.2.5 that rolls back the root cause of the problem. If the problem is solved for you can you close the issue.
Cheers
Pete
from irrigation-v5.
I've been running the code with the previous fix for 5 days, and so far so good.
I see that the new fix in version 5.2.5 is different. I'll upgrade to that version and let it run for a few days.
from irrigation-v5.
I've been running with version 5.2.5 for the passed week, and all is working good.
Thank you for the quick support.
from irrigation-v5.
I'm not sure if its related to this but if I manually run a zone the delay to on state and countdown is huge around 17sec. I thought it has something to do with my old switch but now I have new one and still have this issue.
When I run the full program manually, the switch starts instantly.
from irrigation-v5.
Related Issues (20)
- Master pump go off between zone HOT 2
- Timeout on getting the data from rainbird controller / possible to add a configurable delay between send/query commands? HOT 5
- Next runtime zeigt "gestern" HOT 10
- [Features] - Add Interlock Option to schedule programs HOT 2
- Pump HOT 29
- Timer Counts Down Quickly HOT 9
- Event program_turned_off is never call HOT 29
- Config desactived HOT 7
- No Lovelace card HOT 5
- Remaning time always stays the same HOT 6
- calls `async_track_state_change` instead of `async_track_state_change_event` which is deprecated and will be removed in Home Assistant 2025.5 HOT 1
- Some bugs HOT 10
- Program not Triggering on Schedule HOT 22
- feature request : support valve entity HOT 9
- Gardena 1197-20 Water distributor automatic HOT 2
- custom card not visible in 2024.7.2 HOT 1
- Support for watering multiple times a day HOT 2
- Latency with modbus relays HOT 5
- Unable to add custom card HOT 1
- Cannot delete old programs HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irrigation-v5.