inwaar / node-red-contrib-gree-hvac

Provides a node for controlling Gree HVAC (Heating, ventilation, and air conditioning).
15 stars 7 forks source link

Node-red crash, when I send any commands #12

Open bega1986 opened 1 year ago

bega1986 commented 1 year ago

I see all of the information from my AC, but when I send a command, then node-red is crashing. The AC execute the command, but the node-red is shutting down with the folloving errors:

14 Nov 11:24:05 - [red] Uncaught Exception: 14 Nov 11:24:05 - [error] TypeError: Cannot read properties of undefined (reading '0') at /data/data/com.termux/files/home/.node-red/node_modules/gree-hvac-client/lib/client.js:383:46 at Array.forEach () at Client._handleUpdateConfirmResponse (/data/data/com.termux/files/home/.node-red/node_modules/gree-hvac-client/lib/client.js:382:18) at Client._handleResponse (/data/data/com.termux/files/home/.node-red/node_modules/gree-hvac-client/lib/client.js:312:29) at Socket. (/data/data/com.termux/files/home/.node-red/node_modules/gree-hvac-client/lib/client.js:113:52) at Socket.emit (node:events:513:28) at UDP.onMessage [as onmessage] (node:dgram:930:8)

My HVAC type: Gree | G-TECH GWH12AEC

bega1986 commented 1 year ago

?

sixtybi commented 1 year ago

I have the same problem. Have you found a solution for this? I have two types of AC in my home: Syen SOH09BO-E32DA4A2 (this has the same issue as descibed above) Syen SOH12MU-E32DA1D (this is working fine with this node)

sixtybi commented 1 year ago

I have described a WA for this in Issue 11. I would suggest to merge these two issues as these two are the same.

bega1986 commented 1 year ago

I haven't found a solution yet :(

sixtybi commented 1 year ago

Try my workaround. It works, but not the best solution, as you have to wait for the values to be updated in the UI

On Mon, Jan 9, 2023, 10:48 bega1986 @.***> wrote:

I haven't found a solution yet :(

— Reply to this email directly, view it on GitHub https://github.com/inwaar/node-red-contrib-gree-hvac/issues/12#issuecomment-1375348364, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYUUOEHDM6AZIYMGRNPQI3WRPNILANCNFSM6AAAAAAR7VQZOM . You are receiving this because you commented.Message ID: @.***>

bega1986 commented 1 year ago

Try my workaround. It works, but not the best solution, as you have to wait for the values to be updated in the UI On Mon, Jan 9, 2023, 10:48 bega1986 @.> wrote: I haven't found a solution yet :( — Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARYUUOEHDM6AZIYMGRNPQI3WRPNILANCNFSM6AAAAAAR7VQZOM . You are receiving this because you commented.Message ID: @.>

I will try it, thank you!