Sign in   |  Join   |  Help
Untitled Page

ARCHIVED FORUM -- March 2012 to February 2022
READ ONLY FORUM

This is the second Archived Forum which was active between 1st March 2012 and 23rd February 2022

 

HTTP Button

rated by 0 users
This post has 35 Replies | 3 Followers

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Seanie_230 Posted: Sat, Feb 14 2015 3:03 PM

Hello Automation lovers

I have a Biolock on my front door that has IP control (limited)

If i open a web browser / favorite of the below i can remotly unlock my front door for a number of seconds.

http://192.192.1921.192/dyn?login=&username=secret&password=secret2&button=Open+Door

 

Can i assign a link to a button that could appear in the app?

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

mjmedlo
Top 100 Contributor
Posts 922
OFFLINE
Bronze Member
mjmedlo replied on Sat, Feb 14 2015 3:38 PM
You'll have to have the custom strings protocol then tell he blgw the ip.

But it should work no problem I would think.
Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

Thank you

i assume I add a custom sting system and then the IP of the device with port.

do I add an event ?

 

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

mjmedlo
Top 100 Contributor
Posts 922
OFFLINE
Bronze Member
mjmedlo replied on Sat, Feb 14 2015 9:05 PM
Seanie_230:

Thank you

i assume I add a custom sting system and then the IP of the device with port.

do I add an event ?

Beovision 7 MKIV (Blu Ray) Beolab 9 Beolab 6000 Beo 4 Beocenter 9300 Apple TV SKY HD Optoma HD65 Projector Lintronic TT455-RT-238 Beovision 3 MKII

The event will be the trigger or button you create as a virtual button. Called 'unlock'. Or whatever you decide.

The command will be the 'custom strings'

Then write the command line for the unlock.
Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

Hi there

thank you for the help

i have tried to create a button as the first step but don't have a good enough understanding yet

can anyone give me an idiot step by step to get started on how to create the button and then add a comment to it.

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

mjmedlo
Top 100 Contributor
Posts 922
OFFLINE
Bronze Member
mjmedlo replied on Sun, Feb 15 2015 11:40 PM
Under resources go to virtual buttons.

Then create your button

The under systems create this ip lock as a custom string.

Then under macro create a news to with this new virtual button triggering the custom string unlock.

👍. Good luck.
Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Seanie_230 replied on Sun, Feb 22 2015 12:31 PM

mjmedlo:
Under resources go to virtual buttons.

 

Then create your button

 

 

The under systems create this ip lock as a custom string.

 

Then under macro create a news to with this new virtual button triggering the custom string unlock.

 

👍. Good luck.

Hi there

i created a virtual button under resources I created a button with LED

i went to systems and added a custom string called unlock it needs some info can anyone help?

it asks for end of line, host and port any thoughts ? Is end of line the URL to open the door or does that go in host?

Cheers all

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

mjmedlo:
Under resources go to virtual buttons.

 

Then create your button

 

 

The under systems create this ip lock as a custom string.

 

Then under macro create a news to with this new virtual button triggering the custom string unlock.

 

👍. Good luck.

Hi thrre

I have followed your instructions, i have created a virtual button under resources called Unlock this appears on every zone under scenes as Unlock.

I went to system and added a custom string called Unlock door with the below settings

where do i add the URL as i tried to put this in host but it does not allow it and changes the icon to red.

End of line says illegal character

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

Any if you lovely people want to help me with a team viewer session to get the door button working?

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

mjmedlo
Top 100 Contributor
Posts 922
OFFLINE
Bronze Member
mjmedlo replied on Sun, Feb 22 2015 7:42 PM
Seanie_230:

Any if you lovely people want to help me with a team viewer session to get the door button working?

Beovision 7 MKIV (Blu Ray) Beolab 9 Beolab 6000 Beo 4 Beocenter 9300 Apple TV SKY HD Optoma HD65 Projector Lintronic TT455-RT-238 Beovision 3 MKII

Will you snap a photo of the door protocol and your programming page?
PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member

Try:

GET /dyn?login=&username=secret&password=secret2&button=Open+Door HTTP/1.1\0D\0A

or

GET /dyn?login=&username=secret&password=secret2&button=Open+Door HTTP/1.1\0D\0AHost: www.example.com\0D\0A

Beoworld app with direct photo upload and emoticons.

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

Hi there

where do those commands get placed?

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member

In resources > Custom String > Address

Then you call that resource in a macro.

Beoworld app with direct photo upload and emoticons.

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

Hi Phil

I have tried that with both of the samples you gave, I changed the username and password to match also with the host on the second one being the IP address.

 

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

2nd One

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

3rd Macro page

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member

Looks OK to me...

Beoworld app with direct photo upload and emoticons.

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

PhilLondon:

Looks OK to me...

When i hit fire macro it does not open the door.

If i use the original link from a browser it works.

I am sure i am probably missing something.

 

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member

I just used capture to ensure i have the event correct and this added press and release.

It must be something to do with my custom string that sends the command to the door relay.

 

Frustrating but fun :)

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
New macro with captured events

Problem seems to be the custom string

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

mjmedlo
Top 100 Contributor
Posts 922
OFFLINE
Bronze Member
mjmedlo replied on Sun, Feb 22 2015 9:38 PM
So you have the door connected?

Try using the monitor to see what command the doors sends/receives
Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Seanie_230 replied on Sun, Feb 22 2015 10:05 PM

hi there

yeah the door is conencted to ethernet and if i use IE the door unlocks using the URL

below is the monitor

does this look right:

 

Monitoring

15-02-22 22:03:45 Integration protocol message Integration Protocol: stateful virtual button 0x0
15-02-22 22:03:45 Event fired global/Global/BUTTON/Unlock/PRESS
15-02-22 22:03:45 Macro fired global/Global/MACRO/Unlock front door
15-02-22 22:03:45 Integration protocol message Integration Protocol: stateful virtual button 0x0 0x3
15-02-22 22:03:45 Event fired global/Global/BUTTON/Unlock/RELEASE
15-02-22 22:03:45 Macro fired global/Global/MACRO/Unlock front door
15-02-22 22:03:47 Command selector executed global/Global/_CUSTOM/Unloc/_OUTPUT
15-02-22 22:03:47 Command executed global/Global/_CUSTOM/Unloc/_OUTPUT
15-02-22 22:03:47 Command selector executed global/Global/_CUSTOM/Unloc/_OUTPUT
15-02-22 22:03:47 Command executed global/Global/_CUSTOM/Unloc/_OUTPUT

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Seanie_230 replied on Thu, Feb 26 2015 10:45 PM
Hi all

I received some feedback from Bang & Olufsen via my dealer today.

The BLGW is not able to send the url as the protocol does not support sending the url. It either wraps the the message is rs232 or tcp packet.

I suppose I will have to give up on this one

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member
PhilLondon replied on Thu, Feb 26 2015 10:57 PM

That's what I found as well, but that's a bit more complex than that...

HTTP requests are TCP packets... so the BLGW can perfectly send requests (which should be executed, I made it happen with the Hue Bridge), however the HTTP server closes the connection just after executing the request.

The BLGW detects that the connection is broken and tries to re-establish the connection, without sending anything... the HTTP server being no HTTP request coming closes the connection... etc, etc...

I do not know if the MLGW has the same "auto connect" feature... But the only thing that B&O need to do is a setting to disable the auto-reconnection and then it'd be fine.

p.

Beoworld app with direct photo upload and emoticons.

beojeff
Top 50 Contributor
USA
Posts 2,012
OFFLINE
Bronze Member
beojeff replied on Fri, Feb 27 2015 10:05 PM

Phil,

I have not had the problems of the unit trying to re-establishing connection on the MLGW. Is it possible that for the "type" of command you are using in the custom string that you are using the option "both ways" instead of "output"? I am using "output" for my custom strings and it does not try to re-establish a connection because it is not looking for an incoming signal. Also keep in mind that the custom string uses the old Telnet language and that you must enter the "content length" of the command.

Jeff

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member
PhilLondon replied on Fri, Feb 27 2015 10:40 PM

I think it's indeed a difference between the BLGW and MLGW.

Telnet isn't the issue. Only character 0xff is send in a special way, the rest it transmitted as is.

In my case the commands actually work, it's just that the BLGW goes into a loop and becomes really slow.

Beoworld app with direct photo upload and emoticons.

beojeff
Top 50 Contributor
USA
Posts 2,012
OFFLINE
Bronze Member
beojeff replied on Fri, Feb 27 2015 11:13 PM

PhilLondon:

I think it's indeed a difference between the BLGW and MLGW.

Telnet isn't the issue. Only character 0xff is send in a special way, the rest it transmitted as is.

In my case the commands actually work, it's just that the BLGW goes into a loop and becomes really slow.

Does the BLGW offer you the 3 options for the "type" of command that the MLGW does?:

1. Both ways

2. Input (match)

3. Output (command)

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member
PhilLondon replied on Fri, Feb 27 2015 11:33 PM

beojeff:
Does the BLGW offer you the 3 options for the "type" of command that the MLGW does?

Yes.

Here's what's in the BLGW online help, on the Custom String page. Do you have that on the MLGW?

TCP connection maintenance

Read this section if you experience periodic TCP reconnections.

In order to rapidly detect broken TCP connections, BLGW uses the standard TCP Keepalive probes mechanism: when a TCP connection is idle, probe packets are sent periodically over the connection and an acknowledge is expected. The probe is an empty TCP packet with the request for acknowledge flag set.

This method for detecting active connections is specified in RFC-1122 section 4.2.3.6.

There are products with non-compliant TCP implementations which do not respond to these acknowledge requests. In such cases, HAGW will detect a broken TCP connection and reconnect. This may happen as frequent as every 20 seconds if there is no other data on the communication channel.

If you experience this problem, then you must somehow force some data to be sent back to HAGW periodically, so as to keep the channel active.

For example, you can use a clock event to send a status request to the 3rd party product periodically, or a ping/pong message. On command-line based protocols that echo all characters typed, probably sending a carriage return character is enough for getting data back to BLGW.

What to do strongly depends on the protocol of the external system.

Beoworld app with direct photo upload and emoticons.

beojeff
Top 50 Contributor
USA
Posts 2,012
OFFLINE
Bronze Member
beojeff replied on Sat, Feb 28 2015 3:23 AM

PhilLondon:

beojeff:
Does the BLGW offer you the 3 options for the "type" of command that the MLGW does?

Yes.

Here's what's in the BLGW online help, on the Custom String page. Do you have that on the MLGW?

TCP connection maintenance

Read this section if you experience periodic TCP reconnections.

In order to rapidly detect broken TCP connections, BLGW uses the standard TCP Keepalive probes mechanism: when a TCP connection is idle, probe packets are sent periodically over the connection and an acknowledge is expected. The probe is an empty TCP packet with the request for acknowledge flag set.

This method for detecting active connections is specified in RFC-1122 section 4.2.3.6.

There are products with non-compliant TCP implementations which do not respond to these acknowledge requests. In such cases, HAGW will detect a broken TCP connection and reconnect. This may happen as frequent as every 20 seconds if there is no other data on the communication channel.

If you experience this problem, then you must somehow force some data to be sent back to HAGW periodically, so as to keep the channel active.

For example, you can use a clock event to send a status request to the 3rd party product periodically, or a ping/pong message. On command-line based protocols that echo all characters typed, probably sending a carriage return character is enough for getting data back to BLGW.

What to do strongly depends on the protocol of the external system.

Yikes. That all seems unnecessarily complicated! There are no such problems on the MLGW. It seems that the only thing lacking on the MLGW is the menu on some newer products. The built-in Philips Hue support on the BLGW is very primitive. I was considering getting a BLGW, but I'll stay with the MLGW for now. It's solid and works. The custom strings to control Philips Hue scenes work flawlessly.

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Seanie_230 replied on Sat, Feb 28 2015 10:27 AM
Hi all

To turn this on its head is there a solution for me to trigger the door to open via something sending a url?

Or

The door relay does have the option for push to exit. I could link a relay to it if there is one that is compatible with the gateway which could accept a command to open the door.

Any thoughts

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

PhilLondon
Top 50 Contributor
London
Posts 3,637
OFFLINE
Bronze Member
PhilLondon replied on Sat, Feb 28 2015 11:20 AM

So what we've learned is... The BLGW's Custom String cannot be used for HTTP queries, while the MLGW can. At least with the current version of the software.

What I keep saying is that the BLGW shouldn't be used as a home automation system. Choose a home automation system that does what you need and interface the two (you need a driver or need to develop one).

Beoworld app with direct photo upload and emoticons.

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
PhilLondon:

What I keep saying is that the BLGW shouldn't be used as a home automation system. Choose a home automation system that does what you need and interface the two (you need a driver or need to develop one.

Hi Phil thanks for all your help with this.

I think I will find a way eventually to buy something that could trigger the relay for push to exit or program my computer to listen for a tcp message and get my of to send the Url or open the webpage which will trigger the door to unlock.

I don't really want a fully setup automation system and tried c4 before.

I think all my needs are in the BLGW with using Hue, Lutron and maybe some other devices that will appear along the way.

One thing is for sure everyone seems to be on the automation path now.

Cheers again

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Hello all

This post might need to be moved to home automation

I worked with a Bang and Olufsen engineer today and in fact a custom driver has been written and it can fire a HTTP command to unlock the front door.

This was possible in the current BLGW and BETA version.

Great news for me!

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

beoandy
Not Ranked
sissi not kangaroo
Posts 329
OFFLINE
Gold Member
beoandy replied on Mon, Feb 13 2017 8:19 PM

Hi!

To send a http command was also with the „old“ firmware possible. (more on the try and error side) Can you explain how the new beta make the creation better/easier?

BS Ouverture, BS 9000, AV 9000, Avant 32 DVD, BV9, BV6-22, BS 5, BS 4500, BS 7000, BC 9500, Beo6, BL Penta, F1000, BLGW, etc....

Seanie_230
Top 50 Contributor
UK
Posts 2,278
OFFLINE
Bronze Member
Because you have a driver editor so you can create drivers in a much easier way for the people who can learn how to do it rather than using custom strings

Eclipse 65
V1-32
Beosound M5
Essence MK2
BLI

beoandy
Not Ranked
sissi not kangaroo
Posts 329
OFFLINE
Gold Member
beoandy replied on Tue, Feb 14 2017 7:31 AM

sounds exciting. thank you! 

okay, now wait for the release. Cool

BS Ouverture, BS 9000, AV 9000, Avant 32 DVD, BV9, BV6-22, BS 5, BS 4500, BS 7000, BC 9500, Beo6, BL Penta, F1000, BLGW, etc....

Page 1 of 1 (36 items) | RSS