home-assistant-bosch-custom-component icon indicating copy to clipboard operation
home-assistant-bosch-custom-component copied to clipboard

"external"-state with new API

Open busaku opened this issue 2 years ago • 15 comments

If i activate the new API in config, my record data will got weird data:

image

I cant import "old-Data" got an error. image

To Reproduce Steps to reproduce the behavior: Just enable new API

Expected behavior Got record-values

Screenshots image image

Disabled new API: image

Version

  • HA version 2022.6.7
  • HA Bosch component version 0.18.0a
  • Python Bosch HTTP client version (?)

** Debug SCAN ** ** IMPORTANT ** image

busaku avatar Jul 05 '22 07:07 busaku

read https://github.com/bosch-thermostat/home-assistant-bosch-custom-component/wiki/New-API-support

pszafer avatar Jul 05 '22 08:07 pszafer

Thanks,

but so i dont get (central heating data). Just: image (and these values are always the same)

and i cant import old history-data image

busaku avatar Jul 05 '22 08:07 busaku

can you translate error from last screen?

pszafer avatar Jul 05 '22 14:07 pszafer

Its like..

"Cant execute service bosch.move_old_statistic_data. Unknown error"

On Debug-Service i got error as seen in first post: "Cant execute bosch.debug_scan. Need array index uuid. Got none"

:)

Thank you.

I have tried new installation of hacs-component, "reinstall" of integration in home assistant with new setup. got the same error.

busaku avatar Jul 05 '22 14:07 busaku

Ah, in log-files i got:

File "/usr/src/homeassistant/homeassistant/components/recorder/pool.py", line 75, in do_get check_loop( File "/usr/src/homeassistant/homeassistant/util/async.py", line 168, in check_loop raise RuntimeError( RuntimeError: Blocking calls must be done in the executor or a separate thread; Use homeassistant.components.recorder.get_instance(hass).async_add_executor_job(); at homeassistant/components/recorder/pool.py, line 75: check_loop(

if i try to import old stats.

and 2022-07-05 16:06:42 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Invalid data for call_service at pos 1: required key not provided @ data['uuid'] 2022-07-05 16:06:42 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140067235651344] Error handling message: required key not provided @ data['uuid']. Got None (invalid_format)

if i try to run debug scan

busaku avatar Jul 05 '22 14:07 busaku

(I found the UUID on Buderus App <3)

bosch_scan.txt

busaku avatar Jul 05 '22 18:07 busaku

Let me know if it works for you with the newest version.

pszafer avatar Jul 18 '22 21:07 pszafer

With 12 days old 18.1 ? Nope, same error, recording CH power = unknown

busaku avatar Jul 19 '22 05:07 busaku

Error still there with 0.18.2

busaku avatar Jul 20 '22 18:07 busaku

can you somehow turn on heating for at least 15 minutes? :) I think unknown is because of no heating during last month.

pszafer avatar Jul 20 '22 18:07 pszafer

I will try, but atm its around 30° here ♨️ ;)

busaku avatar Jul 20 '22 20:07 busaku

Runs around 25 minutes, still Unknown

busaku avatar Jul 21 '22 19:07 busaku

I don't know if it's interesting, but in 0.18.3 the bug is thill sere ;)

busaku avatar Jul 22 '22 09:07 busaku

I got it working here with new stats api when using the colon-name instead. But how do I rename the entity now? I don't see the colon-entities in the entities config screen?

enjikaka avatar Aug 30 '22 11:08 enjikaka

You can't rename it because those are not entities, those are entries in statistics table.

pszafer avatar Oct 06 '22 12:10 pszafer