koptserg / motion

DIY Zigbee CC2530 Motion sensor (AM312/ AM412/ BS312/ BS412), Temperature /Humidity /Pressure sensor (BME280), Ambient Light sensor (BH1750), Magnet sensor, Light Dependent resistor (LDR)
54 stars 16 forks source link

Zigbee2mqtt not working anymore in HA #9

Open andyg2002 opened 8 months ago

andyg2002 commented 8 months ago

Hello, I am geetting error in HA Zigbee2mqtt at start since a few versions of Zigbee2mqtt:

Zigbee2MQTT:error 2024-01-20 17:21:19: Failed to load external converter file 'DIYRuZ_Motion_HA.js' (Cannot read properties of undefined (reading 'battery')) Zigbee2MQTT:error 2024-01-20 17:21:19: Probably there is a syntax error in the file or the external converter is not compatible with the current Zigbee2MQTT version Zigbee2MQTT:error 2024-01-20 17:21:19: Note that external converters are not meant for long term usage, it's meant for local testing after which a pull request should be created to add out-of-the-box support for the device

It worked in the past but now I am always getting this error. All other Zigbee-devices are working well, it seems that its only related to this Coverter. When i manually add the Extension I am also getting following error:


Cannot read properties of undefined (reading 'battery')

Request
'zigbee2mqtt/bridge/request/extension/save' failed with error: 'Cannot read properties of undefined (reading 'battery')'

Is there any solution for that? Thank you in advance.