Logo
Brilex 400ml Oil Diffuser Aromatherapy Diffuser
EU
Brilex 400ml Oil Diffuser

Available from:
Amazon.de






Flashed with:
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

Template

{"NAME":"BrilexDiffuser","GPIO":[255,255,255,255,255,255,0,0,255,255,255,255,255],"FLAG":0,"BASE":54}

Tuya-Convert might not be possible for this device if the manufacturer started using newest Tuya firmware since this template was published. Instead you can likely serial flash Tasmota without soldering with a flashing jig, if the device is easily opened.

Scripting

To use the script, you have to compile Tasmota with Scripting enabled. A precompiled binary from development branch is availiable here.

Scripting

You can use scripting instead of rules for a better implementation.

To use the script, you have to compile Tasmota with Scripting enabled. A precompiled binary from development branch is availiable here.

>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")