question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data missing after update to Home Assistant 2022.12

See original GitHub issue

Describe the bug After updating to Home Assistant 2022.12 the integration seems not to be working anymore.

To Reproduce The sensors “recording…” all changed to state unknown. Seen with the following sensors:

  • sensor.recording_ractualchpower
  • sensor.recording_ractualdhwpower
  • sensor.recording_ractualpower
  • sensor.recording_ractualtemp
  • sensor.recording_routdoor_t1
  • sensor.recording_rroomtemperature

Neither restarting Home Assistant nor reloading the integration manually did any help!

Expected behavior The sensors used to provide values before updating Home Assistant to 2022.12

Screenshots

Version

  • Home Assistant 2022.12.0
  • Supervisor 2022.11.2
  • Operating System 9.3
  • Frontend 20221207.0 - latest
  • HA Bosch component version 1.28.4
  • Python Bosch HTTP client version?

** Debug SCAN ** ** IMPORTANT ** Running debug scan doed not work: “Fehler beim Aufrufen des Diensts bosch.debug_scan. required key not provided @ data[‘uuid’]. Got None”

Additional context `Logger: homeassistant.helpers.entity Source: custom_components/bosch/sensor/recording.py:105 Integration: Bosch thermostat (documentation, issues) First occurred: 06:41:21 (828 occurrences) Last logged: 07:49:51

Update for sensor.recording_ractualpower fails Update for sensor.recording_ractualchpower fails Update for sensor.recording_ractualdhwpower fails Update for sensor.recording_rroomtemperature fails Update for sensor.recording_ractualtemp fails Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 527, in async_update_ha_state await self.async_device_update() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 722, in async_device_update raise exc File “/config/custom_components/bosch/sensor/recording.py”, line 89, in async_update await self._insert_statistics() File “/config/custom_components/bosch/sensor/recording.py”, line 105, in _insert_statistics last_stats = await get_instance(self.hass).async_add_executor_job( File “/usr/local/lib/python3.10/concurrent/futures/thread.py”, line 58, in run result = self.fn(*self.args, **self.kwargs) TypeError: get_last_statistics() missing 1 required positional argument: ‘types’`

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wag-czcommented, Dec 9, 2022

Hello, I’ve just tried v0.20.0dev1a on Home Assistant 2022.12.1 and it still doesn’t work. It complains about date format now.

Logger: homeassistant.helpers.entity Source: util/dt.py:188 First occurred: 12:35:07 (336 occurrences) Last logged: 13:02:37

Update for sensor.bosch_recording_ractualpower fails Update for sensor.bosch_recording_routdoor_t1 fails Update for sensor.bosch_recording_ractualchpower fails Update for sensor.bosch_recording_rsolaryield fails Update for sensor.bosch_recording_ractualdhwpower fails Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 527, in async_update_ha_state await self.async_device_update() File “/usr/src/homeassistant/homeassistant/helpers/entity.py”, line 722, in async_device_update raise exc File “/config/custom_components/bosch/sensor/recording.py”, line 89, in async_update await self._insert_statistics() File “/config/custom_components/bosch/sensor/recording.py”, line 127, in _insert_statistics end_time = dt_util.as_local(dt_util.parse_datetime(end)) File “/usr/src/homeassistant/homeassistant/util/dt.py”, line 188, in parse_datetime return ciso8601.parse_datetime(dt_str) TypeError: argument 1 must be str, not datetime.datetime

0reactions
pszafercommented, Dec 21, 2022

@schraubgern do you use the latest version?

Read more comments on GitHub >

github_iconTop Results From Across the Web

2022.12: It does matter! - Home Assistant
Matter is a new smart home interoperability standard, an open-source protocol, that defines how devices can communicate and work together. Read ...
Read more >
Full Changelog for Home Assistant Core 2022.12
These are all the changes included in the Home Assistant Core 2022.12 release. For a summary in a more readable format: Release notes...
Read more >
Common Tasks - Operating System - Home Assistant
This section will provide guides to some common tasks and information which you will need in order to run, maintain, and edit your...
Read more >
Common Tasks - Supervised - Home Assistant
You can use the CLI to upgrade to a specific version ( 2022.12.8 in this example), ... Potential consequences include loss of data...
Read more >
Update to 2022.11.2 Fails - Home Assistant Community
Trying to update HA Core from 2022.10.5 to 2022.11.2 on a RPi3. I've tried multiple times and continue to get the same error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found