andrea-mattioli / bticino_x8000_component

Additional component for home assistant for managing the bticino x8000 smart thermostat without the netatmo firmware.
9 stars 1 forks source link

Broken, failed after ha update #35

Closed lizardclaw8 closed 1 month ago

lizardclaw8 commented 1 month ago

Checks

The problem

Registratore: homeassistant.config_entries Fonte: config_entries.py:604 Prima occorrenza: 20:26:07 (2 occorrenze) Ultima registrazione: 20:30:31

Error setting up entry Bticino X8000 for bticino_x8000 Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bticino_x8000/init.py", line 65, in async_setup_entry subscription_id = await add_c2c_subscription(plant_id, webhook_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bticino_x8000/init.py", line 36, in add_c2c_subscription response = await bticino_api.set_subscribe_c2c_notifications( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/bticino_x8000/api.py", line 328, in set_subscribe_c2c_notifications return {"status_code": status_code, "text": json.loads(content)} ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/json/init.py", line 346, in loads return _default_decoder.decode(s) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Diagnostics information

Cannot connect. C2C in legrand is working

Anything in the logs that might be useful for me?

No response

Additional information

No response

andrea-mattioli commented 1 month ago

Why did you put this flag without trying it? "I checked Legrand API works properly c2c and Plants" It's a Legrand c2c ISSUE

lizardclaw8 commented 1 month ago

Why did you put this flag without trying it? "I checked Legrand API works properly c2c and Plants" It's a Legrand c2c ISSUE

I have checked this and at legrand Site api test it is working 🤷🏻‍♂️

andrea-mattioli commented 1 month ago

image

lizardclaw8 commented 1 month ago

image

Thank you for your support, now it is not working for me too. Yesterday I got a normal response from testing.