-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected error fetching hilo data: invalid literal for int() with base 10: 'unavailable' #381
Comments
found the root cause, upon init process, the first pass to setup energy meter with that line
The code is executed twice in setup ; the first pass it brings an error, inthe second pass, the value is found and no error is raised. |
Multiple issues raised about this, basically the code is broken. Someone tried to fix it in 324 but the code isn't working perfectly. There's no reset at midnight. If you can help, please do! |
the error is raised from that line at script initialisation only once. As said earlier, the total_power.state value is unavailable at the time. I suspect this is coming from the orders things are being done as per mentionne ine comment #381 (comment) |
Perhaps this is from an older hardware not part of Hilo anymore. What happens if you remove that line? |
I wild guess here but smart meter might be the Hydro-Quebec meter used to create the sensor.meter00_power. |
I tried your code in ERROR (MainThread) [homeassistant.components.sensor] Error while setting up hilo platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/hilo/sensor.py", line 184, in async_setup_entry
await utility_manager.update(async_add_entities)
File "/config/custom_components/hilo/managers.py", line 72, in update
await utility_setup(self.hass, config)
File "/usr/src/homeassistant/homeassistant/components/utility_meter/__init__.py", line 143, in async_setup
if not conf[CONF_TARIFFS]:
~~~~^^^^^^^^^^^^^^
KeyError: 'tariffs' Then the logs get spammed with WARNING (MainThread) [custom_components.hilo] check_tarif: Unable to find state for sensor.hilo_energy_total_low Perhaps your screenshot doesn't contain everything you updated in Also are you on the latest version? |
The error you are referring to (unable to find sensor.hilo_energy_total_low) is related to another issue that happens once in a while during restart ; the sensor referred above doesn’t exists anymore in your instance. |
Apologies I haven't been watching the repo much lately. @turcotmii I hadn't noticed the issue but total_low and total_medium will not populate with "generate only total meters" checkbox. That's actually normal behaviour though it shouldn't cause errors in the logs. Le français me va parfaitement bien aussi, au choix ;) |
|
Unable to setup utility meter low and medium; the medium and low meters arent incrementing
Version of the custom_component
Core: 2024.2.1
Supervisor: 2024.01.1
Operating System: 11.5
Frontend: 20240207.1
custom component : 2024.2.2
Configuration
Describe the bug
The meter hilo_energy_total is working fine, but the hilo_energy_total_low and hilo_energy_total_medium aren't working and stay to 0
Debug log
home-assistant_2024-02-14T14-46-22.854Z.log
The text was updated successfully, but these errors were encountered: