Led Strips Controlled with OpenHAB2

Paul,

I’m not using the H801 RGBWW with an RGBWW LED strip, so I don’t have any items/rules that use color.

Since I have four separate warm white LED strips that are controlled by two H801 WiFi LED controllers, I chose to use each of the two white channels on two controllers to control my four LED strips. Two of the segments are on one side of the kitchen, which get their power from a conveniently located outlet in a cabinet above the cooking hob exhaust hood. The other two LED segments are on the other side of the kitchen and get their power from an outlet behind the refrigerator.

// Groups:
Group                   gLts       "Lights"                     <light>

Group:Dimmer:MAX        gSSDms     "Automatic Sunset Dimmers"   <light>
Group:Switch:OR(ON,OFF) gSSSws     "Automatic Sunset Switches"  <light>

Group                   gKT        "Kitchen"                    <pan>
Group:Dimmer:MAX        gKTDimmer  "Kitchen Cabinets [%.1f %%]" <pan> ["Lighting"]

// Kitchen Lights
Dimmer  OvenCabinets   "Oven Cabinets"         (gKT,gLts,gKTDimmer,gSSDms)  ["Lighting"]  { mqtt=">[karns:cmd/wifi-dmr01/Dimmer:command:*:default],<[karns:stat/wifi-dmr01/RESULT:state:JSONPATH($.Dimmer)]" }
Dimmer  FridgeCabinets "Refrigerator Cabinets" (gKT,gLts,gKTDimmer,gSSDms)  ["Lighting"]  { mqtt=">[karns:cmd/wifi-dmr02/Dimmer:command:*:default],<[karns:stat/wifi-dmr02/RESULT:state:JSONPATH($.Dimmer)]" }

Note that I made some slight modifications to the Sonoff-Tasmota sourcecode, the SUB_PREFIX #define was “cmnd”, I changed it to “cmd”. This also required changing occurrences of the string “cmnd” in webserver.ino to “cmd”. I also changed the PROJECT #define from “sonoff” to “wifi-dmr”.

The following two snippets were copied from the console of one of the LED dimmers:

13:24:07 RSLT: Receive topic cmd/wifi-dmr01/Dimmer, data size 1, data 0
13:24:07 RSLT: DataCb Group 0, Index 1, Type DIMMER, Data 0 (0)
13:24:07 MQTT: stat/wifi-dmr01/RESULT = {"POWER":"OFF"}
13:24:07 MQTT: stat/wifi-dmr01/POWER = OFF
13:24:07 MQTT: stat/wifi-dmr01/RESULT = {"POWER":"OFF", "Dimmer":0, "Color":"0000"}

10:26:31 RSLT: Receive topic cmd/wifi-dmr01/Dimmer, data size 3, data 100
10:26:31 RSLT: DataCb Group 0, Index 1, Type DIMMER, Data 100 (100)
10:26:31 MQTT: stat/wifi-dmr01/RESULT = {"POWER":"ON"}
10:26:31 MQTT: stat/wifi-dmr01/POWER = ON
10:26:31 MQTT: stat/wifi-dmr01/RESULT = {"POWER":"ON", "Dimmer":100, "Color":"FFFF"}
2 Likes