dominikamann / oekofen-pellematic-compact

A Ökofen Pellematic Compact Integration based on JSON/TCP-Inteface for Home Assistant.
Apache License 2.0
32 stars 6 forks source link

Integration does not work anymore after compact update to 4.02 #17

Closed lucaferrucci closed 1 year ago

lucaferrucci commented 1 year ago

hello, after the update to version 4.02 of the compact the repository returns an error indicating that the values of the layout are not numeric, downloading the json file from the machine the file is apparently the same. Is there a solution to avoid losing the configuration in home assistant? I am attaching the 4.01 and 4.02 files for reference. Thanks in advance 4.01.txt 4.02.txt

dominikamann commented 1 year ago

Hi @lucaferrucci,

i checked both files. The new version (4.02) looks valid to me. I did not found a difference. So it should work.

grafik

Can you please open the home assistant logs and check if there are more informations provided?

-> Just open http://[your_home_assistant_ip]:8123/config/logs

Another question: Have you tried to restarting your Home Assistant? It could be that the integration was unable to retrieve the information during the update and was then unable to recover from this state.

Thanks!

lucaferrucci commented 1 year ago

Hi Dominik, I am attaching the log, but in the lovelace interface where it should display the value of the entity it displays the error that it is not a numeric entity, strange, even I was unable to find any differences while viewing the file. I honestly don't know, I almost think that the problem is homeassistant after the last update and not the json file of the pellematic, the problem is that at the same time as the HASS update I updated the pellematic to 4.02. Thanks in advance

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: custom_components.oekofen_pellematic_compact Source: custom_components/oekofen_pellematic_compact/init.py:158 Integration: Ökofen Pellematic Compact (documentation, issues) First occurred: 8 marzo 2023, 17:04:45 (1950 occurrences) Last logged: 09:19:20

Error reading pellematic data Traceback (most recent call last): File "/config/custom_components/oekofen_pellematic_compact/init.py", line 134, in async_refresh_api_data update_result = await self.fetch_pellematic_data() File "/config/custom_components/oekofen_pellematic_compact/init.py", line 150, in fetch_pellematic_data result = await self._hass.async_add_executor_job(fetch_data, self._host) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/oekofen_pellematic_compact/init.py", line 158, in fetch_data result = json.loads(urllib.request.urlopen(req).read().decode("utf-8", "ignore")) File "/usr/local/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.10/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':' delimiter: line 59 column 17 (char 2041)

Il giorno 8 mar 2023, alle ore 18:46, Dominik Amann @.***> ha scritto:

Hi @lucaferrucci https://github.com/lucaferrucci,

i checked both files. The new version (4.02) look valid to me. I did not found a difference. Can you please open the home assistant logs and check if there are more informations provided?

-> Just open http://[your_home_assistant_ip]:8123/config/logs

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1460577340, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND7H5QA6VCWUMKOOW3LW3DAYDANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

Hi @lucaferrucci, thank you for the error details. Now i found the issue. There is a missing " in the JSON. So the JSON format is incorrect. This is a Bug of the 4.02 version. Can you please report this to Ökofen technical support? They should fix ... I will look if i can provide a workarround for you ...

grafik

lucaferrucci commented 1 year ago

Hello good morning, I asked okofen yesterday if they had changed something in the 4.02 json file, but they haven't answered yet, now I'm forwarding your email to okofen and let's see if anything changes, even if I know for sure that they're not exactly quick on this matter . let's try to put the precious Andreas Platzgummer of the Italy technical service in copy in the email, maybe he will be able to forward the problem to the Oekofen Austria. Thank you All

Il giorno 9 mar 2023, alle ore 09:39, Dominik Amann @.***> ha scritto:

Hi @lucaferrucci https://github.com/lucaferrucci, thank you for the error details. Now i found the issue. There is a missing " in the JSON. So the JSON format is incorrect. This is a Bug of the 4.02 version. Can you please report this to Ökofen technical support? They should fix ... I will look if i can provide a workarround for you ...

https://user-images.githubusercontent.com/29973737/223965995-28803cea-05bf-4117-b93b-9f0eed0ed8a6.png — Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1461569850, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND4RKNIVPAGB5RV5ANLW3GJLLANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

@lucaferrucci: I have implemented a hotfix (until Ökofen fixes their bug) that should fix the faulty JSON ... Can you please install it and try it out?

https://github.com/dominikamann/oekofen-pellematic-compact/releases/tag/v2.1.2

Thanks!

lucaferrucci commented 1 year ago

Hi Dominik, I'd like to give you bad news, but it still doesn't display unknown values, if you want to do some tests I can also give you the credentials of my homeassistant so you can try it directly, no problem Schermata 2023-03-13 alle 09 39 30 Pellematic

dominikamann commented 1 year ago

Hi,

which version did you installed?

lucaferrucci commented 1 year ago

4.02

Hello, good morning, I wrote to you that the head of Oekofen Italy replied? he forwarded our report to the developers department

Grazie Luca. Ho mandato al ufficio programmazione.

Distinti saluti Schnarf Michael

ÖkoFEN Italia srl Il riscaldamento a pellet 39025 Naturno | Via Peter Mitterhofer 23 | Italy tel: +39 0473-667867 email: @. @.> web: www.oekofen.it http://www.oekofen.it/

Il giorno 13 mar 2023, alle ore 22:01, Dominik Amann @.***> ha scritto:

Hi,

which version did you installed?

— Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1466951293, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND3DZEPKWELUETYSQS3W36DLXANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

Perfect! I meant, which version of my integration do you have installed? I have released 2 versions yesterday for your problem. v2.1.3 is the right one for you.

https://github.com/dominikamann/oekofen-pellematic-compact/releases/tag/v2.1.3

lucaferrucci commented 1 year ago

Hello good morning, sorry, I thought you meant the oekofen version, I ran the latest update proposed by hass, I just replaced the _init file and restarted hass, but nothing changed, always the same error

Il giorno 14 mar 2023, alle ore 19:17, Dominik Amann @.***> ha scritto:

Perfect! I meant, which version of my integration do you have installed? I have released 2 versions yesterday for your problem. v2.1.3 is the right one for you.

https://github.com/dominikamann/oekofen-pellematic-compact/releases/tag/v2.1.3 https://github.com/dominikamann/oekofen-pellematic-compact/releases/tag/v2.1.3 — Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1468604603, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNNDZAX73BMR2VQEW6X4LW4CY35ANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

Ok can you please provide the error logs from HA again? Thanks

lucaferrucci commented 1 year ago

Dettagli registro (ERRORE)

Questo errore ha avuto origine da un'integrazione personalizzata. Logger: custom_components.oekofen_pellematic_compact Source: custom_components/oekofen_pellematic_compact/init.py:160 Integration: Ökofen Pellematic Compact (documentation https://github.com/dominikamann/oekofen-pellematic-compact, issues https://github.com/dominikamann/oekofen-pellematic-compact/issues) First occurred: 07:21:31 (754 occurrences) Last logged: 11:32:36

Error reading pellematic data Traceback (most recent call last): File "/config/custom_components/oekofen_pellematic_compact/init.py", line 134, in async_refresh_api_data update_result = await self.fetch_pellematic_data() File "/config/custom_components/oekofen_pellematic_compact/init.py", line 150, in fetch_pellematic_data result = await self._hass.async_add_executor_job(fetch_data, self._host) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/oekofen_pellematic_compact/init.py", line 160, in fetch_data result = json.loads(response) File "/usr/local/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.10/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':' delimiter: line 59 column 17 (char 2024)

Il giorno 17 mar 2023, alle ore 10:25, Dominik Amann @.***> ha scritto:

Ok can you please provide the error logs from HA again? Thanks

— Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1473500992, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND7KNYUDI2JOETFPE2LW4QUXDANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

That is really strange I double checked it. With the latest release it should work. Did you restarted HA after Update?

dominikamann commented 1 year ago

@lucaferrucci can you please check in HACS if you use the latest version (v2.1.4).

Go to HACS->Integrations->Ökofen Pellematic Compact

Thanks.

image

lucaferrucci commented 1 year ago

hi Domink, in fact I don't have the latest version, but I have to update it manually, Hass doesn't offer it to me

Il giorno 18 mar 2023, alle ore 22:14, Dominik Amann @.***> ha scritto:

@lucaferrucci https://github.com/lucaferrucci can you please check in HACS if you use the latest version (v2.1.4).

Go to HACS->Integrations->Ökofen Pellematic Compact

Thanks.

https://user-images.githubusercontent.com/29973737/226140435-22cb999e-2dfb-4ab9-abfb-76cf8158b786.png — Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1474995490, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND57BXPWIIFTLPH3KA3W4YQSFANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

lucaferrucci commented 1 year ago

Repository updated but i’ve some error

Questo errore ha avuto origine da un'integrazione personalizzata.

Logger: custom_components.oekofen_pellematic_compact Source: custom_components/oekofen_pellematic_compact/init.py:169 Integration: Ökofen Pellematic Compact (documentation, issues) First occurred: 10:11:23 (89 occurrences) Last logged: 10:41:04

Error reading pellematic data Traceback (most recent call last): File "/config/custom_components/oekofen_pellematic_compact/init.py", line 134, in async_refresh_api_data update_result = await self.fetch_pellematic_data() File "/config/custom_components/oekofen_pellematic_compact/init.py", line 150, in fetch_pellematic_data result = await self._hass.async_add_executor_job(fetch_data, self._host) File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/config/custom_components/oekofen_pellematic_compact/init.py", line 169, in fetch_data result = json.loads(str_response) File "/usr/local/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.10/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ':' delimiter: line 59 column 17 (char 2050)

Il giorno 18 mar 2023, alle ore 22:14, Dominik Amann @.***> ha scritto:

@lucaferrucci https://github.com/lucaferrucci can you please check in HACS if you use the latest version (v2.1.4).

Go to HACS->Integrations->Ökofen Pellematic Compact

Thanks.

https://user-images.githubusercontent.com/29973737/226140435-22cb999e-2dfb-4ab9-abfb-76cf8158b786.png — Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1474995490, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNND57BXPWIIFTLPH3KA3W4YQSFANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

@lucaferrucci sometimes the update is only visible if you open HACS. Go into Integrations, select a integration (Ökofen). If you now open HACS again the update for the selected Integration is visible.

Thank you for your feedback. I found the issue. I released a new version some minutes ago. Please install & try again.

lucaferrucci commented 1 year ago

NICE, is all OK!!! SuperDominik!!!

Il giorno 20 mar 2023, alle ore 12:31, Dominik Amann @.***> ha scritto:

@lucaferrucci https://github.com/lucaferrucci sometimes the update is only visible if you open HACS. Go into Integration, select a integration. If you now open HACS again the update is visible.

Thank you for your feedback. I found the issue. I released a new version some minutes ago. Please install & try again.

— Reply to this email directly, view it on GitHub https://github.com/dominikamann/oekofen-pellematic-compact/issues/17#issuecomment-1476061502, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2LNNDYVV3I64UXKKGWJNQLW5A5YHANCNFSM6AAAAAAVSGW54M. You are receiving this because you were mentioned.

dominikamann commented 1 year ago

Perfect i'm happy to hear that 👍