Logo
Brilex 400ml Aroma Diffuser
EU
Brilex 400ml

Available from:
Amazon.de







Install method:
Tuya-Convert

GPIO #Component
GPIO00 User
GPIO01 User
GPIO02 User
GPIO03 User
GPIO04 User
GPIO05 User
GPIO09 None
GPIO10 None
GPIO12 User
GPIO13 User
GPIO14 User
GPIO15 User
GPIO16 User
FLAG None
Configuration (old format, will be converted to new template when applied)
{"NAME":"BrilexDiffuser","GPIO":[255,255,255,255,255,255,0,0,255,255,255,255,255],"FLAG":0,"BASE":54}
WARNING: New Tuya devices have replaced their Wi-Fi module with one incompatible with Tasmota!!!
Tuya-Convert might not be possible for this device since the template was added (2020-04-26).

Scripting

To use the script, you have to compile Tasmota with Scripting enabled. Download unofficial precompiled firmware from development branch.

>D
color=""
col1=""
led=0
mled=0
p:red=0
p:green=0
p:blue=0

>E
mled=TuyaReceived#DpType4Id6
led=TuyaReceived#DpType1Id5
if chg[led]>0 {
=>TuyaSend1 5,%0led%
=>publish stat/%topic%/RESULT {"Script":">led=%0led%"}
}
if chg[mled]>0 {
=>TuyaSend4 6,%0mled%
=>publish stat/%topic%/RESULT {"Script":">cycle=%0mled%"}
}

>F  
color=hn(red)+hn(green)+hn(blue)
if color!=col1 {
col1=color
mled=0
led=1
=>TuyaSend3 8,%color%64646464
=>publish stat/%topic%/RESULT
{"Script":">color=%color%"}
=>publish stat/%topic%/RESULT {"Script":">red=%0red%"}
=>publish stat/%topic%/RESULT {"Script":">green=%0green%"}
=>publish stat/%topic%/RESULT {"Script":">blue=%0blue%"}
}

>W
sl(0 255 red "0" "Red" "255")
sl(0 255 green "0" "Green" "255")
sl(0 255 blue "0" "Blue" "255")
bu(led "Led on" "LED off")
bu(mled "Cycle on" "Cycle off")