Hi Martin, thanks for the advice - I was wondering if something like that might be possible so this is really helpful. I'll for up the terminal and have a look this weekend.
all the best
Luke
Hi Martin, thanks for the advice - I was wondering if something like that might be possible so this is really helpful. I'll for up the terminal and have a look this weekend.
all the best
Luke
Okay, so after playing around for a bit I'm now able to turn lights on and off via Telnet using.
telnet 192.168.1.100 25105 <enter>
GET /3?02636280=I=3 HTTP/1.1 <enter>
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ= <enter><enter>
HTTP/1.1 200 OK
Connection: close
Content-Type: text/html
Cache-Control: max-age=600
Access-Control-Allow-Origin: *
This response, and the fact I'm able to operate the lights using telnet seems to indicate the command strings and authentication are working right. Note I've added an incorrect username and password as a test and the telnet returns a 401 error so I'm confident the base64 encoding has done the trick - thanks!
As I said previously the hip requires two commands to turn an x10 device on or off - the first provides the address, the second tells it to turn on or off. These have to be two separate telnet commands, so I have to telnet in once for the addressing, and a second time to operate the light. This seems like a step forwards.
However, the MLGW is still not able to turn the lights on or off using a macro. In this case I'm using a virtual button to run a macro that sends two custom strings "Set A1" followed by "A ON":
"Set A1", "Output (command)", "GET /3?02636600=I=3 HTTP/1.1\0AAuthorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\0A\0A"
"A ON", "Output (command)", "GET /3?02636280=I=3 HTTP/1.1\0AAuthorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=\0A\0A"
I think perhaps it is the enter after the GET line and the two enters after the Authorisation line that are not going through correctly. I've tried substituting /0D for /0A and various combinations of the two but I'm not really clear on the difference between 'newline' and 'carrage return'
Thanks for all your help with this, Martin
All the best
Luke
Hi Luke,
"\0D\0A" should be correct, "\r\n" might work too (but means exactly the same thing).
Is it possible there needs to be a slight delay between the two commands? I'd try inserting a delay in the macro between the "Set A1" command and the "A ON" command - perhaps start with 1000 milliseconds and if that works then see how far you can reduce it.
Kind Regards,
Martin.
Location: Exeter, UK
Hi Matthias, I don't have a BLGW but have no doubt it will also support custom strings.
However, you example above shows https rather than http, is this intentional? I would be surprised if https will be supported as it would require support for encryption.
Kind regards,
Martin.
Location: Exeter, UK
Thanks - yes you are right, without the "s" 😁Hi Matthias, I don't have a BLGW but have no doubt it will also support custom strings. However, you example above shows https rather than http, is this intentional? I would be surprised if https will be supported as it would require support for encryption. Kind regards, Martin.
Hi Martin, just to say thanks so much for your help - a 4 second delay is needed between the two commands. I've got it all working now. I'll document the process in a separate thread in case it is of use to others. Incidentally Beocare mentioned they've had a few requests for an insteon driver so I'll make sure they are informed as well.
thanks again,
Luke
Hi
/forum/imported-unmapped/home-control-basic---mlgw#post-2214205
on this post i described my setup with a mlgw and how to control a jbmedia lightmaster air via custom strings.
Now I upgraded the mlgw to a blgw. Now I have the possibility to readout http request from the lightmanager air as status update of a button of the beolink app.
I need a http request for the lightmanager air (including authentication) to send to the blgw/mlgw to read out and control the macro for the status update of the button.
Normal 0 21 false false false DE JA X-NONE
I hope you know what I mean ;-)
beoandy
Okay, enclosed you find a screenshot of the light-manager air software. (you can see the command to integrate philips hue) You have two possibilities to send http requests. GET and PUT.
I tried this request without success:
(to send the command ”100” to the blgw to read out this via custom command and use this for status feedback of the light button)
PUT
user:passwort@192.168.0.xx:yy/?100
192.168.0.xx:yy/?100
(xx=ip of the blgw
yy=port of the blgw)
nothing at the capture function of the blgw!
Any hints for a solution?
Thanks beoandy
You must be logged in as a BeoWorld member to post replies to forum threads.
Register to access the forums, reference material, and exclusive member benefits — including our monthly prize draw.
Become a Member