Closed bojomojo closed 3 years ago
had to add the attributes to the json for it to fetch them and work: "did_list_usage": "none", "did_list: []
you might want to check if the list/item exists before && config["did_list"].includes(data.did))
happens only if debug is true, will fix it
I am getting those errors:
TypeError: Cannot read property 'includes' of undefined at did_filter (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/index.js:34:45) at /usr/local/lib/node_modules/homebridge-rademacher-homepilot/index.js:95:49 at Array.filter ()
at handleActuators (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/index.js:95:34)
at Request._callback (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/accessories/RademacherHomePilotSession.js:119:13)
at Request.self.callback (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request. (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-rademacher-homepilot/node_modules/request/request.js:1076:12)
at Object.onceWrapper (events.js:421:28)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)