When adding a light or plug, the app crashes. In this case I'm trying to add a INNR SP120 plug that has a light and 2 sensor capabilities (sensor ID 3 & 4).
TypeError: Cannot convert undefined or null to object
at Function.entries ()
at Object.entries.filter.map (/drivers/Driver.js:57:35)
at Array.map ()
at getSensorsList (/drivers/Driver.js:51:80)
at http.get (/drivers/Driver.js:22:4)
at IncomingMessage.response.on (/node_modules/nbhttp.js:15:4)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
When adding a light or plug, the app crashes. In this case I'm trying to add a INNR SP120 plug that has a light and 2 sensor capabilities (sensor ID 3 & 4).
See crashlog:
id: '4', r: 'sensors', state: { current: 0, lastupdated: '2019-12-13T11:20:42', power: 0, voltage: 235 }, t: 'event', uniqueid: '00:15:8d:00:03:61:93:20-01-0b04' } 2019-12-13 12:20:58 [log] [deCONZ] Update for unregistered device { e: 'changed', id: '3', r: 'sensors', state: { consumption: 0, lastupdated: '2019-12-13T11:20:58' }, t: 'event', uniqueid: '00:15:8d:00:03:61:93:20-01-0702' } /drivers/Driver.js:57 let filteredSensors = Object.entries(sensors).filter(d => d[1].uniqueid.startsWith(mac)) ^
TypeError: Cannot convert undefined or null to object at Function.entries ()
at Object.entries.filter.map (/drivers/Driver.js:57:35)
at Array.map ()
at getSensorsList (/drivers/Driver.js:51:80)
at http.get (/drivers/Driver.js:22:4)
at IncomingMessage.response.on (/node_modules/nbhttp.js:15:4)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
at _combinedTickCallback (internal/process/next_tick.js:139:11)
--- INFO: ru.notabene.deconz has been killed ---
App version 0.11.5