Open Kolia56 opened 1 week ago
Sequence jour
is causing this. It's a sequence with a repeat and one zone and a delay. The fix is in the repository if you want to update.
Cheers
I installed the dev version. There is a major issue: all actions (formerly services) are gone. I reverted back to 2024.10.0 and actions are back. I did the test twice and I confirm the regression. In the meantime I upgraded HA to 2024.11.2 and the initial issue has disappeared. I'm quite puzzled.
What version of HA were you on before the upgrade to 2024.11.2?
Not too sure, not very far away, at least 2024.9 I guess
Odd, that's the release I am currently testing against.
It's back, currently running HA 2024.11.2 and irrigation unlimited 2024.10.0. Shall I upgrade to 2024.11.0? I will have no irrigation run for nearly 6 months, not very far away from winter, and today it's like winter already.
This error originated from a custom integration.
Logger: homeassistant
Source: custom_components/irrigation_unlimited/binary_sensor.py:334
integration: Irrigation Unlimited (documentation, issues)
First occurred: November 18, 2024 at 07:50:00 (32 occurrences)
Last logged: 07:50:30
Error doing job: Exception in callback Entity._async_write_ha_state_from_call_soon_threadsafe() (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in _async_write_ha_state_from_call_soon_threadsafe
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
self.__async_calculate_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1073, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/irrigation_unlimited/binary_sensor.py", line 334, in extra_state_attributes
f"{current.current_zone.sequence_repeat + 1}/{self._sequence.repeat}"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'sequence_repeat'
Please update irrigation unlimited from the repository. I have it running here on HA 2024.11.2.
Hint: A way to shut down the irrigation and leave the system running for testing is to comment out the zone entity_id: lines. I do this for testing configurations.
HA 2024.11.2. I just upgraded to the dev branch. There are a few issues:
Logger: homeassistant.config
Source: config.py:590
First occurred: 21:19:45 (1 occurrences)
Last logged: 21:19:45
Setup of package 'irrigation_configuration' at packages/irrigation/irrigation_configuration.yaml, line 19 failed: Integration irrigation_unlimited caused error: cannot import name 'DATA_INSTANCE' from 'homeassistant.components.recorder.const' (/usr/src/homeassistant/homeassistant/components/recorder/const.py)
```txt
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 21:19:45 (1 occurrences)
Last logged: 21:19:45
Detected blocking call to import_module with args ('custom_components.irrigation_unlimited',) inside the event loop by integration 'mqtt' at homeassistant/components/mqtt/__init__.py, line 239: hass_config = await conf_util.async_hass_config_yaml(hass) (offender: /usr/src/homeassistant/homeassistant/loader.py, line 1071: ComponentProtocol, importlib.import_module(self.pkg_path)), please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+mqtt%22 For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#import_module Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 783, in async_setup_locked await self.async_setup(hass, integ
ration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 546, in async_setup await self.__async_setup_with_context(hass, integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 272, in async_setup_entry mqtt_data, conf = await _setup_client(client_available) File "/usr/src/homeassistant/homeassistant/components/mqtt/__init__.py", line 239, in _setup_client hass_config = await conf_util.async_hass_config_yaml(hass)
Version of the custom_component: 2024.10.0
Configuration
Describe the bug
The following error is logged repeatedly in the main log error journal. Both controllers are currently off.
Debug log
These messages are very important in helping to determine the problem. Go into Settings -> System -> Logs. In the search box put in
irrigation_unlimited
(Note the underscore between the two words) and press the LOAD FULL LOGS button. Copy and paste below.