Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Hardware Overview

SpecDetails
ModelZJ-WFMN-A V1.1
CHIPESP8285
Color SupportRGB
IR ReceiverYes



Image RemovedImage RemovedImage AddedImage Added


Flashing Tasmota

Get the board in firmware upload mode by grounding GPIO-0.

Image Added

From the Arduino IDE, set your board as follows. This is an ESP8285 board.

Image Added

Tasmota Setup

Module Configuration

ZJ-WFMN-A V1.1 (RGB version) alias Arilux LC01

Automatic configuration: (No IR Support)

FieldValueFunction
Module type37 Arilux LC01Module type


For IR Functionality: 

FieldValueFunction
Module type18 GenericModule type
GPIO537 PWM1RED
GPIO1238 PWM2GREEN
GPIO1339 PWM3

BLUE

GPIO451 IRrecvIR Receiver


IR Remote Rules

Copy this Code to your console to use the 24 Button IR Remote

Code Block
rule1
on IrReceived#Data=0x00FFB04F do power1 on endon
on IrReceived#Data=0x00FFF807 do power1 off endon
on IrReceived#Data=0x00FF906F do dimmer + endon
on IrReceived#Data=0x00FFB847 do dimmer - endon
on IrReceived#Data=0x00FFB24D do scheme 0 endon
on IrReceived#Data=0x00FF00FF do scheme 4 endon
on IrReceived#Data=0x00FF58A7 do scheme 2 endon
on IrReceived#Data=0x00FF30CF do scheme 3 endon

...

Code Block
rule3
on IrReceived#Data=0x00FF28D7 do color2 #003328 endon
on IrReceived#Data=0x00FF8877 do color2 #0000FF endon
on IrReceived#Data=0x00FF6897 do color2 #0A0033 endon
on IrReceived#Data=0x00FF20DF do color2 #140033 endon
on IrReceived#Data=0x00FF708F do color2 #140033 endon
on IrReceived#Data=0x00FFF00F do color2 #280033 endon
on IrReceived#Data=0x00FFA857 do color2 #FFFFFF endon

and then activate the rules

Code Block
Backlog rule1 1; rule2 1; rule3 1


Homebridge Integration



Code Block
{
    "accessory": "mqttthing",
    "type": "lightbulb",
    "name": "<name of lightbulb>",
    "url": "<url of MQTT server (optional)>",
    "username": "<username for MQTT (optional)>",
    "password": "<password for MQTT (optional)>",
    "caption": "<label (optional)>",
    "topics":
    {
        "getOn": 	        "<topic to get the status>",
        "setOn": 	        "<topic to set the status>",
        "getBrightness": 	"<topic to get the brightness (optional)>",
        "setBrightness": 	"<topic to set the brightness (optional - if dimmable)>",
        "getHue": 	        "<topic to get the hue (optional)>",
        "setHue": 	        "<topic to set the hue (optional - if coloured)>",
        "getSaturation": 	"<topic to get the saturation (optional)>",
        "setSaturation": 	"<topic to set the saturation (optional - if coloured)>",
        "getHSV":           "<in HSV mode, topic to get comma-separated hue, saturation and value>",
        "setHSV":           "<in HSV mode, topic to set comma-separated hue, saturation and value>",
        "getRGB":           "<in RGB mode, topic to get comma-separated red, green, blue>",
        "setRGB":           "<in RGB mode, topic to set comma-separated red, green, blue>",
        "getRGBW":          "<in RGBW mode, topic to get comma-separated red, green, blue, white>",
        "setRGBW":          "<in RGBW mode, topic to set comma-separated red, green, blue, white>",
        "getRGBWW":         "<in RWGWW mode, topic to get comma-separated red, green, blue, warm_white, cold_white>",
        "setRGBWW":         "<in RWGWW mode, topic to set comma-separated red, green, blue, warm_white, cold_white>",
        "getWhite":         "<topic to get white level (0-255)> - used with getRGB for RGBW with separately-published white level",
        "setWhite":         "<topic to set white level (0-255)> - used with setRGB for RGBW with separately-published white level",
        "getColorTemperature": "<topic to report color temperature (optional)>",
        "setColorTemperature": "<topic to control color temperature (optional)>"
    },
    "integerValue": "true to use 1|0 instead of true|false default onValue and offValue",
    "onValue": "<value representing on (optional)>",
    "offValue": "<value representing off (optional)>",
    "hex": "true to format combined RGB/RGBW in hexadecimal instead of as comma-separated decimals",
    "hexPrefix": "format combined RGB/RGBW in hexadecimal with specified prefix (typically '#') instead of as comma-separated decimals",
    "turnOffAfterms": "<milliseconds after which to turn off automatically (optional)>",
    "warmWhite": "in RGBWW mode, RGB value of warm white in format red,green,blue (optional)",
    "coldWhite": "in RGBWW mode, RGB value of cold white in format red,green,blue (optional)"
}


Code Block
        {
            "accessory": "mqttthing",
            "type": "lightbulb",
            "name": "rgb1",
            "url": "http://192.168.1.60:1883",
            "username": "homebridge",
            "password": "pass",
            "topics":
            {
                "getOn":                "stat/rgb1/POWER",
                "setOn":                "cmnd/rgb1/POWER",
                "getBrightness":        {
                                          "topic": "stat/rgb1/RESULT",
                                          "apply": "return JSON.parse(message).Dimmer;"
                                        },
                "setBrightness":        "cmnd/rgb1/Dimmer",
                "getRGB":               {
                                          "topic": "stat/rgb1/RESULT",
                                          "apply": "return JSON.parse(message).Color;"
                                        },
                "setRGB":               "cmnd/rgb1/Color"
            },
            "onValue": "ON",
            "offValue": "OFF",
            "startPub":
            {
                "cmnd/rgb1/POWER": "",
                "cmnd/rgb1/Dimmer": "",
				"cmnd/rgb1/Color": ""
            },
            "confirmationPeriodms": 1000
        }


Other Commands:


Fade - ON/OFF

http://192.168.1.176/cm?&cmnd=Fade%20ON


Speed 0-40

http://192.168.1.176/cm?&cmnd=Speed%2040


Scheme 0-4

http://192.168.1.176/cm?&cmnd=Scheme%205


Issuing Commands over HTTP


http://192.168.1.176/cm?&user=admin&password=XXX&cmnd=Color

http://192.168.1.176/cm?&user=admin&password=XXX&cmnd=POWER ON

References