Open dennisduysak opened 5 months ago
I faced the same 2 days ago in a script opening the watering valves of the gardena smart irrigation control: Error: ReadTimeout → script ends. Any solution would be very appreciated.
domain: switch service: turn_off service_data: {} target: entity_id:
Same for me! Would be nice to get it solved as summer is coming soon :-) If I can support with log-files just let me know! THANKS!
Same issue. Any news?
Same issue for me in version 2024.6.4
Executed: June 27, 2024 at 10:23:30 PM Error: ReadTimeout Result: params: domain: switch service: turn_off service_data: {} target: entity_id:
- switch.irrigation_control_1_plates_bandes_piscine running_script: false
Same issue.
Effected device:
Gardena smart Water Control
Environment:
Home Assistant version: 2024.6.4 Gardena integration version: 1.1.1-rc3 Operating system: Running in Docker container
Same here
It´s a bit hit and miss.
Sometimes the integration works without any problems and sometimes it does not ...
To avoid missed opening/closing of watering valves I created (manual trick until the problem is hopefully solved) a slave script that only open/close valve (and allowed to fail) and a master script that keeps trying to open/close the valve until successful (by re-triggering the slave script). With 5 sec delay between each try. Until now worked with # of attempts between 1 and 3 ! But we still need a proper correction of the Gardena integration.
Could you please share how you set up this workaround using a slave script? I also tried it with a script with continuing on error but it still fails. Has anybody worked with the custom integration retry?
I use a single script for all valves, with a variable like 1,2,3,4 to open the valve 1,2,3,4 and 11,22,33,44 to close valve 1,2,3,4
Code for the slave script that "can" crash (duplicate for the other valves 2,3,4...) :
alias: Centrale Gardena on-off
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ choix == 1 }}"
sequence:
- type: turn_on
device_id: 90eeefd7db817d489a7686dae7357730
entity_id: 30050e150937b6f9a9853c4f43a8097c
domain: switch
- conditions:
- condition: template
value_template: "{{ choix == 11 }}"
sequence:
- type: turn_off
device_id: 90eeefd7db817d489a7686dae7357730
entity_id: 30050e150937b6f9a9853c4f43a8097c
domain: switch
icon: mdi:water
The master script looks like:
alias: Centrale Gardena on-off Master
sequence:
- choose:
- conditions:
- condition: template
value_template: "{{ choixm == 1 }}"
sequence:
- repeat:
sequence:
- service: script.turn_on
target:
entity_id: script.centrale_gardena_on_off
data:
variables:
choix: 1
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- if:
- condition: template
value_template: "{{ repeat.index >= 2 }}"
then:
- service: notify.mobile_app
metadata: {}
data:
message: choixm {{ choixm }} tentative {{ repeat.index }}
until:
- condition: or
conditions:
- condition: device
type: is_on
device_id: 90eeefd7db817d489a7686dae7357730
entity_id: 30050e150937b6f9a9853c4f43a8097c
domain: switch
- condition: template
value_template: "{{ repeat.index == 4 }}"
- conditions:
- condition: template
value_template: "{{ choixm == 11 }}"
sequence:
- repeat:
sequence:
- service: script.turn_on
target:
entity_id: script.centrale_gardena_on_off
data:
variables:
choix: 11
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- if:
- condition: template
value_template: "{{ repeat.index >= 2 }}"
then:
- service: notify.mobile_app
metadata: {}
data:
message: choixm {{ choixm }} tentative {{ repeat.index }}
until:
- condition: or
conditions:
- condition: device
type: is_off
device_id: 90eeefd7db817d489a7686dae7357730
entity_id: 30050e150937b6f9a9853c4f43a8097c
domain: switch
- condition: template
value_template: "{{ repeat.index == 4 }}"
icon: mdi:water
The masterscript is called in the regular watering script instead of opening the valve directly, like to open valve 1:
- service: script.turn_on
target:
entity_id: script.centrale_gardena_on_off_master
data:
variables:
choixm: 1
Maybe not very academic code but it works and this sends a notification if a 2nd, 3rd or 4th attempt was needed. It always went to max a second attempt !
Great, thanks a lot, I'll give it a try!
Maybe some good news guys! I already had a similar script like described by @oliskippy, but my execution rate was a desaster. Today I tried now following steps:
Result: It works smooth. No Loops in my scripts after a few tries.
I hope this helps fro you, too.
Maybe I’m too pessimistic, but I don’t know if it might solve it completely. I started my setup 5 days ago. And there are still these time out errors.
I have the same issue: Command to valve - open - error after a few seconds, so the first valve is opened for 30 minutes (standard in the irrigation control), while the other 5 won't get a single drop of water....
Problem obtains not every time the automation is running....
Already installed version 1.1.0 (this number is NOT shown in the Integration overview though having it uninstalled before in HACS and reinstalled it with restarts. It shows version 1.0.0)
This error occurs since 2023.... please help
Maybe I’m too pessimistic, but I don’t know if it might solve it completely. I started my setup 5 days ago. And there are still these time out errors.
Yes you are right. The fails are less, but not gone.
@Developers team: It would be nice to get a short info if you are plannning to look on this and also other topics or if you decided to stop the development.
Hello everyone !
There is no real team behind the library/integration ;) I try to maintain it ads much as I can, but I have been quite busy in the past few months with my work.
I am currently on holidays abroad and I will try to solve as many issues as possible when I come back to france.
I am sorry for the lag in solving this issues and I ll do my best to update everything to make it work again
Enjoy the summer, Jérémie
Le dim. 11 août 2024, 08:19, Stoffl17 @.***> a écrit :
Maybe I’m too pessimistic, but I don’t know if it might solve it completely. I started my setup 5 days ago. And there are still these time out errors.
Yes you are right. The fails are less, but not gone.
@Developers https://github.com/Developers team: It would be nice to get a short info if you are plannning to look on this and also other topics or if you decided to stop the development.
— Reply to this email directly, view it on GitHub https://github.com/py-smart-gardena/hass-gardena-smart-system/issues/214#issuecomment-2282640397, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAARGI5ACJAWJSZADNZFTJDZQ366PAVCNFSM6AAAAABJNKNLK6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBSGY2DAMZZG4 . You are receiving this because you are subscribed to this thread.Message ID: <py-smart-gardena/hass-gardena-smart-system/issues/214/2282640397@ github.com>
We know of course that you developers do this in your free time and without pay.
So thank you in advance for your help.
If you need any logs or more information people here are willing to help for sure.
Hello everyone ! There is no real team behind the library/integration ;) I try to maintain it ads much as I can, but I have been quite busy in the past few months with my work. I am currently on holidays abroad and I will try to solve as many issues as possible when I come back to france. I am sorry for the lag in solving this issues and I ll do my best to update everything to make it work again Enjoy the summer, Jérémie Le dim. 11 août 2024, 08:19, Stoffl17 @.***>
Dear @grm,
thanks for your positive feedback. I really appreciate. Please don't feel under pressure, I was just curious to know if the maintenance will proceed. If I can support with logs or anything else, just let me know. I'm alos open to do beta-testing, if it is required.
Best regards!
Hello, I actually have the same issue with my lawnmower. Sometimes it seems to work not sure what is going on.
malkie
Unfortunately, httpx.ReadTimeout
errors comes from network error with the gardena API.
There is a retry mechanism that should handle these kind of issues, but it may not. be implemented or there is a hole in the implementation.
Maybe we could try with a loop too retry, but. that seems like a little overkill and rough.
I guess that recreating the application in the gardena API solvee a kind if issue like this.
I'll think about something about it.
Please tell me how do often it happens and if doing nothing also solvees sometimes the issue ?
Thanks for looking into this! In my case it happens 2 out of 3 times. Sometimes the valve does not open, sometimes it does. But as I have an automation trying to orchestrate several valves, the remaining calls are not executed any more.
Following oliskippy's advice I set up scripts and called them in a loop until the valve is open. Nevertheless, in my case this also fails as it seems that HA's continue_on_error
doesn't work properly at the moment or expects a certain error message format to continue. (https://github.com/home-assistant/core/issues/115401)
Hello,I use the HACS Integration "retry" and there are no problems any more - knock on wood...Am 02.09.24, 22:30 schrieb "Jérémie Klein" @.***>:
Unfortunately, httpx.ReadTimeouterrors comes from network error with the gardena API. There is a retry mechanism that should handle these kind of issues, but it may not. be implemented or there is a hole in the implementation. Maybe we could try with a loop too retry, but. that seems like a little overkill and rough. I guess that recreating the application in the gardena API solvee a kind if issue like this. I'll think about something about it. Please tell me how do often it happens and if doing nothing also solvees sometimes the issue ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
I also tried the integration "retry" but, unfortunately, in my case it did not work reliably
Hi all,
are there any updates on this topic? Or any ideas how to avoid these issues?
Thanks
Although the watering season slowly comes to an end, I'm still curious if there are any new ideas to solve this issue?
(I don't use the Gardena Integration, but I came across this while looking into other continue_on_error
issues.)
The problem is that httpx.ReadTimeout
is a generic exception. continue_on_error
only catches/ignores HomeAssistantError
exceptions; Other exceptions will still cause an Automation/Script to fail/stop. Per the integration developer docs, Integrations should catch exceptions related to device communication failures, and raise an exception derived from HomeAssistantError
instead.
Examples of how to fix this (in the Gardena Integration code) can be found in the fix for #73344, or in the Google Generative AI Integration.
(For anyone who may come across similar issues with other integrations, some more info is here.)
I am experiencing a ReadTimeout error with my Gardena integration in Home Assistant. This issue occurs while executing my automation, which is designed to start a new valve every 20 minutes. The error consistently occurs when starting the first valve, causing the entire automation to fail despite continue_on_error: true being set.
Effected device:
Environment:
Additional Information:
Automation looks like: