# Controlling relay module HHC-N8I8OP

**URL:** <https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696>\
**Category:** Industrial\
**Created:** [25 October 2021 09:49 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696 "2021-10-25T09:49:23Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lenaschitz](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Lenaschitz](https://discourse.nodered.org/u/Lenaschitz)\
**Post date:** [25 October 2021 09:49 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/1 "2021-10-25T09:49:23Z")

</div>

Hi guys,  
I´m using Node Red for controlling roller shutter and lights, wanted to extend it to control underfloor heating as well. Bought module HHC-N8I8OP, but have no idea how to communicate. I can switch all relays via a software provided by the supplier, but to integrade in my existing system? Any hints for a newbie?  
Regards and thanks in advance

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 October 2021 10:17 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/2 "2021-10-25T10:17:17Z")

</div>

Welcome to the forum @Lenaschitz

When you use it with the suppliers s/w are you connecting to it via ethernet?

The data in the link you provided is not well written and it is not immediately clear how to control it. It may be easier to use/modify the s/w provided with it. What UI has the s/w got? What language is it written in?

---

<div class="post-metadata">

**Author:** ![Lenaschitz](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Lenaschitz](https://discourse.nodered.org/u/Lenaschitz)\
**Post date:** [25 October 2021 10:40 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/3 "2021-10-25T10:40:48Z")

</div>

Hi Colin,  
yes the module does have an Ethernet connnection, no Wifi. The relay will switch actuators which control the heating circuits, so using the suppliers SW is not an option ;). Lot of peoples are using this relay already using loxone, I wanted to control it via Node Red.

 ![relay](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0ec06a2725f7a693ccf7e47860f47477db687363.png)  
This is what the SW looks like.  
Regards

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [25 October 2021 10:51 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/4 "2021-10-25T10:51:20Z")

</div>

According to the manual you can connect using http get requests or modbus

> **[webrelay\_users\_manual.pdf](https://www.controlbyweb.com/webrelay/webrelay_users_manual.pdf)**
>
> 6.00 MB

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 October 2021 10:54 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/5 "2021-10-25T10:54:46Z")

</div>

> [@Lenaschitz](#):
>
> This is what the SW looks like.

So there isn't a command line mode you could use from an exec node? Otherwise I think you are just going to have to work out what the API is from their poor documentation and, I guess, use TCP nodes to control it.

Alternatively a quick google search for  
HHC-N8I8Op python  
Suggested a number of possibilites, including these, which might be useful  
[GitHub - gabrielgbs97/hhc\_n8i8op\_mqtt](https://github.com/gabrielgbs97/hhc_n8i8op_mqtt) and [GitHub - Frankkkkk/python-hhc-n10: Python lib to pilot an HHC-N10 "ethernet relay"](https://github.com/Frankkkkk/python-hhc-n10)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [25 October 2021 12:05 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/6 "2021-10-25T12:05:14Z")

</div>

The manual isnt too bad.

Staring from section 5.1, you could easily add a http-request node to access `http://192.168.1.2/state.xml` pass it through an XML node and read the status

To set / reset a relay is even simpler...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f105525138c5424bdd681a2d14a8c8d9e7623b6b.png)

If you are unfamiliar with using http request node - there are some basic examples in the node-red cookbook (in the node-red site documentation)

also, as pointed out by @E1cid modbus/tcp is also supported - there are Modbus TCP nodes available to install in the palette manager.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [25 October 2021 12:28 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/7 "2021-10-25T12:28:42Z")

</div>

> [@Steve-Mcl](#):
>
> The manual isnt too bad.

I didn't find that one.

---

<div class="post-metadata">

**Author:** ![Lenaschitz](https://avatars.discourse-cdn.com/v4/letter/l/dfb087/32.png) [@Lenaschitz](https://discourse.nodered.org/u/Lenaschitz)\
**Post date:** [3 November 2021 18:23 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/8 "2021-11-03T18:23:58Z")

</div>

Hi guys,  
did take some time, but it works now. I had to set the mode of the relay to UDP Service to get feedback too. UDP in & UDP out node are in use, flow is attached, if somebody wants to save time 😉

[Heizung KG.json](https://discourse.nodered.org/uploads/short-url/gchSXy4ZII8MgEGDZOC2inO5sZ6.json) (23.9 KB)

Regards and many thanks for your contribution.

---

<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:** [2 January 2022 18:24 UTC](https://discourse.nodered.org/t/controlling-relay-module-hhc-n8i8op/52696/9 "2022-01-02T18:24:41Z")

</div>

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