Code Monkey home page Code Monkey logo

Comments (12)

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

@m-carter1 Could you please enable debug mode in plugin settings to see more info.
And just FYI plugin version 0.0.10 is already available

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024

Now updated to v0.0.10.0 still same issue, I'm not seeing much else with verbose logging on, just lots of heartbeat messages

2018-10-27 17:46:13.095 Status: (Zigbee2MQTT) Stopping threads.
2018-10-27 17:46:13.095 Status: (Zigbee2MQTT) Stopped.
2018-10-27 17:46:13.095 Status: (Zigbee2MQTT) Started.
2018-10-27 17:46:13.291 Status: (Zigbee2MQTT) Entering work loop.
2018-10-27 17:46:13.292 Status: (Zigbee2MQTT) Initialized version 0.0.10
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) 'onMessage' failed 'KeyError'.
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) ----> Line 200 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) ----> Line 125 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMessage
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) ----> Line 126 in '/home/pi/domoticz/plugins/zigbee2mqtt/mqtt.py', function onMessage
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) ----> Line 159 in '/home/pi/domoticz/plugins/zigbee2mqtt/plugin.py', function onMQTTPublish
2018-10-27 17:46:13.501 Error: (Zigbee2MQTT) ----> Line 26 in '/home/pi/domoticz/plugins/zigbee2mqtt/device_storage.py', function update

2018-10-27 17:46:23.316 (Zigbee2MQTT) Heartbeating... 2018-10-27 17:46:23.316 (Zigbee2MQTT) MqttClient::Ping 2018-10-27 17:46:23.316 (Zigbee2MQTT) Sending 2 bytes of data 2018-10-27 17:46:23.316 (Zigbee2MQTT) c0 00 .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. �.

from domoticz-zigbee2mqtt-plugin.

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

What Domoticz version are you using?

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024

Version: 4.10110
Build Hash: de9a1692
Compile Date: 2018-10-27 13:24:50
dzVents Version: 2.4.7
Python Version: 3.4.2 (default, Sep 26 2018, 07:50:08) [GCC 4.9.2]

from domoticz-zigbee2mqtt-plugin.

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

Could you please share your zigbee2mqtt server log as well

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024
-- Logs begin at Sat 2018-10-27 16:22:25 UTC. --
Oct 27 17:28:38 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:28:38 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001bd0e35', payload: '{"battery":"99.00","voltage":3012,"linkquality":73,"device":{"ieeeAddr":"0x00158d0001bd0e35","friendlyName":"0x00158d0001bd0e35","type":"EndDevice","nwkAddr":46134,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch","status":"online"}}'
Oct 27 17:41:28 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:41:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001dc028b', payload: '{"occupancy":true,"linkquality":110,"device":{"ieeeAddr":"0x00158d0001dc028b","friendlyName":"0x00158d0001dc028b","type":"EndDevice","nwkAddr":57809,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_motion","status":"online"}}'
Oct 27 17:42:58 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:42:58 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001dc028b', payload: '{"occupancy":false,"linkquality":110,"device":{"ieeeAddr":"0x00158d0001dc028b","friendlyName":"0x00158d0001dc028b","type":"EndDevice","nwkAddr":57809,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_motion","status":"online"}}'
Oct 27 17:45:59 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:45:59 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"devices","message":[{"ieeeAddr":"0x00158d0001c30620","type":"EndDevice","friendly_name":"0x00158d0001c30620"},{"ieeeAddr":"0x00158d0001bd0e35","type":"EndDevice","model":"WXKG01LM","friendly_name":"0x00158d0001bd0e35"},{"ieeeAddr":"0x00158d0001bb6469","type":"EndDevice","model":"SJCGQ11LM","friendly_name":"0x00158d0001bb6469"},{"ieeeAddr":"0x00158d0001dc028b","type":"EndDevice","model":"RTCGQ01LM","friendly_name":"0x00158d0001dc028b"},{"ieeeAddr":"0x00158d000222e0b7","type":"EndDevice","friendly_name":"0x00158d000222e0b7"}]}'
Oct 27 17:46:13 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:46:13 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"devices","message":[{"ieeeAddr":"0x00158d0001c30620","type":"EndDevice","friendly_name":"0x00158d0001c30620"},{"ieeeAddr":"0x00158d0001bd0e35","type":"EndDevice","model":"WXKG01LM","friendly_name":"0x00158d0001bd0e35"},{"ieeeAddr":"0x00158d0001bb6469","type":"EndDevice","model":"SJCGQ11LM","friendly_name":"0x00158d0001bb6469"},{"ieeeAddr":"0x00158d0001dc028b","type":"EndDevice","model":"RTCGQ01LM","friendly_name":"0x00158d0001dc028b"},{"ieeeAddr":"0x00158d000222e0b7","type":"EndDevice","friendly_name":"0x00158d000222e0b7"}]}'
Oct 27 17:49:18 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:49:18 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001dc028b', payload: '{"occupancy":true,"linkquality":115,"device":{"ieeeAddr":"0x00158d0001dc028b","friendlyName":"0x00158d0001dc028b","type":"EndDevice","nwkAddr":57809,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_motion","status":"online"}}'
Oct 27 17:50:48 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 17:50:48 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001dc028b', payload: '{"occupancy":false,"linkquality":115,"device":{"ieeeAddr":"0x00158d0001dc028b","friendlyName":"0x00158d0001dc028b","type":"EndDevice","nwkAddr":57809,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_motion","status":"online"}}'
Oct 27 18:07:03 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 18:07:03 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001bb6469', payload: '{"battery":"99.00","voltage":3005,"linkquality":89,"device":{"ieeeAddr":"0x00158d0001bb6469","friendlyName":"0x00158d0001bb6469","type":"EndDevice","nwkAddr":49585,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_wleak.aq1","status":"online"}}'
Oct 27 18:20:28 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 18:20:28 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001dc028b', payload: '{"occupancy":false,"linkquality":110,"device":{"ieeeAddr":"0x00158d0001dc028b","friendlyName":"0x00158d0001dc028b","type":"EndDevice","nwkAddr":57809,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_motion","status":"online"},"battery":"99.00","voltage":3025}'
Oct 27 18:28:51 raspberrypi npm[684]:   zigbee2mqtt:info 2018-10-27 18:28:51 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001bd0e35', payload: '{"battery":"99.00","voltage":3012,"linkquality":84,"device":{"ieeeAddr":"0x00158d0001bd0e35","friendlyName":"0x00158d0001bd0e35","type":"EndDevice","nwkAddr":46134,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch","status":"online"}}'

from domoticz-zigbee2mqtt-plugin.

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

In your log
Oct 27 17:46:13 raspberrypi npm[684]: zigbee2mqtt:info 2018-10-27 17:46:13 MQTT publish, topic: 'zigbee2mqtt/bridge/log', payload: '{"type":"devices","message":[{"ieeeAddr":"0x00158d0001c30620","type":"EndDevice","friendly_name":"0x00158d0001c30620"},{"ieeeAddr":"0x00158d0001bd0e35","type":"EndDevice","model":"WXKG01LM","friendly_name":"0x00158d0001bd0e35"},{"ieeeAddr":"0x00158d0001bb6469","type":"EndDevice","model":"SJCGQ11LM","friendly_name":"0x00158d0001bb6469"},{"ieeeAddr":"0x00158d0001dc028b","type":"EndDevice","model":"RTCGQ01LM","friendly_name":"0x00158d0001dc028b"},{"ieeeAddr":"0x00158d000222e0b7","type":"EndDevice","friendly_name":"0x00158d000222e0b7"}]}'

I see that first device in the list:
{"ieeeAddr":"0x00158d0001c30620","type":"EndDevice","friendly_name":"0x00158d0001c30620"}
doesn't have model attribute which is currently required. Do you know what this device is?

I will update plugin to skip such devices

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024

It's a Xiaomi MiJia wireless switch WXKG01LM, it's on the supported devices list.

Nothing was showing in the logs when pressing the button so i've re-added it and now it shows in the logs. But still getting the same error for the plugin. Is there any way i can add a model attribute in for it?

Log after after re-adding:
Oct 27 20:23:37 raspberrypi npm[1489]: zigbee2mqtt:info 2018-10-27 20:23:37 MQTT publish, topic: 'zigbee2mqtt/0x00158d0001c30620', payload: '{"click":"single","linkquality":144,"device":{"ieeeAddr":"0x00158d0001c30620","friendlyName":"0x00158d0001c30620","type":"EndDevice","nwkAddr":806,"manufId":4151,"manufName":"LUMI","powerSource":"Battery","modelId":"lumi.sensor_switch","status":"online"}}'

from domoticz-zigbee2mqtt-plugin.

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

@m-carter1 could you please check with 0.0.11 version

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024

The errors have now gone from the logs with 0.0.11 version.

However, i'm not seeing any Zigbee2MQTT in the devices list, am I missing something?

2018-10-28 11:50:53.617 Status: (Zigbee2MQTT) Started. 2018-10-28 11:50:53.828 Status: (Zigbee2MQTT) Entering work loop. 2018-10-28 11:50:53.829 Status: (Zigbee2MQTT) Initialized version 0.0.11 2018-10-28 11:50:54.036 (Zigbee2MQTT) Received available devices list from bridge

from domoticz-zigbee2mqtt-plugin.

stas-demydiuk avatar stas-demydiuk commented on June 18, 2024

Try to trigger device to send some status update, plugin should create device in domoticz once it receive such

from domoticz-zigbee2mqtt-plugin.

m-carter1 avatar m-carter1 commented on June 18, 2024

That did the trick. It's working well now.

Thanks for your help!

from domoticz-zigbee2mqtt-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.