# Issue with "node-red-contrib-gree-hvac"

**URL:** <https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863>\
**Category:** General\
**Created:** [7 February 2023 21:28 UTC](https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863 "2023-02-07T21:28:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkosatko](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jkosatko](https://discourse.nodered.org/u/jkosatko)\
**Post date:** [7 February 2023 21:28 UTC](https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863/1 "2023-02-07T21:28:34Z")

</div>

Hello all,

I am trying to play with "node-red-contrib-gree-hvac". I am able to install the palette and configure one device. Once deployed I can see in debut information from the AC unit:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/b/eba1f353cfbd1c00560cd89716f96069e9c9e2ef.png)

Once I start to do anything else I have got this error message and NR is gong into restart.

> 7 Feb 22:18:55 - [red] Uncaught Exception:  
> 7 Feb 22:18:55 - [error] TypeError: Cannot read properties of undefined (reading '0')  
> at /home/openhabian/.node-red/node\_modules/gree-hvac-client/lib/client.js:383:46  
> at Array.forEach ()  
> at Client.\_handleUpdateConfirmResponse (/home/openhabian/.node-red/node\_modules/gree-hvac-client/lib/client.js:382:18)  
> at Client.\_handleResponse (/home/openhabian/.node-red/node\_modules/gree-hvac-client/lib/client.js:312:29)  
> at Socket. (/home/openhabian/.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)  
> nodered.service: Main process exited, code=exited, status=1/FAILURE  
> nodered.service: Failed with result 'exit-code'.  
> nodered.service: Consumed 8.968s CPU time.  
> nodered.service: Scheduled restart job, restart counter is at 4.  
> Stopped Node-RED graphical event wiring tool.  
> nodered.service: Consumed 8.968s CPU time.

Any idea what could be wrong?

Thanks

Jan K.

---

<div class="post-metadata">

**Author:** ![Quiqui64](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/quiqui64/32/12755_2.png) [@Quiqui64](https://discourse.nodered.org/u/Quiqui64)\
**Post date:** [7 February 2023 22:44 UTC](https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863/2 "2023-02-07T22:44:52Z")

</div>

You may want to look here.

> <https://github.com/inwaar/node-red-contrib-gree-hvac/issues/11>
>
> At one of my deployment there is two Gree HVAC units. If you try to control firs…tly configured one, it works well. It you try to control the second one it crashes and kills all Node-RED instance.

---

<div class="post-metadata">

**Author:** ![jkosatko](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jkosatko](https://discourse.nodered.org/u/jkosatko)\
**Post date:** [8 February 2023 09:07 UTC](https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863/3 "2023-02-08T09:07:27Z")

</div>

Thanks, seems to be working. I have the same change to client.js file and all my four units are working, accepting commands from NR.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 February 2023 09:07 UTC](https://discourse.nodered.org/t/issue-with-node-red-contrib-gree-hvac/74863/4 "2023-02-22T09:07:54Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
