Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No complaints, just noticed these errors in the logs. Close case if desired immiadetely. #167

Open
ghost opened this issue Feb 25, 2024 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 25, 2024

i noticed these errors in the logs:

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/bosch_shc/sensor.py:371
Integration: Bosch SHC (documentation, issues)
First occurred: February 24, 2024 at 23:40:04 (1 occurrences)
Last logged: February 24, 2024 at 23:40:04

Error doing job: Exception in callback Entity.async_write_ha_state()
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/events.py", line 84, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 989, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1110, in _async_write_ha_state
    state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
                                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1047, in __async_calculate_state
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 995, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 549, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/bosch_shc/sensor.py", line 371, in native_value
    return self._device.communicationquality.name
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/boschshcpy/models_impl.py", line 35, in communicationquality
    return self._communicationquality_service.value
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/boschshcpy/services_impl.py", line 802, in value
    return self.State(self.state["quality"])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 744, in __call__
    return cls.__new__(cls, value)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/enum.py", line 1158, in __new__
    raise ve_exc
ValueError: 'FETCHING' is not a valid CommunicationQualityService.State
Logger: boschshcpy
Source: /usr/local/lib/python3.12/site-packages/boschshcpy/session.py:151
First occurred: 17:32:20 (1 occurrences)
Last logged: 17:32:20

SHC claims unknown poll id. Invalidating poll id and trying resubscribe next time...
Logger: boschshcpy
Source: /usr/local/lib/python3.12/site-packages/boschshcpy/session.py:240
First occurred: 17:32:20 (1 occurrences)
Last logged: 17:32:20

_long_poll returned False. Waiting 1 second.

I'd like the use the "official integration" instead of HACS. Is the official one yet up to date with the Smoke detector II, motion sensor and alarm funcions?

@HuisAutomatisering
Copy link

Hey the difference with the official integration is:
-Your motion sensor won't work (shows only battery)
-Your Presence simulation service won't work
-Your Smoke detection of the Twinguard won't work
-Your Intrusion detection system won't work.
-Your doorsensors won't have the vibration detection.
-Your Smoke detector II will only show battery...
That's in my case, so quite a lot... also wish the official intergration would have these working :-) Then I could disable the use of HACS.

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

No branches or pull requests

1 participant