cyr-ius / hass-heatzy

Climate Home Assistant component for Heatzy Pilot
MIT License
33 stars 13 forks source link

Extension not working anymore (RESOLVED) #50

Closed arthur6703 closed 5 months ago

arthur6703 commented 6 months ago

Hello, Since this afternoon, the extension is not working anymore. I have this message: image and the error when I put the mouse on the message: "devdata/XXXXXXXXX/latest not reteived (500)"

Do you have any idea of what is happening in my installation? (the Heatzy app is working fine)

Thanks you :)

valoup69 commented 6 months ago

Hi. Same issue here. I tried to do some debugging and its seems that the problematic command is the "METHOD:GET URL:devdata/"DID"/latest " I tried using POSTMAN (following the API documentation of the heatzy website, which is clearly poorly maintained...) and I get this error when trying to get the data with the GET command ("https://euapi.gizwits.com/app/devdata/"DID"/latest):

{ "error_message": "call innerapi failed!", "error_code": 9066, "detail_message": "internal network partition" }

Since the app is working, I guess they may have changed something in the API ?

Cheers

(edit: I just send a message to the heatzy support... let's wait and see...)

gael1980 commented 6 months ago

Même problème chez moi

golgothar commented 6 months ago

Même problème..

terzo13 commented 6 months ago

Salut, Idem, même problème, survenu comme ça, sans aucun changement ou MAJ, reboot HA, rechargement de l'intégration, rien n'y fait. Merci et bon courage.

Frederic1000 commented 6 months ago

Hello, same issue for me.

Morganbzh commented 6 months ago

Same issue for me...

ElGibs commented 6 months ago

Once again, the API seems to be stuck. Seriously considering to switch to a more reliable vendor than Heatzy :-(

DraGula commented 6 months ago

Same here... Any alternative to Heatzy ?

ElGibs commented 6 months ago

Same here... Any alternative to Heatzy ?

A very simple alternative is a switching device (for lighting usually), along with a simple diode such as 1N4007. No soldering. The drawback is you will only drive 2 different orders: comfort, and 'hors-gel'. It is enough for most automated setups. Otherwise there is another integrated alternative, currently out of stock, available at Domadoo's. This time with Zigbee, avoiding crappy cloud API providers.

https://www.domadoo.fr/fr/chauffage-clim/6828-module-chauffage-fil-pilote-connecte-zigbee-30-nodon.html

magicbret commented 6 months ago

Yep idem pour moi. J'ai demandé à l'assistance Heatzy s'ils avaient mis à jour l'API. Y'a plus qu'à attendre que le dev mette à jour l'intégration🤞

Zebulon25 commented 6 months ago

Même problème chez moi aussi :-(

Dynag1 commented 6 months ago

Même souci chez moi, depuis hier 16h30 environ. Ayant un bon Covid, ca fait bizarre de se réveiller de la sieste avec 16° dans la maison... Espérons que le souci sera vite corrigé, c'est très embetant de devoir gérer les chauffages à l'ancienne. Impossible de garder une température constante comme ça ..

ericveniat commented 6 months ago

Pour info : 2023-12-29 10:19:56.164 DEBUG (MainThread) [heatzypy.auth] METHOD:GET URL:devdata//latest 2023-12-29 10:19:56.165 DEBUG (MainThread) [heatzypy.auth] DATA:{} 2023-12-29 10:19:56.206 DEBUG (MainThread) [custom_components.heatzy.coordinator] Finished fetching heatzy data in 0.318 seconds (success: False)

La réponse via l'appel curl : < HTTP/1.1 404 Not Found < connection: keep-alive < server: Cowboy < date: Fri, 29 Dec 2023 09:35:36 GMT < content-length: 0

On dirait que heatzy a fait quelquechose coté API :(

edit : l'appel au /devices/{did} fonctionne, mais plus le /devices/{did}/latest ....

Morganbzh commented 6 months ago

Once again, the API seems to be stuck. Seriously considering to switch to a more reliable vendor than Heatzy :-(

Heatzy is an extensive device, but considering to switch too. I need to have a trusted config. This morning it was only 15° in my 4 year old daughter's room...

And Thanks cyr-ius for the great work !

Jovaskatv commented 6 months ago

Bonjour a tous , Idem même soucis et ce matin un petit 16° c . Toujours pas de retour ?

djk314 commented 6 months ago

same here even with beta version...

DraGula commented 6 months ago

Ca fait que quelques jours de mon côté que j'ai 3 boitiers Heatzy. L'appli n'est vraiment pas top au passage :-D Vous complez les boitiers à quoi de votre côté pour avoir de la précision ? Je viens de commander des capteurs de température Zigbee histoire de faire des scénarios. Mais est-ce suffisant ?!

ElGibs commented 6 months ago

Ca fait que quelques jours de mon côté que j'ai 3 boitiers Heatzy. L'appli n'est vraiment pas top au passage :-D Vous complez les boitiers à quoi de votre côté pour avoir de la précision ? Je viens de commander des capteurs de température Zigbee histoire de faire des scénarios. Mais est-ce suffisant ?!

Bonjour, désolé c'est hors-sujet (panne de l'API). Oui c'est suffisant, mais cela revient à faire du On/Off, dommage quand on a un dispositif 6 ordres. Je suis en train de mettre en place en urgence des modules en remplacement, les Heatzy finiront sur LeBonCoin. Le chauffage, c'est non négociable 😅

terzo13 commented 6 months ago

Ca fait que quelques jours de mon côté que j'ai 3 boitiers Heatzy. L'appli n'est vraiment pas top au passage :-D Vous complez les boitiers à quoi de votre côté pour avoir de la précision ? Je viens de commander des capteurs de température Zigbee histoire de faire des scénarios. Mais est-ce suffisant ?!

Salut, sur HA addon versatile thermostat. Du coup maintenant, pour des radiateurs à molettes, tu peux regler la température. Faire aussi des scénarios en fonction de fenêtre ouverte ou non et faire des programmes avec scheduler component

cyr-ius commented 6 months ago

Je confirme l'API Heatzy du côté fournisseur ne répond plus I confirm the Heatzy API on the provider side is no longer responding

Morganbzh commented 6 months ago

J'ai écris au support de Heatzy pour leur signaler le problème. Pas de réponse pour le moment (même pas d'accusé de réception de la demande). Le module Nodon fil pilote a vraiment l'air top. Mais difficile à trouver ce moment. LEROY-MERLIN semble avoir une version rebrandé : HACH LEROY-MERLIN

ElGibs commented 6 months ago

Je confirme l'API Heatzy du côté fournisseur ne répond plus I confirm the Heatzy API on the provider side is no longer responding

Cela n'enlève rien à la qualité de ton travail. Encore merci pour le suivi.

HA-Etienne commented 6 months ago

Oui, merci pour ton travail ! (Très déçu par Heatzy sur le coup...)

ericveniat commented 6 months ago

ce que je ne comprends pas, c'est que sur l'appli mobile, les appels semblent marcher, et ce sans maj de l'appli. L'appli mobile ne fait pas les memes appels http?

8Thomas8 commented 6 months ago

ce que je ne comprends pas, c'est que sur l'appli mobile, les appels semblent marcher, et ce sans maj de l'appli. L'appli mobile ne fait pas les memes appels http?

Je suppose qu'ils ont une API privée et une API publique (mais bizarre).

arthur6703 commented 6 months ago

Il n'y aurait pas moyen d'intercepter les commandes envoyées/reçues depuis home assistant pour simuler un serveur local ?

gael1980 commented 6 months ago

Lorsque l'on regarde la doc de l'API : https://documenter.getpostman.com/view/10809108/SzYXYfP6?version=latest Mise à part la creation du token qui fonctionne, le reste, rien ne fonctionne. à chaque fois, cela renvoie une erreur...

BadGones0l commented 6 months ago

Il n'y aurait pas moyen d'intercepter les commandes envoyées/reçues depuis home assistant pour simuler un serveur local ?

Ça serait top ça !

Dynag1 commented 6 months ago

J'ai fait un test avec leur appli officielle, chez moi les calendriers ne fonctionnent pas. Un souci en interne chez eux ?

Mysa95 commented 6 months ago

Je vais poster des messages sur les réseaux sociaux. Peut être qu’ils s’activeront si ça passe par le community manager 🙂

Frederic1000 commented 6 months ago

For those looking for a DIY alternative : you can use a module with 2 relays (like the former Sonoff Dual R2) + 2 diods 1N4007. You will get the 4 main modes: off, comfort, eco and freeze protection. Note that the Sonoff module was a bit noisy. It is documented in french here: https://projetasgarddiy.fr/2018/05/28/piloter-un-radiateur-sonoff-dual-r2/

Nebukad93 commented 6 months ago

Anyone tried to open it ? We might be able to flash it with esphome

djk314 commented 6 months ago

Anyone tried to open it ? We might be able to flash it with esphome

It's a good idea to see if maybe it's an esp32 ;)

0r1g1ne commented 6 months ago

Other solution most recent with simple sonoff zbmini and diod : https://haade.fr/fr/blog/domotiser-entierement-un-radiateur-electrique-dans-home-assistant

BadGones0l commented 6 months ago

Other solution most recent with simple sonoff zbmini and diod : https://haade.fr/fr/blog/domotiser-entierement-un-radiateur-electrique-dans-home-assistant

Merci pour le lien, j'avoue commencé à en avoir assez d'heatzy et de cette dépendance l'API pour piloter mon chauffage ! Je viens de commander un module avec la diode pour tester.

valoup69 commented 6 months ago

Anyone tried to open it ? We might be able to flash it with esphome

Spent some time on it today. It is an ESP8266 and I could flash it with ESPhome (some soldering needed since no UART port present...). Retro-engineering of the board is quite easy but I am stuck with configuring ESPhome to do what we need since altering the AC to the pilote is not that simple (at least for me). I have posted on the main HA forum to get some help (with some info on my understanding of the board) : https://community.home-assistant.io/t/output-synchronization-on-ac-heatzy-pilote/663643 Just a word of caution : the board and the ESP8266 are not isolated from main... (actually the DC gnd is the AC live !)

edit: I think there are several version of the pilote so the board may be different on yours... On the side note, when you look at the content and the quality of the board, I think its manufacturing cost is < 5$. Along with the poor support of Heatzy, I would not recommend this to anyone...

ElGibs commented 6 months ago

Anyone tried to open it ? We might be able to flash it with esphome

Spent some time on it today. It is an ESP8266 and I could flash it with ESPhome (some soldering needed since no UART port present...). Retro-engineering of the board is quite easy but I am stuck with configuring ESPhome to do what we need since altering the AC to the pilote is not that simple (at least for me). I have posted on the main HA forum to get some help (with some info on my understanding of the board) : https://community.home-assistant.io/t/output-synchronization-on-ac-heatzy-pilote/663643 Just a word of caution : the board and the ESP8266 are not isolated from main... (actually the DC gnd is the AC live !)

Wow ! now THIS is really awesome ! I will try as well as soon as I have switched my current radiators to my spare simple switches. It would be so great to get rid of this crappy API, and instead directly report to HA ! Thanks !

achandebois commented 6 months ago

Hello I have the same issue

I checked your repo and wondering what fields are required by /devdata/{{DID}}/latest when async_get_devices Cannot check because the call returns currently

{
    "error_message": "call innerapi failed!",
    "error_code": 9066,
    "detail_message": "internal network partition"
}

Btw thanks for the great work @cyr-ius

8Thomas8 commented 6 months ago

@cyr-ius Je suis en train de regarder le code mais je suis pas très familier avec Python.

Les autres requêtes semblent OK.

Est-ce que tu penses qu'on aurait moyen de bypass temporairement cette requête en "empêchant" cette récupération de statut (ou en passant outre l'erreur) et en utilisant le dernier statut envoyé ?

C'est pas fou mais ça pourrait débloquer la situation le temps que chez Heatzy ils trouvent l'accès aux API qu'ils ont fait il y a 5 ans...

J'ai fais une PR : https://github.com/cyr-ius/heatzypy/pull/13

(C'est vraiment au pif mais si ça peut te donner une idée si tu veux check ou si quelqu'un d'autre veut regarder).

djk314 commented 6 months ago

I found some Api doc here https://github.com/OlivierZal/com.heatzy/tree/main/docs

enamaryn commented 6 months ago

Bonjour, je confirme la même chose. Impossible de configurer le module mais dans les logs ils trouvent bien les deux Heatzy que j'ai installé pour l'instant.

Je vais essayer de voir pour by-pass l'erreur..

adizanni commented 6 months ago

i'm fed up, I quit. I already replaced 2 broken Heatzy (lifespan of 2 years) with simple Shelly switch. With Shelly I do not have the 'fil pilot' to switch to eco mode, but I do not bother as I can set the temparature via automation. In the plus side I do not rely anymore on the cloud and the switches are far more reliable. With Heatzy, it happened multiple times that the API was failing to execute commands or that the state would change randomly finding myself at cold or hot temperature at night. I had to put in place a number of double checks and to poll periodically for the state to be sure it was working properly. This is not to complain about the integration, it was happening also using the iOS app....

Ricounet91 commented 6 months ago

Hello, I left a message to Heatzy technical support, they answered quickly and relevantly so far :)

Bonjour, j'ai laissé un message au support Heatzy, jusqu'à présent ils ont été réactifs et efficaces :)

cyr-ius commented 6 months ago

A force de creuser , on finit par tomber sur du dur.

En épluchant l'api Heatzy et l'appli , j'ai finis par me rendre compte que gizwits.com était simplement une société chinoise et qu'elle a publié son API https://docs.gizwits.com/en-us/overview/overview.html

et là par bonheur , on découvre qu'il existe une bonne veille API HTTPS qui marche comme elle veut .. pour preuve nos déboires , mais il existe aussi un Websocket disponible qui nous donne la meme chose. Alors soyons claire , il a aussi ces défault , de temps en temps , il rend un équipement manquant mais comme dans HA je pulle toute les 60s , on devrait avoir un truc .. qui tient la route à défaut de mieux.

Essayer la version 6.0.1

cyr-ius commented 6 months ago

Attention , j'ai quelques bugs , je sors une v6.0.1 dans quelques minutes. J'ai dépublié la 6.0.0

LouisForaux commented 6 months ago

Attention , j'ai quelques bugs , je sors une v6.0.1 dans quelques minutes. J'ai dépublié la 6.0.0

Je confirme que tout fonctionne bien en 6.0.1 !

Kekehuaite commented 6 months ago

Fonctionne aussi en 6.0.1 ! Un grand merci !

enamaryn commented 6 months ago

Parfait ! Fonctionne au poil ! Merci 😀

ElGibs commented 6 months ago

A force de creuser , on finit par tomber sur du dur.

En épluchant l'api Heatzy et l'appli , j'ai finis par me rendre compte que gizwits.com était simplement une société chinoise et qu'elle a publié son API https://docs.gizwits.com/en-us/overview/overview.html

et là par bonheur , on découvre qu'il existe une bonne veille API HTTPS qui marche comme elle veut .. pour preuve nos déboires , mais il existe aussi un Websocket disponible qui nous donne la meme chose. Alors soyons claire , il a aussi ces défault , de temps en temps , il rend un équipement manquant mais comme dans HA je pulle toute les 60s , on devrait avoir un truc .. qui tient la route à défaut de mieux.

Essayer la version 6.0.1

Bravo pour ta ténacité, admirable ! J'essaierai avant de tout changer, n'étant pas chez moi ça attendra, mais je ferai un retour ici. Bonne année à tous !

iksela commented 6 months ago

Merci beaucoup !