Just a question from my side. Did you flashed your ZBMini L2 with Tasmota ? As far as I know there are two versions of the ZBMini L2.
Zigbee and WiFi via EWLink.
I’m using the Zigbee-Version with Z2M which works with MQTT. And I have no problems with the device, but it’s also new for me.
As said from @DarkoG if you’re using the Tasmota-Syntax your Parameters of your" Thing" should look like he said.
An example(Tasmota) for a switch from my textual SetUp looks:
Thing mqtt:topic:danny:s2004 "Sonoff S20 04" (mqtt:broker:danny ) @ "MQTT2" [
availabilityTopic="tele/schaltdose04/LWT",
payloadNotAvailable="Offline",
payloadAvailable= "Online"
]
{
Channels:
Type switch : power "Power " [ stateTopic="stat/schaltdose04/POWER", commandTopic="cmnd/schaltdose04/POWER" ]
Type number : rssi "WiFi Signal Strength" [ stateTopic="tele/schaltdose04/STATE", transformationPattern="JSONPATH:$.Wifi.RSSI"]
Type string : version "Firmware Version " [ stateTopic="stat/schaltdose04/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Version"]
Type switch : reachable "Reachable" [ stateTopic="tele/schaltdose04/LWT", on="Online", off="Offline" ]
Type string : hardware "Chip Set " [ stateTopic="stat/schaltdose04/STATUS2", transformationPattern="JSONPATH:$.StatusFWR.Hardware"]
Type string : ipaddress "IP Address " [ stateTopic="stat/schaltdose04/STATUS5", transformationPattern="JSONPATH:$.StatusNET.IPAddress"]
Type string : grouptop "Group Topic " [ stateTopic="stat/schaltdose04/STATUS1", transformationPattern="JSONPATH:$.StatusPRM.GroupTopic"]
}
As I’m using Z2M my MQTT-Thing for the ZBMini L2 looks:
//-------------------------------------------------ZB Mini L2 no neutral required--------------------------------------------------------------------------------------------------
Thing mqtt:topic:danny:zbminil201 "Sonoff ZBMini L2 01" (mqtt:broker:danny ) @ "zigbee2mqtt"
[ availabilityTopic="zigbee2mqtt/zbminil2_01/availability", transformationPattern="JSONPATH:$.state", payloadNotAvailable="offline", payloadAvailable="online" ]
{
Channels:
Type switch : state "ZBMiniL2 01 Ein/Aus" [ stateTopic="zigbee2mqtt/zbminil2_01/state",commandTopic="zigbee2mqtt/zbminil2_01/set/state", on="ON", off="OFF" ]
Type string : pob "ZBMiniL2 01 Power on Behavior" [ stateTopic="zigbee2mqtt/zbminil2_01/power_on_behavior" ]
Type number : linkquality "ZBMiniL2 01 Empfangsstärke LQI" [ stateTopic="zigbee2mqtt/zbminil2_01", transformationPattern="JSONPATH:$.linkquality" ]
Type switch : reachable "ZBMiniL2 01 Reachable" [ stateTopic="zigbee2mqtt/zbminil2_01/availability", transformationPattern="JSONPATH:$.state", on="online", off="offline" ]
Type datetime : lastseen "ZBMiniL2 01 Letzter Handshake" [ stateTopic="zigbee2mqtt/zbminil2_01/last_seen" ]
}
I use it via UI
and via Soft-Buttons (SNZB01P - handled by a Rule). And of course with the normal Wall-Switch.
Cheers - Peter