This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Closed Solved
Control Horizon Ziggo
This discussion has been closed.
Comments
See the attachment for the result.
Looks like the dlna control settings. I also see these for my TV. Wouldn't it be simple if someone made a dlna app? Then every dlna device would become controllable by Homey without the need for having an app fore very dlna device.
Did you used the IPV4 address of the gateway address?
EDIT:
Script is finished, need to finetune the adb commands a little bit more.
This weekend i will post a video of how its working!
First test today, i've been able to script it on a emulator, so you dont need a phone anymore to run this.
Here is a short video of it
For now its not very fast with turning it on and off but its the first version!
Ps sorry of the sound, its because of the wind.
Looking forward to all the possibilities!
But I will try to convert this into an app!
Just a little trouble though, I have no doubt that I can make this work and will even release a simple app shortly
It is not working yet. This is mostly because I am not fully sure what I'm doing (no "official" documentation, and the file itself is barely documented ) and it's kinda hard to find out if I'm doing exactly the same as the PHP file (Which I guess I'm not, since it's not working).
The process seems to be the following:
1- Open a connection
2- Receive first data from the box, containing its version info (buffer = [82,70,66,32,48,48,51,46,48,48,56,10])
3- Send the version info to the box.
4- Receive an OK message from the box (buffer = [1,1])
5- Return hex2bin 01, meaning "Authorisation type: none"
6- Receive an OK message from the box (buffer = [0,0,0,0] ????)
7- Receive INIT data (buffer = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] ????)
So far it seems to be okay, but I'm not 100% sure.
8- Send the "key on" button
9- Send the "key off" button
10- Close the connection.
8 and 9 are not doing anything for me, sadly.
I must be doing something wrong, possibly in steps 5, 7, or 8. I checked with the PHP script and the same "à" in ISO-8859-1 appears as in Homey when I send the INFO key in step 8.
I am not so experienced with the Buffers that NodeJS generates here so it's all a big test for me.
@KixAss is there a function makeBuffer2 that you can post as well? Not sure if it helps any but at least then the PHP script is complete
In the hex2bin function you miss some ; chars after lines of code.
And it would be nice to have 1 type of defining functions. With:
var varname = function()
Or
function varname()
But you are using them both.
I have no experience creating apps for homey, and do not own the ziggo box.
Good luck, hope you'll find the issue. If i can help you let me know.
Horizon app - sending E100 to x.x.x.209
... any ideas?
I'm not done with the complete app yet, just got the basics up, so callbacks and such are not yet used.
@MarcoWijk that's also what I get.
There must be some error in that hex2bin function I guess, although it seems to be output the correct chars compared to PHP...
Configuring my router didn't help. I'm not sure if it's a Horizon problem or a Homey problem, or even a firewall Horizon-problem.
The Horizon-app in playstore does have a remote integrated, perhaps there is a workaround inthere? It's a remote via a network connection, probably via a cloud, but still a remote using a available network.
PS i would buy you some beers for the hassle to put it up the store.
And thanks for all your efforst already spend