Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

No devices or entites #163

Open
pitr12 opened this issue Dec 13, 2023 · 0 comments
Open

No devices or entites #163

pitr12 opened this issue Dec 13, 2023 · 0 comments

Comments

@pitr12
Copy link

pitr12 commented Dec 13, 2023

Hi,

I have Vitodens 100-W and everything works nicely with ViCare app on my smartphone. However after adding vicare integration to HA, no devices are shown (it used to work some time ago, but suddenly everything disappeared - I have same issue with official integration)

See attached screenshot:
Screenshot 2023-12-13 at 12 54 09

And logs from vicare:

2023-12-13 11:41:49.625 WARNING (SyncWorker_2) [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
2023-12-13 11:41:49.626 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration vicare 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
2023-12-13 11:43:56.197 ERROR (SyncWorker_2) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:56.199 ERROR (MainThread) [homeassistant.components.button] Error while setting up vicare platform for button
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/button.py", line 83, in async_setup_entry
    entities = await hass.async_add_executor_job(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/button.py", line 98, in create_all_entities
    entity = _build_entity(
             ^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/button.py", line 55, in _build_entity
    description.value_getter(vicare_api)
  File "/config/custom_components/vicare/button.py", line 45, in <lambda>
    value_getter=lambda api: api.getOneTimeCharge(),
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 270, in getOneTimeCharge
    return self.service.getProperty("heating.dhw.oneTimeCharge")["properties"]["active"]["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-5e1e5acc84064bfda97b39cfa5ab0df2-4f27eb7d20494c37-01.1d7d3865_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}
2023-12-13 11:43:56.378 ERROR (SyncWorker_6) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:56.380 ERROR (MainThread) [homeassistant.components.climate] Error while setting up vicare platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/climate.py", line 123, in async_setup_entry
    circuits = await hass.async_add_executor_job(get_circuits, api)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/helpers.py", line 28, in get_circuits
    return vicare_api.circuits
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 48, in circuits
    return list([self.getCircuit(x) for x in self.getAvailableCircuits()])
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 330, in getAvailableCircuits
    return self.service.getProperty("heating.circuits")["properties"]["enabled"]["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-92b08a452e9044bf91e39e2f5ae9df71-343f384215634dc4-01.1d7d3868_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}
2023-12-13 11:43:56.579 ERROR (SyncWorker_3) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:56.581 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up vicare platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/sensor.py", line 652, in async_setup_entry
    entities = await hass.async_add_executor_job(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/sensor.py", line 666, in create_all_entities
    _entities_from_descriptions(
  File "/config/custom_components/vicare/sensor.py", line 636, in _entities_from_descriptions
    entity = _build_entity(
             ^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/sensor.py", line 605, in _build_entity
    sensor.value_getter(vicare_api)
  File "/config/custom_components/vicare/sensor.py", line 75, in <lambda>
    value_getter=lambda api: api.getOutsideTemperature(),
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 70, in getOutsideTemperature
    return self.service.getProperty("heating.sensors.temperature.outside")["properties"]["value"]["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-a9ea0d78ff3742b097b7f44754c50c6e-ae4cb65f907b4849-01.b18d87d_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}
2023-12-13 11:43:57.541 ERROR (SyncWorker_1) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:57.544 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up vicare platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/binary_sensor.py", line 158, in async_setup_entry
    entities = await hass.async_add_executor_job(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/binary_sensor.py", line 172, in create_all_entities
    _entities_from_descriptions(
  File "/config/custom_components/vicare/binary_sensor.py", line 142, in _entities_from_descriptions
    entity = _build_entity(
             ^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/binary_sensor.py", line 111, in _build_entity
    sensor.value_getter(vicare_api)
  File "/config/custom_components/vicare/binary_sensor.py", line 85, in <lambda>
    value_getter=lambda api: api.getSolarPumpActive(),
                             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 264, in getSolarPumpActive
    status = self.service.getProperty("heating.solar.pumps.circuit")[
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-4ee8336f398c466a9f1b269fdc3b14e7-e422c2670ed846c2-01.513f80b5_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}
2023-12-13 11:43:57.757 ERROR (SyncWorker_8) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:57.759 ERROR (MainThread) [homeassistant.components.water_heater] Error while setting up vicare platform for water_heater
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/water_heater.py", line 70, in async_setup_entry
    circuits = await hass.async_add_executor_job(get_circuits, api)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/helpers.py", line 28, in get_circuits
    return vicare_api.circuits
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 48, in circuits
    return list([self.getCircuit(x) for x in self.getAvailableCircuits()])
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 330, in getAvailableCircuits
    return self.service.getProperty("heating.circuits")["properties"]["enabled"]["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-1f89488016f9434d83bf70750a00ff24-e1b5463915114965-01.3ac48d13_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}
2023-12-13 11:43:58.001 ERROR (SyncWorker_7) [ViCare] Missing 'data' property when fetching data.
2023-12-13 11:43:58.002 ERROR (MainThread) [homeassistant.components.switch] Error while setting up vicare platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/vicare/switch.py", line 84, in async_setup_entry
    entities = await hass.async_add_executor_job(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/switch.py", line 99, in create_all_entities
    entity = _build_entity(
             ^^^^^^^^^^^^^^
  File "/config/custom_components/vicare/switch.py", line 56, in _build_entity
    description.value_getter(vicare_api)
  File "/config/custom_components/vicare/switch.py", line 45, in <lambda>
    value_getter=lambda api: api.getOneTimeCharge(),
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 55, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareUtils.py", line 48, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareHeatingDevice.py", line 270, in getOneTimeCharge
    return self.service.getProperty("heating.dhw.oneTimeCharge")["properties"]["active"]["value"]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 24, in getProperty
    data = self.__get_or_update_cache()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/PyViCare/PyViCareCachedService.py", line 45, in __get_or_update_cache
    raise PyViCareInvalidDataError(data)
PyViCare.PyViCareUtils.PyViCareInvalidDataError: {'viErrorId': '|00-b311d5a878384ea69ada5d9d8b9b93ba-a7a9015e41974b49-01.6c6b44a9_', 'statusCode': 404, 'errorType': 'DEVICE_NOT_FOUND', 'message': '', 'extendedPayload': {}}

Any ideas what might be wrong?

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant