Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for keep-alive command messages #15

Open
mwittig opened this issue Jan 17, 2017 · 11 comments
Open

Add support for keep-alive command messages #15

mwittig opened this issue Jan 17, 2017 · 11 comments

Comments

@mwittig
Copy link
Owner

mwittig commented Jan 17, 2017

This requires a better understanding of what can be done with keep-alive messages. The behavior of keep-alives as part of the Milight protocols isn't documented.

@AniTigran
Copy link

sombody can give me milightv 6 modul end send comand

@mwittig
Copy link
Owner Author

mwittig commented Mar 26, 2017

@AniTigran Can you please give some more details about what you need? Please also have a look at the examples. Generally, the flow is as follows:

var light = new Milight({
    ip: "192.168.0.34",
    type: 'v6'
  }),
  zone = 1;

// Send commands
light.sendCommands(commands.rgbw.on(zone));

// ...

// Finall close the connection to terminate the application
// It will close when all pending commands have been processed
light.close().then(function () {
  console.log("All command have been executed - closing Milight");
});
 

@AniTigran
Copy link

AniTigran commented Mar 29, 2017 via email

@mwittig
Copy link
Owner Author

mwittig commented Mar 29, 2017

Did you try "discover" your Ibox? Try to run "discover-bridges-v6.js" located in the examples directory

@AniTigran
Copy link

I can not connect milightv6 to my smart home it not respond. I put the IP of milightv6,numbers of zones,and color of the led,make a send comande on but there no aswer from milight.in configration of old milight in my smart home I must put a milght modul php ,milght class,and send comand in all.My smart home platform is MAjordomo.

@mwittig
Copy link
Owner Author

mwittig commented Apr 2, 2017

Did you pair your lights with the ibox controller?

@AniTigran
Copy link

AniTigran commented Apr 2, 2017 via email

@mwittig
Copy link
Owner Author

mwittig commented Apr 2, 2017

Did you try the example programs as sugested earlier? Are you sure majordomo is using node-milight-promise? As far as I can see majordomo is written in PHP and has its own set of PHP plugins like https://github.com/Gelezako/MajorDomo-MiLight

@AniTigran
Copy link

AniTigran commented Apr 2, 2017 via email

@mwittig
Copy link
Owner Author

mwittig commented Apr 4, 2017

Sorry, I am a bit lost here. As far as I can see "IPSMilightV6" and "MajorDomo-MiLight" are completely unrelated to my project. Maybe you can use "IPSMilightV6" as a basis for a MajrorDomo Milight V6 plugin.

If you want to trial my project please try to execute the examples as suggested earlier.

@markg85
Copy link

markg85 commented Dec 16, 2017

You can find an 'example' implementation of keep-alive here as well: https://github.com/JasperG/bilight/blob/master/bilight/src/main/java/com/jaspergoes/bilight/milight/Controller.java#L774

That is from the 'bilight' app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants