marcopal74 / home-assistant-palazzetti

Definitive Palazzetti SmartStoves integration for Home Assistant
MIT License
12 stars 7 forks source link

Integration broken with HA #18

Closed carmelo42 closed 3 weeks ago

carmelo42 commented 9 months ago

Since the 2024.2.0 update / OS 11.5 the integration does not work anymore : no more updates or control of my stove. I found this in the logs :

2024-02-08 18:58:01.351 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up palazzetti platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/palazzetti/sensor.py", line 53, in async_setup_entry
    SensorX(
  File "/config/custom_components/palazzetti/sensor.py", line 142, in __init__
    self._unique_id = "vuoto_" + self._key
                      ~~~~~~~~~^~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str
Zesstra69 commented 9 months ago

Same here, I suspect the bunch of changes talking about "stricter text related data types". I hope the owner of this git project is still around. If not, well, i'll try to understand the code to see if there is an easy fix.

Zesstra69 commented 9 months ago

I have just upgraded to 2024.2.1 and it solved the issue. I believe this one can be closed :-)

maustru commented 8 months ago

Me not :)

grafik

after the update same Problem. I have a Palazzetti Julie

Zesstra69 commented 8 months ago

FYI, I have a Bianca 9. A noticeable difference between mine and yours, beyond that obvious model, is that mine reports a firmware version: "mod 620 v44 2020-12-11". No clue however if this can be of any help. Is there any Palazzetti support people reading this ?

maustru commented 8 months ago

Also for information: My Connectbox has the firmware: 2.5.3 2022-11-08 15:52:19 (9e8e347)

maustru commented 8 months ago

Okay... Absolutely strange, because I didn't do anything. The entities were marked as unreachable. Nevertheless, I was able to access them via NodeRed. As of noon today, all entities are fully available again. In this case it can also be closed for me

grafik

marcopal74 commented 3 weeks ago

Thank you all for the discussion, closing the issue. There aren't enough double check in the code so if some values are NULL the code probably fails, sorry for that. 🤷