Page 1 of 12
Mi-Light / LimitlessLED / Applamp
Posted: Saturday 09 May 2015 13:19
by Pergotje
There are many topics talking about this RGB led controller.
But I can't find the information I need.
First, for everyone who use's the Mi-Light / LimitlessLED / Applamp and can't acces the Wifi-settings because it's V4 and sees only the Firmware update function.
There is an app for Windows downloadable at
http://www.limitlessled.com/download/LimitlessLEDv4.zip
There you can acces the Wifi-controller to change the settings and/or set an IP.
I use the Mi-Light with 4 RGB ledstrips.
In Domoticz I go to HARDWARE and add the "Limitless/AppLamp with LAN interface"
Then I see in Devices 5 new devices.
The 4 zone's, 1 group and the one for changing colour or mode.
The problem is, they are for RGBW and don't work for me.
I delete the RGBW device's.
I set the mode to RGB
Then i only see the colourchange device, but not the other four device's
When I set the mode back to RGBW all devices come back.
How to get the devices working with RGB?
Re: Mi-Light / LimitlessLED / Applamp
Posted: Saturday 09 May 2015 13:23
by Pergotje
I also work with the bash scripts and that works fine. But therefore its not necessary to add the device.
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 11 May 2015 13:28
by Hanss
Hello Pergotje,
Can you please help me out with the following issue?
I have downloaded a script that is installed on my Synology DS214 play. The Synology NAS is also my Domoticz server.
Domoticz tries to run this script, but I failes to do so...
My question is --> Is there a specific script language I have to use? Below you can see the script that I found on the Internet.
Thank you in Advance!!!
2015-05-09 19:02:22.669 (Applamp MiLight Livingroom 1) Lighting Limitless/Applamp (AppLamp Group1)
2015-05-09 19:02:22.953 Executing script: /volume1/@appstore/domoticz/scripts/shellscripts/test.sh
2015-05-09 19:02:22.983 Error: Error executing script command (/volume1/@appstore/domoticz/scripts/shellscripts/test.sh). returned: 32512
----------------------------------------------------------------------------------------------------------
#!/bin/bash
# This script comes with no warranty ...use at own risk
# Copyright (C) 2014 Peter H. Roubos
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# This script can be used as a wake me up script using a wifi RGBW led
# like AppLamp/LimitedLed/Mi-Light/IWY Color etc.
# I use it in Domoticz but should work on every linux system
#
# Version 0.1 15 sept 2014
#
# Change variables to your liking here
IP=192.168.1.70 # ip adress of your wifibox
PORT=8899 # port of your wifibox, normaly 8899
GROUP=1 # use 1,2,3,4 for the group you want
RUNTIME=6 # time that the script will go from begin to end (0 is about 2 minutes 6 about 10 minutes 15 about 30 minutes)
#############################################################################################################################
# NO CHANGES AFTER THIS LINE -NO CHANGES AFTER THIS LINE -NO CHANGES AFTER THIS LINE -NO CHANGES AFTER THIS LINE #
#############################################################################################################################
let GROUP=$GROUP*2
let LAMPCODE=67+$GROUP
let WHITECODE=195+$GROUP
let UIT=$AAN-1
let DIMMER=2
let COLOR=190
function verzend(){
echo -n -e $SENDCOM | nc -u -q 1 $IP $PORT
sleep $RUNTIME
}
##SEND ON Command
printf -v ONCOMMAND '%x' $LAMPCODE
SENDCOM="\x"$ONCOMMAND"\x00"
echo -n -e $SENDCOM | nc -u -q 1 $IP $PORT
## Loop to change the colors and the brightness
while [ $DIMMER > 27 ]
do
## Send dimmer command
printf -v ONCOMMAND '%x' $DIMMER
SENDCOM="\x4E\x"$ONCOMMAND
verzend
## Send Again, it's udp, you never know
verzend
## Send Color command
printf -v ONCOMMAND '%x' $COLOR
SENDCOM="\xC0\x"$ONCOMMAND
verzend
COLOR=`expr $COLOR - 1`
printf -v ONCOMMAND '%x' $COLOR
SENDCOM="\xC0\x"$ONCOMMAND
verzend
###
if [ $DIMMER -eq 27 ]
then
break
fi
DIMMER=`expr $DIMMER + 1`
COLOR=`expr $COLOR - 1`
done
## Now we do the same, but with white and start with a bit of light already
DIMMER=5
while [ $DIMMER > 27 ]
do
printf -v ONCOMMAND '%x' $DIMMER
SENDCOM="\x4E\x"$ONCOMMAND
verzend
## Send Again, it's udp, you never know
verzend
printf -v ONCOMMAND '%x' $WHITECODE
SENDCOM="\x"$ONCOMMAND"\x00" #White
verzend
if [ $DIMMER -eq 27 ]
then
break
fi
DIMMER=`expr $DIMMER + 1`
done
Re: Mi-Light / LimitlessLED / Applamp
Posted: Wednesday 13 May 2015 21:09
by rtna
Is this the same thing as the Applamp Wifi controller? Looks like the Applamp branded box on applamp.nl
Will it work in Domoticz?
http://goo.gl/8P3ccC
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 14 May 2015 10:37
by pvm
Hanss, if i remember correctly synology uses ash not bash as used in your script
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 14 May 2015 17:42
by Hanss
Thats true, but I dont get this bash script to work even when I rewrite it in ash instead of bash .
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 28 May 2015 21:12
by Pergotje
I have very small scripts
Seems to be important to give the good rights to the script.
Bash with putty works, but activate with Domoticz only with
To turn al the lichts on:
Code: Select all
#!/bin/bash
echo -n -e "\x42\x00" | nc -u -q 1 192.168.192.11 8899 # Alles AAN
echo -n -e "\x4E\x3B" | nc -u -q 1 192.168.192.11 8899 # dimm maximum
All off:
Code: Select all
#!/bin/bash
echo -n -e "\x4E\x04" | nc -u -q 1 192.168.192.11 8899 # dimm to low value
echo -n -e "\x41\x00" | nc -u -q 1 192.168.192.11 8899 # switch off
Light yellow collor
Code: Select all
#!/bin/bash
echo -n -e "\x42\x00" | nc -u -q 1 192.168.192.11 8899 # Alles AAN
echo -n -e "\x4E\x04" | nc -u -q 1 192.168.192.11 8899 # dimmen
echo -n -e "\x40\x99" | nc -u -q 1 192.168.192.11 8899 # kleur geeloranje
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 28 May 2015 21:14
by Pergotje
putty
cd /home/pi/domoticz/scripts
nano "script"
script beginnen met:
#!/bin/bash
#
dan de opdracht:
echo ________________
na opslaan testen met bash -script
dan rechten aanpassen met opdracht:
chmod +x "scriptnaam"
script toevoegen in Domoticz:
script://home/pi/domotics/scripts.......
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 28 May 2015 21:15
by Pergotje
This is an textfile that helps me to make the bashscripts.
Not complete
#!/bin/bash
#
ALLES
echo -n -e "\x42\x00" | nc -u -q 1 192.168.192.11 8899 # Alles AAN
echo -n -e "\x41\x00" | nc -u -q 1 192.168.192.11 8899 # Alles UIT
Zone 1
echo -n -e "\x45\x00" | nc -u -q 1 192.168.192.11 8899 # zone 1 AAN
echo -n -e "\x46\x00" | nc -u -q 1 192.168.192.11 8899 # zone 1 UIT
Zone 2
echo -n -e "\x47\x00" | nc -u -q 1 192.168.192.11 8899 # zone 2 AAN
echo -n -e "\x48\x00" | nc -u -q 1 192.168.192.11 8899 # zone 2 UIT
Zone 3
echo -n -e "\x49\x00" | nc -u -q 1 192.168.192.11 8899 # zone 3 AAN
echo -n -e "\x4a\x00" | nc -u -q 1 192.168.192.11 8899 # zone 3 UIT
Zone 4
echo -n -e "\x4b\x00" | nc -u -q 1 192.168.192.11 8899 # zone 4 AAN
echo -n -e "\x4c\x00" | nc -u -q 1 192.168.192.11 8899 # zone 4 UIT
echo -n -e "\xC5\x00" | nc -u -q 1 192.168.192.11 8899 # zone 1 kleur wit
KLEUREN
# 40 xx - color selection (xx = value between 00 and FF, 00 = blue, FF = purple)
echo -n -e "\x4d\x00" | nc -u -q 1 192.168.192.11 8899 # Mode
echo -n -e "\x40\xE5" | nc -u -q 1 192.168.192.11 8899 # PAARS
echo -n -e "\x40\x00" | nc -u -q 1 192.168.192.11 8899 # kleur blauw
echo -n -e "\x40\xAF" | nc -u -q 1 192.168.192.11 8899 # kleur rood
00 Blauw
05
0A
0F Feller blauw
10
20 lichtblauw
30 mintblauw
40 mintgroen
50 Blauwachtig groen
60 Groen
70 lichter groen
80 geel/groen
90 Amber
A0 Geel/oranje
B0
C0 Roze
D0
E0
F0
HELDERHEID
# 4e xx - brightness selection (xx = value between 00 and 1F)
echo -n -e "\x4E\x3B" | nc -u -q 1 192.168.192.11 8899 # dimm maximum
echo -n -e "\x4E\x04" | nc -u -q 1 192.168.192.11 8899 # dimm to low value
CODE
# 43 00 - speed down
# 44 00 - speed up
Re: Mi-Light / LimitlessLED / Applamp
Posted: Sunday 06 September 2015 23:03
by Justintime
I am pulling my hair out....
Got a very simle bash script to setup the Milight in disco mode. (When some doorswitches are triggered)
I have to press three times on the specified button on the remote, so in the script i have set the specific mode.
Code: Select all
#!/bin/bash
#
echo -n -e "\x4D\x77" | nc -u -q 1 192.168.1.239 8899
echo -n -e "\x4D\x77" | nc -u -q 1 192.168.1.239 8899
echo -n -e "\x4D\x77" | nc -u -q 1 192.168.1.239 8899
I have set the rights with "sudo chmod +x yourscript.sh"
Made a virtual switch and set the directory to the script with the "ON" action.
What am i overseeing here? When i execute the bash in Putty the script works.
Mi-Light / LimitlessLED / Applamp
Posted: Sunday 06 September 2015 23:07
by G3rard
Do you have 3 slashes after script in the ON command? So script:/// ?
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 07 September 2015 7:39
by Justintime
G3rard wrote:Do you have 3 slashes after script in the ON command? So script:/// ?
WT... That was it!! Thanks...
In the wiki there is a pic with two dashes. Changed the wiki right away.
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 07 September 2015 8:47
by Justintime
You need a Milight gateway. A Wifi module which can receive and send commands to the Milight rgb modules.
Domoticz send these commands to the Wifi module and the gateway to the rgb modules.
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 07 September 2015 9:37
by Justintime
pepeEL wrote:Justintime wrote:You need a Milight gateway. A Wifi module which can receive and send commands to the Milight rgb modules.
Domoticz send these commands to the Wifi module and the gateway to the rgb modules.
Domoticz send to Gateway and gateway send to receive ?
But i look in domoticz and in hardware not found config to Mi Light. How i must configure it ?
And this package is ok whichc i show on aliiexpress ?
http://www.aliexpress.com/item/4pcs-RGB ... 5,201409_1
Controller is in package.
I connect controller to my WIFI or by USB to Raspberry with Domoticz ?
The set you mention is complete.
First you have to setup the Milight controller/gateway as posted here:
http://www.milight.com/support/#A3 for convenience you can use the program limitless bridge 5.0.
http://www.limitlessled.com/download/LimitlessLEDv5.zip
Fill in the credentials and be sure to set the controller in STA mode.
In domoticz you must add the Limitless app device and fill in the IP adres. Set devices to accept new hardware and go to setup in Hardware and select RGBW oR RGB. ANd new switches will be made.
The USB on the Milight gateway is only for powering not for communication.
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 07 September 2015 13:33
by remb0
pepeEL wrote:Ahhh ok
THANKS
Maybe developer should correct in domoticz in HARDWARE from:
Limitless/AppLamp with LAN interface
to
Mi Light/Limitless/AppLamp with LAN/WiFi interface
you already pushed an update in github. nice;)
Re: Mi-Light / LimitlessLED / Applamp
Posted: Sunday 10 January 2016 18:58
by deennoo
Hi,
Just got my first Mi-light set.
What a shame !!!!
The widget is not complete there is no slider to set color and intensity like zwave ?
How to solve this ?
Re: Mi-Light / LimitlessLED / Applamp
Posted: Sunday 10 January 2016 21:23
by bizziebis
Did you change the device type to Dimmer?
Re: Mi-Light / LimitlessLED / Applamp
Posted: Monday 11 January 2016 5:43
by deennoo
Of course not !
Problème solve
Envoyé de mon iPhone en utilisant Tapatalk
Re: Mi-Light / LimitlessLED / Applamp
Posted: Thursday 14 January 2016 8:12
by deennoo
Intégration with dimmer is really great.
Is there a way to get the night mode without script or Android app ?
Re: Mi-Light / LimitlessLED / Applamp
Posted: Tuesday 19 January 2016 12:19
by deennoo
Just update with beta 2.4237 !
Great Job !! thx very much !
- Capture.JPG (37.24 KiB) Viewed 24273 times
Just night mode is missing !
Looks like you put the disco script on domoticz code?
How to had more effects and rolling menu ? with just Effect on and Effect Off ?