Dirnei / node-red-contrib-zigbee2mqtt-devices

Node-red nodes for controlling and managing zigbee devices managed by zigbee2mqtt
MIT License
30 stars 7 forks source link

occasional error on ikea remote device, missing null #114

Closed itupsk closed 2 years ago

itupsk commented 2 years ago

Problem from #110 still continues. Log message says:

[error] TypeError: Cannot read property 'replace' of null
at MqttSubscription.callback (/data/node_modules/node-red-contrib-zigbee2mqtt-devices/dist/nodes/devices-ikea.js:90:51)

so, in your last fix missing null in condition:

if (message.action === undefined || message.action === "") {

https://github.com/Dirnei/node-red-contrib-zigbee2mqtt-devices/blob/0.19.3/src/nodes/devices-ikea.js#L85

Dirnei commented 2 years ago

Published a new release right now! Should be available for update in node-red soon! Thanks again for your help :)