home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
69.03k stars 28.27k forks source link

Rain bird devices go unavailable/available and calendar is empty #116769

Open Teddydm71 opened 2 weeks ago

Teddydm71 commented 2 weeks ago

The problem

Hi, I installed the rainbird integration for my rainbird RC2 controller last week. Integration is often unavailable. I attach the log in debug mode.

What version of Home Assistant Core has the issue?

core-2024.5.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

rainbird

Link to integration documentation on our website

https://www.home-assistant.io/integrations/rainbird

Diagnostics information

home-assistant_rainbird_2024-05-04T10-17-00.968Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @konikvranik, @allenporter, mind taking a look at this issue as it has been labeled with an integration (rainbird) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `rainbird` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign rainbird` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


rainbird documentation rainbird source (message by IssueLinks)

Teddydm71 commented 1 week ago

if it can help you, i attach the graph of availability of controller, sprinklers and the device_tracker of controller from my asus router.

Immagine 2024-05-04 215113

allenporter commented 1 week ago

Can you enable debug logging? What model device?

We've seen this before because the controller actually is failing requests. It can only be used with one pending request at a time, but also sometimes it just responds with failures as if its busy when not.

Teddydm71 commented 1 week ago

Hi Allen, thank you for answer. the controller model is Rainbird RC2 with integrated wifi, and I use the rainbird android app for irrigation control. At the moment i have configured 2 daily (start at 8 AM) irrigation program directly on the controller. I have attached the debug log in the Diagnostics information section. It's good for you or do you need another type of debug log? Before writing I also read the previous issues related to Rainbird integration. I haven't programmed anything on Home Assistant yet. Thank you. Edoardo.

allenporter commented 1 week ago

You're right, its already the debug log. I was looking for some errors and didn't see them so thought it wasn't enabled.

2024-05-04 12:16:29.464 DEBUG (MainThread) [homeassistant.components.rainbird.coordinator] Finished fetching 192.168.1.161 data in 20.002 seconds (success: False)

The coordinator is failing to complete within 20 seconds so it is timing out. One single request is taking over 15 seconds to get the list of available stations. So, this seems accurate to me: either the device or the network are in fact being flaky.

Teddydm71 commented 1 week ago

Hi Allen, the wifi signal is excellent, but actually the LAN connection with the RAIN bird application is also very slow. However, via Cloud/Internet it is normal. I performed a factory reset of the controller and configured only the WiFi network. Now the rainbird application connects quickly. I'll try to monitor for a few days. If everything works I try to program the irrigation directly through Home Assistant. Thanks for now. I'll update you on developments.

Teddydm71 commented 6 days ago

Hi Allen, unfortunately after a few hours the rainbird integration started to be Available / Not Available again. After a few hours after reset to factory settings, the application also started to be very slow again. Yesterday I uninstalled the integration on Home Assistant and, immediately, the application loaded quickly both locally and remotely without any controller reset. Then I installed the integration again, deleted all programs on the controller and disable the application rainbird. The situation tonight is as follows: LogRainbird How often do you try to connect to the integration devices? Would it be possible to customize the frequency of the check? Thank you.

allenporter commented 5 days ago

You can see https://www.home-assistant.io/common-tasks/general/#defining-a-custom-polling-interval for defining your own polling schedule.

Teddydm71 commented 5 days ago

Perfect!! I didn't know this option. I try to update every 12 hours. I'll inform you about how this solution works. I'm afraid that the Rainbird RC2 Controller firmware handles some events differently and if it receives too many calls it crashes Thank you so much.

allenporter commented 5 days ago

I don't think this is specific to RC2. Lots of the rainbird devices are fairly sensitive -- they can only handle one request at a time. (e.g. using the rainbird app will mean home assistant can't poll it)