# \[beginner\] need to send a string to IP:port

**URL:** https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686
**Category:** Flows
**Tags:** app, tools, flow
**Created:** [May 16, 2022, 10:12am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686 "2022-05-16T10:12:57Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Christophe\_Lambert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christophe_lambert/32/53465_2.png) [@Christophe\_Lambert](https://community.homey.app/u/Christophe_Lambert)
#### Post date: [May 16, 2022, 10:12am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/1 "2022-05-16T10:12:57Z")

</div>

I need to interface with bticino or Legrand using OpenWebNet over an IP gateway (IP : 192.168.200.102 port : 20000) and the a string to that gateway.

exemple of an Open Command to send : _1_1\*21##

What is the best way to send that command and read back the status report ? Do I need to developp a java script ?

After the command, I should get back the status report : is \*#\*1## for ACK or \*#0## for NACK

How should I implement this ?

Note : definition of OpenWebNet language [OpenWebNet - Wikipedia](https://en.wikipedia.org/wiki/OpenWebNet)

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [May 16, 2022, 10:49am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/2 "2022-05-16T10:49:20Z")

</div>

You could use the http logic card as condition.  
You can define the thhp type (post), IP:Port and the http body.  
It http post right? Is application/text right?

You can define a http code for the condition.  
So if http returncode= 200 (ok), your flow will continue with THEN part.

 ![Screenshot_20220516-124432_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53805520499a1b5dcec5577823e9691cec886b77.jpeg)

If the server is not responding with http codes and you need the result body, you can take a look at the “Http request flow cards” app

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [May 16, 2022, 10:55am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/3 "2022-05-16T10:55:14Z")

</div>

> [@RonnyW](#):
>
> It http post right?

No, it’s an entirely different protocol.

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [May 16, 2022, 11:07am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/4 "2022-05-16T11:07:13Z")

</div>

Ok, so it needs a new app and a NodeJS package (if existing) for the protocol?

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [May 16, 2022, 11:22am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/5 "2022-05-16T11:22:38Z")

</div>

Yeah, or some creative HomeyScript hacking.

---

<div class="post-metadata">

### Author: ![Christophe\_Lambert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christophe_lambert/32/53465_2.png) [@Christophe\_Lambert](https://community.homey.app/u/Christophe_Lambert)
#### Post date: [May 18, 2022, 8:38pm UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/6 "2022-05-18T20:38:11Z")

</div>

Hello RonnyW,  
thanks for the answer, I tested and I get an error

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/6/065dff997c76c1104a776701f01444c9a5536fd0.png)

Any idea ?

Actually, I don’t know if need to do a GET or POST to interface bticino F453AV. I’m using a small utility to send command in ASCII.  
So when sending : _1_1\*21## the lamp switch on and I should get a ACK \*#\*1##  
I can do this with the “The Little Logger” utility but I’m not sure what method to use with Homey

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/b/4b92d447024a2aa9420e1a91fa420436a02279cb.png)

I will continue to test different method and I will post if I find a solution.

Best regards, Christophe

---

<div class="post-metadata">

### Author: ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)
#### Post date: [May 19, 2022, 4:10am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/7 "2022-05-19T04:10:16Z")

</div>

Hi, like Robert said, that’s a special protocol and not http.  
So you won’t get it to work with simple http tools.

You will need a new app and a NodeJS package with an API for this protocol.

---

<div class="post-metadata">

### Author: ![Christophe\_Lambert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christophe_lambert/32/53465_2.png) [@Christophe\_Lambert](https://community.homey.app/u/Christophe_Lambert)
#### Post date: [May 19, 2022, 5:33am UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/8 "2022-05-19T05:33:14Z")

</div>

Ok, thank you Ronny and Robert

---

<div class="post-metadata">

### Author: ![Johan\_Hindryckx](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_hindryckx/32/79000_2.png) [@Johan\_Hindryckx](https://community.homey.app/u/Johan_Hindryckx)
#### Post date: [January 5, 2026, 1:09pm UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/9 "2026-01-05T13:09:29Z")

</div>

Hi @Christophe_Lambert. Any success to connect Homey to the bticino myhomeserver1 via OpenWebNet ?

---

<div class="post-metadata">

### Author: ![dsdevries](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dsdevries/32/80220_2.png) [@dsdevries](https://community.homey.app/u/dsdevries)
#### Post date: [January 5, 2026, 9:07pm UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/10 "2026-01-05T21:07:09Z")

</div>

Maybe you can use some of this in a homey script or a custom app?

> **[GitHub - sxpert/myhomejs: OpenWebNet module for nodejs](https://github.com/sxpert/myhomejs)**
>
> OpenWebNet module for nodejs

---

<div class="post-metadata">

### Author: ![Christophe\_Lambert](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christophe_lambert/32/53465_2.png) [@Christophe\_Lambert](https://community.homey.app/u/Christophe_Lambert)
#### Post date: [January 5, 2026, 9:07pm UTC](https://community.homey.app/t/beginner-need-to-send-a-string-to-ip-port/63686/11 "2026-01-05T21:07:46Z")

</div>

Hi Johan,

Yes it’s works now.  
I go it thought a gateway Easykon for Myhome from Freedompro Srl for that provides an API. So then I worked with ChatGPT to create HomeyScript that interface that API and finally I use Flows and AVD to interface with script.  
**[https://api.freedompro.eu/api/freedompro/accessories](https://api.freedompro.eu/api/freedompro/accessories)**  
[https://api.freedompro.eu/apidocs/](https://api.freedompro.eu/apidocs/)

Hope this help

Best regards  
Christophe
