core: Rain Bird functions, but blows up the log with error after error after error
The problem
The Rain Bird integration seems to work correctly, but writes hundreds of errors a day to the log.
Environment
- Home Assistant Core release with the issue: 0.107.7
- Last working Home Assistant Core release (if known): Not sure if ever?
- Operating environment (Home Assistant/Supervised/Docker/venv): Docker on Synology
- Integration causing this issue: Rainbird
- Link to integration documentation on our website: https://www.home-assistant.io/integrations/rainbird/
Problem-relevant configuration.yaml
rainbird:
- host: XXX.XXX.X.XXX
password: XXXXXXXXX
trigger_time: 20
zones:
1:
friendly_name: Driveway Right Sprinklers
trigger_time:
minutes: 20
2:
friendly_name: Driveway Left Sprinklers
trigger_time:
minutes: 20
3:
friendly_name: Front Yard Sprinklers
trigger_time:
minutes: 20
4:
friendly_name: Side Yard Sprinklers
trigger_time:
minutes: 20
5:
friendly_name: Back Yard Sprinklers
trigger_time:
minutes: 20
6:
friendly_name: Unused Sprinkler Zone
trigger_time:
minutes: 1
Traceback/Error logs
2020-04-02 18:47:09 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.unused_sprinkler_zone is taking over 10 seconds
2020-04-02 18:47:30 WARNING (SyncWorker_1) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 18:47:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.back_yard_sprinklers is taking over 10 seconds
2020-04-02 18:52:08 WARNING (SyncWorker_3) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 18:52:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.front_yard_sprinklers is taking over 10 seconds
2020-04-02 18:59:51 WARNING (SyncWorker_18) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:00:01 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:00:01 WARNING (SyncWorker_18) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:01:24 WARNING (SyncWorker_7) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:01:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:02:58 WARNING (SyncWorker_3) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:03:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.front_yard_sprinklers is taking over 10 seconds
2020-04-02 19:09:40 WARNING (SyncWorker_19) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:09:50 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:10:43 WARNING (SyncWorker_0) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:10:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.driveway_left_sprinklers is taking over 10 seconds
2020-04-02 19:12:46 WARNING (SyncWorker_19) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:12:56 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:13:48 WARNING (SyncWorker_8) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:13:58 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:16:55 WARNING (SyncWorker_18) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:17:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.back_yard_sprinklers is taking over 10 seconds
2020-04-02 19:20:00 WARNING (SyncWorker_17) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:20:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.front_yard_sprinklers is taking over 10 seconds
2020-04-02 19:24:08 WARNING (SyncWorker_1) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:24:18 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:27:14 WARNING (SyncWorker_16) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:27:24 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.driveway_right_sprinklers is taking over 10 seconds
2020-04-02 19:32:25 WARNING (SyncWorker_3) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:32:34 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.back_yard_sprinklers is taking over 10 seconds
2020-04-02 19:48:56 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:49:06 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.unused_sprinkler_zone is taking over 10 seconds
2020-04-02 19:56:38 WARNING (SyncWorker_0) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:56:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 19:58:42 WARNING (SyncWorker_2) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 19:58:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 20:10:28 WARNING (MainThread) [homeassistant.core] Unable to remove unknown listener <function async_track_point_in_utc_time.<locals>.point_in_time_listener at 0x7fbb920ddcb0>
2020-04-02 20:14:10 WARNING (SyncWorker_6) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 20:14:20 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 20:17:47 WARNING (SyncWorker_19) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 20:17:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 20:18:18 WARNING (SyncWorker_1) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 20:18:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:08:22 WARNING (SyncWorker_18) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:08:32 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:16:38 WARNING (SyncWorker_13) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:16:48 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:20:15 WARNING (SyncWorker_9) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:20:25 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:21:17 WARNING (MainThread) [homeassistant.helpers.entity] Update of camera.front_door is taking over 10 seconds
2020-04-02 21:26:26 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:26:36 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:29:32 WARNING (SyncWorker_0) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:29:42 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:30:03 WARNING (SyncWorker_13) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:30:13 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:30:34 WARNING (SyncWorker_6) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:30:44 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:37:16 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:37:26 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:37:26 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:42:25 WARNING (SyncWorker_19) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:42:35 WARNING (MainThread) [homeassistant.helpers.entity] Update of switch.side_yard_sprinklers is taking over 10 seconds
2020-04-02 21:42:35 WARNING (SyncWorker_19) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:50:10 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:50:20 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
2020-04-02 21:50:20 WARNING (SyncWorker_5) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:53:47 WARNING (SyncWorker_10) [pyrainbird] Response: 503, Service Unavailable
2020-04-02 21:53:57 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.raindelay is taking over 10 seconds
Additional information
Not sure if this is helpful… I do not have a physical rain delay sensor, but the logs do mention one. Also, I have one unused zone named switch.unused_sprinkler_zone.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 33 (7 by maintainers)
@sweenr Yup, that’ll be the only thing, we will have to wait and see if the developer updates the component to fix this. If they do, we would have to delete the custom component to load the developers version, if the error persists we would need to follow these steps again and edit
custom_components/rainbird/__init__.py
again.For future reference, I’m on Hassio 0.110.2, the instructions were as follows (thanks @sweenr , copied your text where applicable):
Access Hassio Host --> https://developers.home-assistant.io/docs/operating-system/debugging/#ssh-access-to-the-host then type
login
Access the container bash --> https://developers.home-assistant.io/docs/operating-system/debugging/#accessing-the-container-bash
Copy your
rainbird
directory to custom_components (create the custom_components directory next to yourconfiguration.yaml
if you don’t already have one). For me, the command was:cp -r /usr/src/homeassistant/components/rainbird /config/custom_components/
Comment out the lines in your
custom_components/rainbird/__init__.py
as above, currently lines 31 & 32.Restart HA and warnings should be gone!
Im going to try modifying https://github.com/konikvranik/pyrainbird to set logging to error instead of debug and copying it to my hassio instance, although I have no clue if that will work. Will let you know. I have seen the code author has been active in other issues, hope he responds soon. On Apr 23, 2020, 11:05 AM -0500, mikesalz notifications@github.com, wrote: