core
core copied to clipboard
rainbird.coordinator: Unexpected error fetching Schedule data: invalid literal for int() with base 10
The problem
Feedback
I've provided the ha log output with debugging enabled for the RainBird integration. This is a duplicate of the now closed
issue #29766 I raised in the incorrect place - accidenctly 😆
Please let me know if you need anything else. Thanks!
URL
https://www.home-assistant.io/integrations/rainbird/
Version
Core: 2023.11.0 Frontend: 20231030.1
Additional information
What version of Home Assistant Core has the issue?
core-2023.11.0
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
RainBird
Link to integration documentation on our website
https://www.home-assistant.io/integrations/rainbird/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Main issue seems to be:
`ERROR (MainThread) [homeassistant.components.rainbird.coordinator] Unexpected error fetching 192.168.1.55 Schedule data: invalid literal for int() with base 10: ''`
Additional information
No response
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)
I am getting the same error as well but it seems to only be an issue when raindelay days is 10 or greater.
Thanks, i was able to reproduce given that problem description.
Unexpected error fetching 10.10.38.50 Schedule data: invalid literal for int() with base 10: '0E'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 313, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/rainbird/coordinator.py", line 150, in _async_update_data
return await self._controller.get_schedule()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrainbird/async_client.py", line 428, in get_schedule
result = await self._process_command(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrainbird/async_client.py", line 489, in _process_command
decoded = rainbird.decode(decrypted_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrainbird/rainbird.py", line 187, in decode
return {TYPE: cmd_template[TYPE], **decoder(data, cmd_template)}
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyrainbird/rainbird.py", line 45, in decode_schedule
"rainDelay": int(rest[4:6]),
^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '0E'