Beginner here, sorry if question is basic
Developing an app to support a zigbee window covering modules (brand: Yokis). Went through everything, and it works in the testing environnement (homey app run) but not in prod (either homey app install or homey app run --remote).
Homey Pro 2023. Working from a Mac.
Hereās the catch, it depends also on how I reference the ZigbeeDriver at the top of my device.js
-
With
const { ZigBeeDevice } = require("homey-zigbeedriver");
(which should be the proper way to do it according to the API docs)
DEV =[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: ReferenceError: ZigbeeDevice is not defined
PROD =[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: ReferenceError: ZigbeeDevice is not defined
-
With
const ZigbeeDevice = require('homey-zigbeedriver/lib/ZigbeeDevice');
DEV =
PROD =[err] [ManagerDrivers] [Driver:yokis-blinds] Error Initializing Device: Error: Cannot find module 'homey-zigbeedriver/lib/ZigbeeDevice'
Iāve gone through all the hoops I thought of (npm install, checking dependencies list in package.json, removing & reinstalling with npm install --save homey-zigbeedriver zigbee-clusters
. The homey-zigbeedriver folder is present in the node_modules build folders of course.
Let me insist that with homey app run and declaring with const ZigbeeDevice = require('homey-zigbeedriver/lib/ZigbeeDevice');
, my app and my device work perfectly (I can send commands, it respondsā¦).
Any idea what Iām doing wrong?
Thanks!