15 minute interval consumption is 0 for around 12h every 12h and sometimes inbetween
Closed this issue · 1 comments
MysteriousWolf commented
The 15 minute input sensor:
Utility meter integral:
Can't confirm if the same happens for output as right now pretty much every bit of solar power is consumed locally.
What would be the best way to give additional log data for this plugin so I can provide more info in case this is unique to my installation?
One thing I noticed at some point was this warning in case it may be connected:
2024-12-14 17:52:01.703 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open with args ('/config/custom_components/mojelektro/manifest.json', 'r') inside the event loop by custom integration 'mojelektro' at custom_components/mojelektro/sensor.py, line 137: with open(manifest_path, 'r') as f: (offender: /config/custom_components/mojelektro/sensor.py, line 137: with open(manifest_path, 'r') as f:), please create a bug report at https://github.com/frlequ/homeassistant-mojelektro/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open
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 227, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 213, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 708, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 679, in run_forever
self._run_once()
File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2027, in _run_once
handle._run()
File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run
self._context.run(self._callback, *self._args)
File "/config/custom_components/mojelektro/sensor.py", line 67, in async_setup_entry
async_add_entities(sensors)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 523, in _async_schedule_add_entities_for_entry
task = self.config_entry.async_create_task(
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1150, in async_create_task
task = hass.async_create_task_internal(
File "/usr/src/homeassistant/homeassistant/core.py", line 841, in async_create_task_internal
task = create_eager_task(target, name=name, loop=self.loop)
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 45, in create_eager_task
return Task(coro, loop=loop, name=name, eager_start=True)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 657, in async_add_entities
await add_func(coros, entities, timeout)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 777, in _async_add_entity
if self.config_entry and (device_info := entity.device_info):
File "/config/custom_components/mojelektro/sensor.py", line 112, in device_info
"sw_version": self.get_version(),
File "/config/custom_components/mojelektro/sensor.py", line 137, in get_version
with open(manifest_path, 'r') as f:
MysteriousWolf commented
Closing this as it's likely due to data aggregation mentioned in the readme.