dvd-dev / hilo

Home Assistant Hilo Integration via HACS
MIT License
122 stars 26 forks source link

Unexpected error fetching hilo data: invalid literal for int() with base 10: 'unavailable' #381

Closed turcotmii closed 3 months ago

turcotmii commented 4 months ago

Unable to setup utility meter low and medium; the medium and low meters arent incrementing image

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 image

Configuration

image

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 image

Debug log

home-assistant_2024-02-14T14-46-22.854Z.log


2024-02-14 09:55:21.330 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration meross_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.330 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration tplink_deco which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.330 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ui_lovelace_minimalist which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.330 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration bhyve which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.332 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.334 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration waste_collection_schedule which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.334 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration browser_mod which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.335 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration aarlo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:55:21.335 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hilo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-14 09:57:07.228 WARNING (MainThread) [pyhilo] Delaying invoke SubscribeToLocation 0 [37691]: Websocket not ready.
2024-02-14 09:57:07.243 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.HiloRewardSensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:57:58.689 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.000 seconds (success: True)
2024-02-14 09:58:14.882 DEBUG (MainThread) [custom_components.hilo] Unloading entry
2024-02-14 09:58:14.900 DEBUG (MainThread) [custom_components.hilo] Entry unloaded
2024-02-14 09:58:14.900 DEBUG (MainThread) [custom_components.hilo] Trying auth with token
2024-02-14 09:58:15.853 DEBUG (MainThread) [custom_components.hilo] Generating custom device [Gateway Hilo Gateway (1)]
2024-02-14 09:58:15.853 DEBUG (MainThread) [custom_components.hilo] Generating custom device [Tracker Unknown Source Tracker (0)]
2024-02-14 09:58:15.857 DEBUG (MainThread) [custom_components.hilo] Adding device [Meter Meter00 (777708)]
2024-02-14 09:58:15.857 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID meter00-power on sensor needs to be migrated
2024-02-14 09:58:15.857 DEBUG (MainThread) [custom_components.hilo] Unique ID meter00-power does not need to be migrated
2024-02-14 09:58:15.857 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Meter00 Power
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_meter00 on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_meter00 does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: hilo_energy_total with source sensor.meter00_power
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_total: hilo_energy_total_daily medium
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_total: hilo_energy_total_daily low
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_total_daily ['medium', 'low'] (Net Consumption: False)
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Adding device [FloorThermostat FloorTherm00 (777744)]
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID floortherm00-temperature on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID floortherm00-temperature does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up TemperatureSensor entity: FloorTherm00 Temperature
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID floortherm00-power on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID floortherm00-power does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: FloorTherm00 Power
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID floortherm00-target-temperature on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID floortherm00-target-temperature does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up TargetTemperatureSensor entity: FloorTherm00 Target Temperature
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_floortherm00 on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_floortherm00 does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: FloorTherm00 Hilo Energy with source sensor.floortherm00_power
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_floortherm00: hilo_energy_floortherm00_daily total
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_floortherm00_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Adding device [Thermostat Therm00 (777749)]
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm00-temperature on sensor needs to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Unique ID therm00-temperature does not need to be migrated
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Setting up TemperatureSensor entity: Therm00 Temperature
2024-02-14 09:58:15.858 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm00-power on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID therm00-power does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Therm00 Power
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm00-target-temperature on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID therm00-target-temperature does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up TargetTemperatureSensor entity: Therm00 Target Temperature
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_therm00 on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_therm00 does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Therm00 Hilo Energy with source sensor.therm00_power
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_therm00: hilo_energy_therm00_daily total
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_therm00_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Adding device [Thermostat Therm01 (777752)]
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm01-temperature on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID therm01-temperature does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up TemperatureSensor entity: Therm01 Temperature
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm01-power on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID therm01-power does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Therm01 Power
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm01-target-temperature on sensor needs to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Unique ID therm01-target-temperature does not need to be migrated
2024-02-14 09:58:15.859 DEBUG (MainThread) [custom_components.hilo] Setting up TargetTemperatureSensor entity: Therm01 Target Temperature
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_therm01 on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_therm01 does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Therm01 Hilo Energy with source sensor.therm01_power
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_therm01: hilo_energy_therm01_daily total
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_therm01_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Adding device [Thermostat Therm02 (777757)]
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm02-temperature on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID therm02-temperature does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up TemperatureSensor entity: Therm02 Temperature
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm02-power on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID therm02-power does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Therm02 Power
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm02-target-temperature on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID therm02-target-temperature does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up TargetTemperatureSensor entity: Therm02 Target Temperature
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_therm02 on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_therm02 does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Therm02 Hilo Energy with source sensor.therm02_power
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_therm02: hilo_energy_therm02_daily total
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_therm02_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Adding device [Outlet Sw00 (777763)]
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID sw00-power on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID sw00-power does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Sw00 Power
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_sw00 on sensor needs to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_sw00 does not need to be migrated
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Sw00 Hilo Energy with source sensor.sw00_power
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_sw00: hilo_energy_sw00_daily total
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_sw00_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.860 DEBUG (MainThread) [custom_components.hilo] Adding device [Outlet Sw01 (777764)]
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID sw01-power on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID sw01-power does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Sw01 Power
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_sw01 on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_sw01 does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Sw01 Hilo Energy with source sensor.sw01_power
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_sw01: hilo_energy_sw01_daily total
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_sw01_daily ['total'] (Net Consumption: False)
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Adding device [Gateway Hilo Gateway (1)]
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID defi_hilo on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID defi_hilo does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up ChallengeSensor entity: Defi Hilo
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID recompenses_hilo on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID recompenses_hilo does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up RewardSensor entity: Recompenses Hilo
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID notifications_hilo on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID notifications_hilo does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up NotificationSensor entity: Notifications Hilo
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_gateway on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_gateway does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up DeviceSensor entity: Hilo Gateway
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Adding device [Tracker Unknown Source Tracker (0)]
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID unknown_source_tracker-power on sensor needs to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Unique ID unknown_source_tracker-power does not need to be migrated
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Setting up PowerSensor entity: Unknown Source Tracker Power
2024-02-14 09:58:15.861 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_energy_unknown_source_tracker on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_energy_unknown_source_tracker does not need to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Setting up EnergySensor entity: Unknown Source Tracker Hilo Energy with source sensor.unknown_source_tracker_power
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter entity for hilo_energy_unknown_source_tracker: hilo_energy_unknown_source_tracker_daily total
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Creating UtilityMeter config: hilo_energy_unknown_source_tracker_daily ['total'] (Net Consumption: True)
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_low_threshold on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_low_threshold does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate low_threshold rate d Amount: 40
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_low on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_low does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate low rate d Amount: 0.06509
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_medium on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_medium does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate medium rate d Amount: 0.10041
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_access on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_access does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate access rate d Amount: 0.43505
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_reward_rate on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_reward_rate does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate reward_rate rate d Amount: 0.55
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID hilo_rate_current on sensor needs to be migrated
2024-02-14 09:58:15.862 DEBUG (MainThread) [custom_components.hilo] Unique ID hilo_rate_current does not need to be migrated
2024-02-14 09:58:15.862 INFO (MainThread) [custom_components.hilo] Initializing energy cost sensor Hilo rate current rate d Amount: 0
2024-02-14 09:58:15.870 DEBUG (MainThread) [custom_components.hilo] Setting up UtilityMeter entities utility_meter
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID floortherm00-climate on climate needs to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Unique ID floortherm00-climate does not need to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Setting up Climate entity: FloorTherm00
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm00-climate on climate needs to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Unique ID therm00-climate does not need to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Setting up Climate entity: Therm00
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm01-climate on climate needs to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Unique ID therm01-climate does not need to be migrated
2024-02-14 09:58:15.871 DEBUG (MainThread) [custom_components.hilo] Setting up Climate entity: Therm01
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID therm02-climate on climate needs to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Unique ID therm02-climate does not need to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Setting up Climate entity: Therm02
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID sw00-switch on switch needs to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Unique ID sw00-switch does not need to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Setting up Switch entity: Sw00
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Checking if unique ID sw01-switch on switch needs to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Unique ID sw01-switch does not need to be migrated
2024-02-14 09:58:15.872 DEBUG (MainThread) [custom_components.hilo] Setting up Switch entity: Sw01
2024-02-14 09:58:15.884 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.885 DEBUG (MainThread) [custom_components.hilo] Added to hass: hilo_energy_total
2024-02-14 09:58:15.886 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.886 DEBUG (MainThread) [custom_components.hilo] Added to hass: FloorTherm00 Hilo Energy
2024-02-14 09:58:15.887 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.888 DEBUG (MainThread) [custom_components.hilo] Added to hass: Therm00 Hilo Energy
2024-02-14 09:58:15.889 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.889 DEBUG (MainThread) [custom_components.hilo] Added to hass: Therm01 Hilo Energy
2024-02-14 09:58:15.903 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.903 DEBUG (MainThread) [custom_components.hilo] Added to hass: Therm02 Hilo Energy
2024-02-14 09:58:15.903 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.903 DEBUG (MainThread) [custom_components.hilo] Added to hass: Sw00 Hilo Energy
2024-02-14 09:58:15.904 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.904 DEBUG (MainThread) [custom_components.hilo] Added to hass: Sw01 Hilo Energy
2024-02-14 09:58:15.906 WARNING (MainThread) [homeassistant.components.sensor] <class 'custom_components.hilo.sensor.EnergySensor'> sets an invalid suggested_unit_of_measurement. Please create a bug report at https://github.com/dvd-dev/hilo/issues. This warning will become an error in Home Assistant Core 2024.5
2024-02-14 09:58:15.906 DEBUG (MainThread) [custom_components.hilo] Added to hass: Unknown Source Tracker Hilo Energy
2024-02-14 09:58:15.987 DEBUG (MainThread) [custom_components.hilo] Subscribing to location 37691
2024-02-14 09:58:15.990 WARNING (MainThread) [pyhilo] Delaying invoke SubscribeToLocation 0 [37691]: Websocket not ready.
2024-02-14 09:58:16.020 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_total'
2024-02-14 09:58:16.022 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_total'
2024-02-14 09:58:16.035 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_floortherm00'
2024-02-14 09:58:16.038 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_floortherm00'
2024-02-14 09:58:16.041 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm00'
2024-02-14 09:58:16.047 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm00'
2024-02-14 09:58:16.055 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm01'
2024-02-14 09:58:16.061 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm01'
2024-02-14 09:58:16.068 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm02'
2024-02-14 09:58:16.073 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_therm02'
2024-02-14 09:58:16.077 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_sw00'
2024-02-14 09:58:16.081 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_sw00'
2024-02-14 09:58:16.082 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_sw01'
2024-02-14 09:58:16.085 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_sw01'
2024-02-14 09:58:16.087 ERROR (MainThread) [homeassistant.components.select] Error while setting up utility_meter platform for select
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 "/usr/src/homeassistant/homeassistant/components/utility_meter/select.py", line 79, in async_setup_platform
    conf_meter_unique_id: str | None = hass.data[DATA_UTILITY][meter].get(
                                       ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_unknown_source_tracker'
2024-02-14 09:58:16.090 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up utility_meter 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 "/usr/src/homeassistant/homeassistant/components/utility_meter/sensor.py", line 239, in async_setup_platform
    conf_meter_source = hass.data[DATA_UTILITY][meter][CONF_SOURCE_SENSOR]
                        ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^
KeyError: 'hilo_energy_unknown_source_tracker'
2024-02-14 09:58:16.164 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 09:58:16.166 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:58:15.920842-05:00>
2024-02-14 09:58:16.167 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 09:58:16.167 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_floortherm00_total {'entity_id': 'sensor.hilo_energy_floortherm00_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_floortherm00', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.014831+00:00', 'friendly_name': 'hilo_energy_floortherm00_daily total'}, 'last_changed': '2024-02-14T14:58:15.924937+00:00', 'last_updated': '2024-02-14T14:58:15.924937+00:00', 'context': {'id': '01HPM209QMHTTMS6SCTAWJP06F', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.167 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_floortherm00_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_floortherm00_total=0; state_class=total_increasing, source=sensor.hilo_energy_floortherm00, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.014831+00:00, friendly_name=hilo_energy_floortherm00_daily total @ 2024-02-14T09:58:15.924937-05:00>
2024-02-14 09:58:16.167 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_therm00_total {'entity_id': 'sensor.hilo_energy_therm00_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_therm00', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.012042+00:00', 'friendly_name': 'hilo_energy_therm00_daily total'}, 'last_changed': '2024-02-14T14:58:15.925554+00:00', 'last_updated': '2024-02-14T14:58:15.925554+00:00', 'context': {'id': '01HPM209QNDQYSHMC94N08MK76', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.167 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_therm00_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_therm00_total=0; state_class=total_increasing, source=sensor.hilo_energy_therm00, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.012042+00:00, friendly_name=hilo_energy_therm00_daily total @ 2024-02-14T09:58:15.925554-05:00>
2024-02-14 09:58:16.167 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_therm01_total {'entity_id': 'sensor.hilo_energy_therm01_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_therm01', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.004530+00:00', 'friendly_name': 'hilo_energy_therm01_daily total'}, 'last_changed': '2024-02-14T14:58:15.926192+00:00', 'last_updated': '2024-02-14T14:58:15.926192+00:00', 'context': {'id': '01HPM209QP7V1XG9VT1ASQS3M5', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.167 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_therm01_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_therm01_total=0; state_class=total_increasing, source=sensor.hilo_energy_therm01, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.004530+00:00, friendly_name=hilo_energy_therm01_daily total @ 2024-02-14T09:58:15.926192-05:00>
2024-02-14 09:58:16.168 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_therm02_total {'entity_id': 'sensor.hilo_energy_therm02_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_therm02', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.017356+00:00', 'friendly_name': 'hilo_energy_therm02_daily total'}, 'last_changed': '2024-02-14T14:58:15.938351+00:00', 'last_updated': '2024-02-14T14:58:15.938351+00:00', 'context': {'id': '01HPM209R2GE791XSTH4ZTRD8H', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.168 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_therm02_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_therm02_total=0; state_class=total_increasing, source=sensor.hilo_energy_therm02, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.017356+00:00, friendly_name=hilo_energy_therm02_daily total @ 2024-02-14T09:58:15.938351-05:00>
2024-02-14 09:58:16.168 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_sw00_total {'entity_id': 'sensor.hilo_energy_sw00_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_sw00', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.013724+00:00', 'friendly_name': 'hilo_energy_sw00_daily total'}, 'last_changed': '2024-02-14T14:58:15.939047+00:00', 'last_updated': '2024-02-14T14:58:15.939047+00:00', 'context': {'id': '01HPM209R3A6FM4Y30DC6E7WZ4', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.168 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_sw00_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_sw00_total=0; state_class=total_increasing, source=sensor.hilo_energy_sw00, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.013724+00:00, friendly_name=hilo_energy_sw00_daily total @ 2024-02-14T09:58:15.939047-05:00>
2024-02-14 09:58:16.168 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_sw01_total {'entity_id': 'sensor.hilo_energy_sw01_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>, 'source': 'sensor.hilo_energy_sw01', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.005966+00:00', 'friendly_name': 'hilo_energy_sw01_daily total'}, 'last_changed': '2024-02-14T14:58:15.939981+00:00', 'last_updated': '2024-02-14T14:58:15.939981+00:00', 'context': {'id': '01HPM209R3KFQHVEVVXW3KMY6Z', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.168 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_sw01_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_sw01_total=0; state_class=total_increasing, source=sensor.hilo_energy_sw01, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.005966+00:00, friendly_name=hilo_energy_sw01_daily total @ 2024-02-14T09:58:15.939981-05:00>
2024-02-14 09:58:16.168 WARNING (MainThread) [custom_components.hilo] Fixing utility sensor: sensor.hilo_energy_unknown_source_tracker_total {'entity_id': 'sensor.hilo_energy_unknown_source_tracker_total', 'state': '0', 'attributes': {'state_class': <SensorStateClass.TOTAL: 'total'>, 'source': 'sensor.hilo_energy_unknown_source_tracker', 'status': 'collecting', 'last_period': '0', 'last_valid_state': 'None', 'meter_period': 'daily', 'cron pattern': '0 0 * * *', 'tariff': 'total', 'last_reset': '2024-02-14T05:00:00.016194+00:00', 'friendly_name': 'hilo_energy_unknown_source_tracker_daily total'}, 'last_changed': '2024-02-14T14:58:15.940775+00:00', 'last_updated': '2024-02-14T14:58:15.940775+00:00', 'context': {'id': '01HPM209R4KH3JCPJ57N9DPTWZ', 'parent_id': None, 'user_id': None}} new_attrs: {'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}
2024-02-14 09:58:16.168 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_energy_unknown_source_tracker_total, state=None, new_attrs={'unit_of_measurement': 'kWh', 'device_class': <SensorDeviceClass.ENERGY: 'energy'>}, keep_state=True <state sensor.hilo_energy_unknown_source_tracker_total=0; state_class=total, source=sensor.hilo_energy_unknown_source_tracker, status=collecting, last_period=0, last_valid_state=None, meter_period=daily, cron pattern=0 0 * * *, tariff=total, last_reset=2024-02-14T05:00:00.016194+00:00, friendly_name=hilo_energy_unknown_source_tracker_daily total @ 2024-02-14T09:58:15.940775-05:00>
2024-02-14 09:58:16.168 ERROR (MainThread) [custom_components.hilo] Unexpected error fetching hilo data: invalid literal for int() with base 10: 'unavailable'
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/helpers/update_coordinator.py", line 269, in _async_update_data
    return await self.update_method()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hilo/__init__.py", line 501, in async_update
    self.check_tarif()
  File "/config/custom_components/hilo/__init__.py", line 583, in check_tarif
    unknown_power = int(total_power.state) - known_power
                    ^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'unavailable'
2024-02-14 09:58:16.180 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.016 seconds (success: False)
2024-02-14 09:58:16.191 DEBUG (MainThread) [custom_components.hilo] Updated Gateway's deviceId from default 1 to 42667
2024-02-14 09:58:26.199 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 09:58:26.199 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:58:16.180842-05:00>
2024-02-14 09:58:26.199 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 09:58:26.200 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 393 Known sources: 344 Unknown sources: 49
2024-02-14 09:58:26.200 INFO (MainThread) [custom_components.hilo] Fetching hilo data recovered
2024-02-14 09:58:26.200 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 09:58:46.173 DEBUG (MainThread) [custom_components.hilo] Events received from Hilo: []
2024-02-14 09:58:58.679 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 09:58:58.679 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:58:26.201161-05:00>
2024-02-14 09:58:58.679 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 09:58:58.680 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 393 Known sources: 344 Unknown sources: 49
2024-02-14 09:58:58.680 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 09:59:08.687 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 09:59:08.687 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:58:58.681227-05:00>
2024-02-14 09:59:08.687 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 09:59:08.688 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 525 Known sources: 344 Unknown sources: 181
2024-02-14 09:59:08.688 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 09:59:58.524 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 09:59:58.524 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:59:08.689480-05:00>
2024-02-14 09:59:58.525 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 09:59:58.527 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 525 Known sources: 344 Unknown sources: 181
2024-02-14 09:59:58.527 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.003 seconds (success: True)
2024-02-14 10:00:08.547 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:00:08.547 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T09:59:58.539460-05:00>
2024-02-14 10:00:08.547 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:00:08.547 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 2931 Known sources: 344 Unknown sources: 2587
2024-02-14 10:00:08.547 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 10:00:10.130 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_floortherm00_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_therm00_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_therm01_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_therm02_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_sw00_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_sw01_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:10.131 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.hilo_energy_unknown_source_tracker_total (kWh) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-02-14 10:00:42.068 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:00:42.068 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:00:08.548700-05:00>
2024-02-14 10:00:42.068 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:00:42.069 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 2931 Known sources: 344 Unknown sources: 2587
2024-02-14 10:00:42.070 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.002 seconds (success: True)
2024-02-14 10:00:52.083 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:00:52.083 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:00:42.071691-05:00>
2024-02-14 10:00:52.084 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:00:52.086 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 2931 Known sources: 321 Unknown sources: 2610
2024-02-14 10:00:52.086 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.003 seconds (success: True)
2024-02-14 10:01:02.110 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:01:02.110 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:00:52.100505-05:00>
2024-02-14 10:01:02.111 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:01:02.111 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 498 Known sources: 321 Unknown sources: 177
2024-02-14 10:01:02.111 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 10:02:02.003 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:02:02.003 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:01:02.112396-05:00>
2024-02-14 10:02:02.004 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:02:02.005 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 498 Known sources: 321 Unknown sources: 177
2024-02-14 10:02:02.005 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.002 seconds (success: True)
2024-02-14 10:02:58.251 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:02:58.252 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:02:02.007560-05:00>
2024-02-14 10:02:58.252 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:02:58.252 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 498 Known sources: 321 Unknown sources: 177
2024-02-14 10:02:58.252 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 10:03:08.258 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:03:08.258 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:02:58.253351-05:00>
2024-02-14 10:03:08.259 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:03:08.259 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 492 Known sources: 321 Unknown sources: 171
2024-02-14 10:03:08.259 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.001 seconds (success: True)
2024-02-14 10:03:46.204 DEBUG (MainThread) [custom_components.hilo] Events received from Hilo: []
2024-02-14 10:04:08.003 DEBUG (MainThread) [custom_components.hilo] check_tarif: Updating current cost, was 0 now 0.06509
2024-02-14 10:04:08.003 DEBUG (MainThread) [custom_components.hilo] Setting state entity=sensor.hilo_rate_current, state=0.06509, new_attrs={}, keep_state=False <state sensor.hilo_rate_current=0; state_class=measurement, last_update=2024-02-14T09:58:15.862861-05:00, Cost=0, unit_of_measurement=$/kWh, device_class=monetary, icon=mdi:cash, friendly_name=Hilo rate current @ 2024-02-14T10:03:08.260611-05:00>
2024-02-14 10:04:08.004 DEBUG (MainThread) [custom_components.hilo] check_tarif: Current plan: rate d Target Tarif: low Energy used: 0 Peak: False
2024-02-14 10:04:08.005 DEBUG (MainThread) [custom_components.hilo] Currently in use: Total: 492 Known sources: 321 Unknown sources: 171
2024-02-14 10:04:08.006 DEBUG (MainThread) [custom_components.hilo] Finished fetching hilo data in 0.003 seconds (success: True)
turcotmii commented 4 months ago

I forgot to add the following screenshot in logs image

turcotmii commented 4 months ago

found the root cause, upon init process, the first pass to setup energy meter with that line

total_power = self._hass.states.get(smart_meter) retrun the following result <state sensor.meter00_power=unavailable; state_class=measurement, unit_of_measurement=W, device_class=power, icon=mdi:lan-disconnect, friendly_name=Meter00 Power @ 2024-02-17T23:58:54.271655-05:00>

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.

gravelfreeman commented 4 months ago

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!

turcotmii commented 4 months ago

after 2 weeks of back and forth and debug, I'm more than convinced that the mistake is coming from rows 560 in _init.py the sensor sensor.smartenergymeter_power doesnt exist nor referenced somewhere in the code.

image

turcotmii commented 4 months ago

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 https://github.com/dvd-dev/hilo/issues/381#issuecomment-1951439830 image

gravelfreeman commented 4 months ago

sensor.smartenergymeter_power

Perhaps this is from an older hardware not part of Hilo anymore. What happens if you remove that line?

turcotmii commented 4 months ago

The line isnt coming from previous hardware, it's from the source code. My Hilo installation is 2 months old.

When removing that line, I get the following message every minutes. image

I just refresh the integration from HACS and it contains the same line.

so far, the best solution I could do it overide the code with that - it gives the error only once at startup image

gravelfreeman commented 4 months ago

I wild guess here but smart meter might be the Hydro-Quebec meter used to create the sensor.meter00_power.

turcotmii commented 4 months ago

that was a good idea ; I've looked at hydroqc but couldnt find any reference but it lead me an idea for the fix.

This is what I have implemented in my local ; feel free to look an implement if it make sense to the code repo. I dont have any error at startup.

image

gravelfreeman commented 4 months ago

I tried your code in __init__.py and unless I'm not following I'm still getting the error at startup.

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 __init__.py. Could you share all the files you've modified so that I'm certain I'm not having typos.

Also are you on the latest version?

turcotmii commented 4 months ago

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.

ic-dev21 commented 4 months ago

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 ;)

gravelfreeman commented 4 months ago

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 ;)

Generate only total meters for each devices n'est pas coché dans mon setup. J'ai testé pour le fun et coché ou non ça donne la même erreur. Je suis sur la dernière version du component Hilo. Le fix dans ce thread ne règle pas ce problème. L'extension est vraiment brisé et ce depuis plusieurs mois. Il y aurait besoin d'un programmeur expérimenté qui prenne le temps de régler les bogues. Je pense qu'à la gang on est incapable.