Hello there,
I’ve dived into the deep end, and require some assistance making sense of how to link MQTT things and make them work…
A little background, after hearing that the H801 LED modules provided decent PWM dimming, both with RGB+W+WW, as well as being able to function as a 5 channel White controller as well, I ordered 4 of them to replace the various “MagicHome” LED controllers I have around the house.
I’ve soldered the pin headers, used a 3.3 volt FTDI controller to initially flash one of them with Tasmota successfully.
I’ve connected it to my WiFi, and set up all 5 outputs as individual channels (that appear to work) from it’s own web interface, and I’ve set it’s Topic to: tasmota_ul_office through it’s interface as well.
Now I’ve also set up Mosquitto, I’ve gotten the MQTT Binding installed, I’ve also gotten the Broker configured through OpenHAB 3… Although I’m running into issues with getting the things set up, as well as how to make sense of how the topic works, as I have been attempting to work on this all day without success of being able to turn it on/off or dim it through OpenHAB.
I initially tried to follow
[OH3] MQTT Setup and Configuration and
[OH3] Tasmota relay via MQTT (Sonoff Basic with optional DHT22)
although was unsuccessful during the second tutorial, and then moved the configurations to things files to attempt to keep it more organized, and easier to visualize what was happening although am unsure how to proceed…
Here are my configurations
mqttbroker.things:
mqtt:broker:mosquitto [
host="192.168.1.27",
secure=false,
port=1883,
username="openhab",
password="password"
]
mqtt.things:
Bridge mqtt:broker:mosquitto "MQTT Broker" @ "Networking Closet" [
host="192.168.1.27",
secure=false,
port=1883,
username="openhab",
password="password" ]
{
Thing topic OfficeLED1 "Office LED 1" @ "Office" {
Channels:
Type switch : led1 "Switch 1 Power" [ stateTopic="stat/tasmota_ul_office/POWER1", commandTopic="cmnd/tasmota_ul_office/POWER1" ]
}
}
And just to attempt to make a dumb switch to toggle it on and off to start (although I’d like to have dimming control)
switch.items:
Dimmer A_MySwitch_Dim "A H801 Dimmer" (UL_Office, Lights) {mqtt=">[broker:cmnd/OfficeLED1/DIMMER:command:*:default],<[broker:stat/OfficeLED1/RESULT:state:JSONPATH($.Dimmer)]",autoupdate="false"}
Switch A_MySwitch "A H801 Switch" (UL_Office, Lights) {mqtt=">[broker:cmnd/OfficeLED1/POWER:command:*:default],<[broker:stat/OfficeLED1/RESULT:state:JSONPATH($.POWER)]",autoupdate="false"}
Ultimately I’d like the ability to turn each channel on and off, as well as dim them via rules like I’ve set up with my TPLink Kasa dimmers. If anyone could assist in showing me what I’m doing wrong, I would appreciate it immensely.
Thank you for your time!