jdeath / Hubspace-Homeassistant

Hubspace Integration for Home Assistant
MIT License
187 stars 35 forks source link

Hubspace Transformer #97

Closed oprey123 closed 2 months ago

oprey123 commented 2 months ago

Hubspace Transformer not working any longer in new version. I uninstalled hubspace integration in hacs, deleted the custom configuration, redownloaded hubspace and the integration, logged in via UI, zone 1 2 and 3 show up but unavailable.

attached required files.

_dump_hs_raw.json _dump_hs_devices.json

Expl0dingBanana commented 2 months ago

Can you provide the anonymized dump from the troubleshooting instructions? That should help keep it working moving forward

It appears one of the sensors caused the issue as I took some guesses on what it looked like

On Fri, Aug 2, 2024, 09:27 oprey123 @.***> wrote:

Hubspace Transformer not working any longer in new version.

2024-08-02 09:21:35.897 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration uptime_kuma 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-08-02 09:21:35.898 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration eero 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-08-02 09:21:35.898 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration bambu_lab 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-08-02 09:21:35.898 WARNING (SyncWorker_0) [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-08-02 09:21:35.898 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration portainer 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-08-02 09:21:35.898 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hubspace 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-08-02 09:21:35.899 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration sengledapi 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-08-02 09:21:35.899 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration fontawesome 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-08-02 09:21:35.899 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration nest_protect 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-08-02 09:21:35.899 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration truenas 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-08-02 09:21:36.893 WARNING (MainThread) [homeassistant.components.emulated_hue.config] Emulated Hue running in legacy mode because type has been specified. More info at https://goo.gl/M6tgz8 2024-08-02 09:21:37.022 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'eero' accesses hass.helpers.device_registry. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from device_registry directly at custom_components/eero/init.py, line 155: for device_entry in hass.helpers.device_registry.async_entries_for_config_entry(device_registry, config_entry.entry_id):, please create a bug report at https://github.com/schmittx/home-assistant-eero/issues 2024-08-02 09:21:37.023 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'eero' accesses hass.helpers.entity_registry. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from entity_registry directly at custom_components/eero/init.py, line 159: for entity_entry in hass.helpers.entity_registry.async_entries_for_device(entity_registry, device_entry.id):, please create a bug report at https://github.com/schmittx/home-assistant-eero/issues 2024-08-02 09:21:37.205 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'fontawesome' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/fontawesome/main.js", "/config/custom_components/fontawesome/main.js", True)]); This function will be removed in 2025.7 at custom_components/fontawesome/init.py, line 50: hass.http.register_static_path(, please report it to the author of the 'fontawesome' custom integration 2024-08-02 09:21:37.206 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'fontawesome' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/fontawesome/icons/brands", "/config/custom_components/fontawesome/data/brands", True)]); This function will be removed in 2025.7 at custom_components/fontawesome/init.py, line 58: hass.http.register_static_path(, please report it to the author of the 'fontawesome' custom integration 2024-08-02 09:21:37.209 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'fontawesome' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/fontawesome/icons/pro", "/config/custom_icons", True)]); This function will be removed in 2025.7 at custom_components/fontawesome/init.py, line 69: hass.http.register_static_path(, please report it to the author of the 'fontawesome' custom integration 2024-08-02 09:21:37.583 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/themes", "/config/themes", True)]); This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1182: self.hass.http.register_static_path(f"{URL_BASE}/themes", self.hass.config.path("themes")), please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:21:37.585 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend", False)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 54: hass.http.register_static_path(f"{URL_BASE}/frontend", locate_dir(), cache_headers=False), please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:21:37.586 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)]); This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:21:37.587 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:21:37.589 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)]); This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:21:54.868 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues 2024-08-02 09:22:12.309 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:16.269 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:23.352 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:24.125 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:30.322 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:34.164 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:37.048 ERROR (MainThread) [homeassistant.components.switch] Error adding entity switch.transformer_zone_2 for domain switch with platform hubspace Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities await coro File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity entity.add_to_platform_start( File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1330, in add_to_platform_start raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Entity 'switch.transformer_zone_2' cannot be added a second time to an entity platform 2024-08-02 09:22:37.053 ERROR (MainThread) [homeassistant.components.switch] Error adding entity switch.transformer_zone_3 for domain switch with platform hubspace Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities await coro File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity entity.add_to_platform_start( File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1330, in add_to_platform_start raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Entity 'switch.transformer_zone_3' cannot be added a second time to an entity platform 2024-08-02 09:22:37.053 ERROR (MainThread) [homeassistant.components.switch] Error adding entity switch.transformer_zone_1 for domain switch with platform hubspace Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities await coro File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 717, in _async_add_entity entity.add_to_platform_start( File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1330, in add_to_platform_start raise HomeAssistantError( homeassistant.exceptions.HomeAssistantError: Entity 'switch.transformer_zone_1' cannot be added a second time to an entity platform 2024-08-02 09:22:37.056 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session (None) 2024-08-02 09:22:37.058 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector (None) 2024-08-02 09:22:37.391 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:40.204 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:43.351 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:22:59.448 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:23:07.399 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved (None) Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 648, in state numerical_value = int(value) ^^^^^^^^^^ ValueError: invalid literal for int() with base 10: '12V'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 651, in state numerical_value = float(value) ^^^^^^^^^^^^ ValueError: could not convert string to float: '12V'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners update_callback() File "/config/custom_components/hubspace/sensor.py", line 37, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1007, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1133, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1068, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1013, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 655, in state raise ValueError( ValueError: Sensor sensor.transformer_output_voltage_switch has device class 'voltage', state class 'measurement' unit 'V' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: '12V' (<class 'str'>) 2024-08-02 09:23:08.238 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights 2024-08-02 09:23:13.397 ERROR (MainThread) [homeassistant.components.emulated_hue.hue_api] Entity not found: group.backyard_lights

— Reply to this email directly, view it on GitHub https://github.com/jdeath/Hubspace-Homeassistant/issues/97, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEM5H22O5DFAFSLX5PG53DZPOCLHAVCNFSM6AAAAABL4RVHWKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DIOJWGM3DENI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

oprey123 commented 2 months ago

I'll pull it now no problem. Thank you

I looked at the instructions again and it asks for the raw.json and hs_dervices.json which I attached. Is there another file I need to download?

oprey123 commented 2 months ago

home-assistant_hubspace_2024-08-02T13-50-53.629Z.log This is from the debug log in the intergration

Expl0dingBanana commented 2 months ago

Can you provide the file _dump_hs_devices.json? Instructions @ https://github.com/jdeath/Hubspace-Homeassistant/blob/main/README.md#through-the-ui

oprey123 commented 2 months ago

_dump_hs_raw.json _dump_hs_devices.json

Expl0dingBanana commented 2 months ago

Sorry, I missed the original post that already had this info. I hate reading on my phone :(

oprey123 commented 2 months ago

No problem at all, I originally posted just the dump then realized that you needed particular files so I edited my original post, probably after you saw it and replied to the original dump.

Expl0dingBanana commented 2 months ago

I am currently looking into this. There are a few things at play that I see:

Expl0dingBanana commented 2 months ago

I believe this should be fixed with #98. The PR has instructions for installing the test code. Please let me know if the issue persists after the update!

oprey123 commented 2 months ago

Works great thank you. All zones now working, metrics displaying correctly. Screenshot 2024-08-02 180046

oprey123 commented 2 months ago

Thanks closing