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
RonnyW
May 16, 2022, 10:49am
2
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.
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
RonnyW:
It http post right?
No, it’s an entirely different protocol.
RonnyW
May 16, 2022, 11:07am
4
Ok, so it needs a new app and a NodeJS package (if existing) for the protocol?
Yeah, or some creative HomeyScript hacking.
Hello RonnyW,
thanks for the answer, I tested and I get an error
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
I will continue to test different method and I will post if I find a solution.
Best regards, Christophe
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.
Ok, thank you Ronny and Robert
Hi @Christophe_Lambert . Any success to connect Homey to the bticino myhomeserver1 via OpenWebNet ?
Maybe you can use some of this in a homey script or a custom app?
OpenWebNet module for nodejs
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/apidocs/
Hope this help
Best regards
Christophe