Xiaomi Wall Plug - zigbee2MQTT - paired, but how to proceed

  • Platform information:
    • Hardware: RasberryPi 4
    • OS: openhabian
    • Java Runtime Environment:
    • openHAB version: 2.5.5
  • Issue of the topic: Stuck after Paring zigbee wall plug - how to integrate into paper UI
    Hi all,

I have the ZNCZ04LM And a Zigbee USB Sniffer. I can view the wall plug in MQTT.fx (or in the log) when pushing the swutch at the wall plug. Following lines in the log:

2020-06-28 20:56:01.089 [WARN ] [ab.binding.mqtt.generic.ChannelState] - Command '{"state":"OFF","linkquality":10,"power":0,"device":{"friendlyName":"steckdose","model":"ZNCZ04LM","ieeeAddr":"0x04cf8cdf3c75aaac","networkAddress":47510,"type":"Router","manufacturerID":4447,"manufacturerName":"LUMI","powerSource":"Mains (single phase)","applicationVersion":22,"stackVersion":2,"zclVersion":3,"hardwareVersion":1,"dateCode":"09-06-2019"}}' not supported by type 'OnOffValue': No enum constant org.eclipse.smarthome.core.library.types.OnOffType.{"state":"OFF","linkquality":10,"power":0,"device":{"friendlyName":"steckdose","model":"ZNCZ04LM","ieeeAddr":"0x04cf8cdf3c75aaac","networkAddress":47510,"type":"Router","manufacturerID":4447,"manufacturerName":"LUMI","powerSource":"Mains (single phase)","applicationVersion":22,"stackVersion":2,"zclVersion":3,"hardwareVersion":1,"dateCode":"09-06-2019"}}

I couldnt find a tutorial/guide how to proceed from here. I exect to add it as thing in PaperUI, but it is not found with a MQTTBinding. Is it the correct way? At the end, I want to create rules, when the wall plug shall be switched on or off…


Turn on the Homeassistant mode of zigbee2mqtt and I think the experimental, and it gets found. (Binding looks for homeassistant/# topic.

Also there’s a bunch of tutorials for doing it manually…depending on if you move the base topic from zigbee2mqtt away from it’s defaults.

thanks for the swift and helpful replay. It is now listed as thing, but it is always offline. I have to digg why this is now the case, as it publishes to mqtt.fx but not to paperui.


This is the outpout after restart.

2020-06-29 14:01:27.505 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_cc2531:919ea388' changed from UNINITIALIZED to INITIALIZING
2020-06-29 14:01:27.567 [hingStatusInfoChangedEvent] - 'zigbee:coordinator_cc2531:919ea388' changed from INITIALIZING to UNKNOWN
2020-06-29 14:01:29.171 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from UNINITIALIZED to INITIALIZING
2020-06-29 14:01:29.199 [hingStatusInfoChangedEvent] - 'mqtt:systemBroker:embedded-mqtt-broker' changed from INITIALIZING to ONLINE
2020-06-29 14:01:29.415 [hingStatusInfoChangedEvent] - 'mqtt:topic:fd9b1d0d' changed from UNINITIALIZED to INITIALIZING
2020-06-29 14:01:29.536 [hingStatusInfoChangedEvent] - 'mqtt:topic:fd9b1d0d' changed from INITIALIZING to ONLINE
2020-06-29 14:01:29.576 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant_zigbee2mqtt_5F0x04cf8cdf3c75aaac:embedded-mqtt-broker:zigbee2mqtt_5F0x04cf8cdf3c75aaac' changed from UNINITIALIZED to INITIALIZING
2020-06-29 14:01:29.595 [hingStatusInfoChangedEvent] - 'mqtt:homeassistant_zigbee2mqtt_5F0x04cf8cdf3c75aaac:embedded-mqtt-broker:zigbee2mqtt_5F0x04cf8cdf3c75aaac' changed from INITIALIZING to OFFLINE (GONE): No response from the device yet

Do you have an idea, where to search for the error?

If it had taken me this long I would have manually created a thing by this point. There’s a bunch of topics where they post a thing definition.

Have you looked at what the homeassistant/# topic looks like in mqtt?
Anything with mqtt, and you should have some mqtt tools available, if nothing else, so you can see what the device is putting out, and if you need it, to trick openhab into changing the state when the device is not playing ball.