Mi-Light / LimitlessLED / Applamp

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
Pergotje
Posts: 7
Joined: Sunday 05 April 2015 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Mi-Light / LimitlessLED / Applamp

Post 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?
Last edited by Pergotje on Saturday 09 May 2015 15:32, edited 2 times in total.
Pergotje
Posts: 7
Joined: Sunday 05 April 2015 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by Pergotje »

I also work with the bash scripts and that works fine. But therefore its not necessary to add the device.
Hanss
Posts: 35
Joined: Friday 01 May 2015 12:13
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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
rtna
Posts: 17
Joined: Monday 06 April 2015 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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
pvm
Posts: 550
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: 4.10538
Location: NL
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by pvm »

Hanss, if i remember correctly synology uses ash not bash as used in your script
Synology NAS, slave PI3, ZWave (Fibaro), Xiaomi zigbee devices, BTLE plant sensor, DzVents, Dashticz on tablet, Logitech Media Server
Hanss
Posts: 35
Joined: Friday 01 May 2015 12:13
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by Hanss »

Thats true, but I dont get this bash script to work even when I rewrite it in ash instead of bash . :-(
Pergotje
Posts: 7
Joined: Sunday 05 April 2015 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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

Code: Select all

chmod +x "scriptnaam"
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
Pergotje
Posts: 7
Joined: Sunday 05 April 2015 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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.......
Pergotje
Posts: 7
Joined: Sunday 05 April 2015 12:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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.
User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

Mi-Light / LimitlessLED / Applamp

Post by G3rard »

Do you have 3 slashes after script in the ON command? So script:/// ?
Not using Domoticz anymore
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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.
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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.
Justintime
Posts: 228
Joined: Thursday 21 May 2015 9:08
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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.
User avatar
remb0
Posts: 499
Joined: Thursday 11 July 2013 22:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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;)
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post 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 ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
User avatar
bizziebis
Posts: 182
Joined: Saturday 19 October 2013 14:00
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8805
Location: The Netherlands
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by bizziebis »

Did you change the device type to Dimmer?
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by deennoo »

Of course not !
Problème solve


Envoyé de mon iPhone en utilisant Tapatalk
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by deennoo »

Intégration with dimmer is really great.

Is there a way to get the night mode without script or Android app ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: Mi-Light / LimitlessLED / Applamp

Post by deennoo »

Just update with beta 2.4237 !

Great Job !! thx very much !


Capture.JPG
Capture.JPG (37.24 KiB) Viewed 24284 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 ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest