bash command to control milight iBox2

All kinds of 'OS' scripts

Moderator: leecollings

Post Reply
sp007
Posts: 1
Joined: Monday 20 January 2020 14:23
Target OS: Linux
Domoticz version:
Contact:

bash command to control milight iBox2

Post by sp007 »

bash command to control milight iBox2

Anybody succeeded to find out how to control a bulb with a bash command via milight iBox 2?

The info on:
https://www.domoticz.com/wiki/Limitless/AppLamp_LED
is rather old and does not work.

milight.py works (from https://github.com/Strontvlieg/miLight- ... 2-Domoticz)
but my understanding of Python is almost zero.
milight.py is rather restricted, so I would like to try bash.

I tried capturing the commands that milight.py sends with wireshark, which led me to:

Code: Select all

echo -n -e '98d8635633b04cedfb79ab3608004500003796f3400040111e44c0a80201c0a8022dd70e1763002385b3200000001602623ad5eda301ae082d466141a7f6dcafd3e600001e'| sed -e 's/../\\x&/g' | nc -u -q 1 192.168.2.45 5987
echo -n -e '98d8635633b04cedfb79ab3608004500003296f7400040111e45c0a80201c0a8022dd70e1763001e85ae800000001187000000003100000803640000000200a2'| sed -e 's/../\\x&/g' | nc -u -q 1 192.168.2.45 5987
first one seems a handshake, second one a command
but there is no response.

Any ideas?

I tried to understand the code in the sources of domoticz, which succeeds in sending messages, but I do not understand this logic.
I do understand some bash.
I truely hope the developers will update https://www.domoticz.com/wiki/Limitless/AppLamp_LED
for milight v.6 or respond here

Thanks for reading!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest