madchicken / homebridge-zigbee-nt

A standalone ZigBee plugin that works with CC2531 USB dongle or Deconz
Apache License 2.0
75 stars 38 forks source link

Tuya Thermostat - TypeError: Cannot read property 'description' of null #108

Closed piokacz closed 3 years ago

piokacz commented 3 years ago

30 January 2021 i clone the repo sudo git clone https://github.com/madchicken/homebridge-zigbee-nt.git in src/index.ts I have add new line registerAccessoryClass('_TZE200_2dpplnsn', ['TS0601'], TuyaThermostatControl); Then I run yarn commands

pi@raspberrypi:~/homebridge-zigbee-nt $ sudo yarn
yarn install v1.22.10
[1/5] Validating package.json...
warning homebridge-zigbee-nt@2.0.3: The engine "homebridge" appears to be invalid.
[2/5] Resolving packages...
warning Resolution field "@types/react@17.0.0" is incompatible with requested version "@types/react@^16.9.5"
[3/5] Fetching packages...
info fsevents@2.3.1: The platform "linux" is incompatible with this module.
info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > evergreen-ui@5.1.2" has incorrect peer dependency "react@^16.8.0".
warning " > evergreen-ui@5.1.2" has incorrect peer dependency "react-dom@^16.8.0".
warning "evergreen-ui > react-scrollbar-size@2.1.0" has incorrect peer dependency "react@^15.3.0 || ^16.0.0".
warning "evergreen-ui > react-tiny-virtual-list@2.2.0" has incorrect peer dependency "react@15.x || 16.x".
warning "evergreen-ui > ui-box@4.1.0" has incorrect peer dependency "react@^16.0.0".
warning "evergreen-ui > react-scrollbar-size > react-event-listener@0.5.10" has incorrect peer dependency "react@^15.3.0 || ^16.0.0".
warning " > react-json-view@1.19.1" has incorrect peer dependency "react@^16.0.0 || ^15.5.4".
warning " > react-json-view@1.19.1" has incorrect peer dependency "react-dom@^16.0.0 || ^15.5.4".
warning "react-json-view > flux@3.1.3" has incorrect peer dependency "react@^15.0.2 || ^16.0.0-beta || ^16.0.0".
warning "react-json-view > react-textarea-autosize@6.1.0" has incorrect peer dependency "react@>=0.14.0 <17.0.0".
[5/5] Building fresh packages...
Done in 159.92s.
pi@raspberrypi:~/homebridge-zigbee-nt $ sudo yarn build
yarn run v1.22.10
warning homebridge-zigbee-nt@2.0.3: The engine "homebridge" appears to be invalid.
$ yarn clean && yarn build:ts && yarn build:ui
warning homebridge-zigbee-nt@2.0.3: The engine "homebridge" appears to be invalid.
$ rimraf dist/
warning homebridge-zigbee-nt@2.0.3: The engine "homebridge" appears to be invalid.
$ tsc
warning homebridge-zigbee-nt@2.0.3: The engine "homebridge" appears to be invalid.
$ parcel build public/index.html --out-dir dist/public
⚠️  Could not load source file "../../src/index.tsx" in source map of "../node_modules/ui-box/dist/src/index.js".
⚠️  Could not load source file "../../src/index.tsx" in source map of "../node_modules/ui-box/dist/src/index.js".
⚠️  Could not load source file "../../src/cache.ts" in source map of "../node_modules/ui-box/dist/src/cache.js".
⚠️  Could not load source file "../../src/styles.ts" in source map of "../node_modules/ui-box/dist/src/styles.js".
⚠️  Could not load source file "../../src/box.tsx" in source map of "../node_modules/ui-box/dist/src/box.js".
⚠️  Could not load source file "../../src/get-class-name.ts" in source map of "../node_modules/ui-box/dist/src/get-class-name.js".
⚠️  Could not load source file "../../../src/enhancers/index.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/index.js".
⚠️  Could not load source file "../../../src/utils/split-props.ts" in source map of "../node_modules/ui-box/dist/src/utils/split-props.js".
⚠️  Could not load source file "../../../src/utils/split-box-props.ts" in source map of "../node_modules/ui-box/dist/src/utils/split-box-props.js".
⚠️  Could not load source file "../../../src/utils/safeHref.ts" in source map of "../node_modules/ui-box/dist/src/utils/safeHref.js".
⚠️  Could not load existing sourcemap of "../node_modules/react-json-view/dist/main.js".
⚠️  Could not load source file "../../src/enhance-props.ts" in source map of "../node_modules/ui-box/dist/src/enhance-props.js".
⚠️  Could not load source file "../../src/get-safe-value.ts" in source map of "../node_modules/ui-box/dist/src/get-safe-value.js".
⚠️  Could not load source file "../../../src/utils/style-sheet.ts" in source map of "../node_modules/ui-box/dist/src/utils/style-sheet.js".
⚠️  Could not load source file "../../../src/enhancers/border-radius.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/border-radius.js".
⚠️  Could not load source file "../../../src/enhancers/background.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/background.js".
⚠️  Could not load source file "../../../src/enhancers/box-shadow.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/box-shadow.js".
⚠️  Could not load source file "../../../src/enhancers/flex.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/flex.js".
⚠️  Could not load source file "../../../src/enhancers/grid.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/grid.js".
⚠️  Could not load source file "../../../src/enhancers/borders.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/borders.js".
⚠️  Could not load source file "../../../src/enhancers/list.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/list.js".
⚠️  Could not load source file "../../../src/enhancers/interaction.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/interaction.js".
⚠️  Could not load source file "../../../src/enhancers/dimensions.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/dimensions.js".
⚠️  Could not load source file "../../../src/enhancers/layout.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/layout.js".
⚠️  Could not load source file "../../../src/enhancers/overflow.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/overflow.js".
⚠️  Could not load source file "../../../src/enhancers/position.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/position.js".
⚠️  Could not load source file "../../../src/enhancers/opacity.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/opacity.js".
⚠️  Could not load source file "../../../src/enhancers/outline.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/outline.js".
⚠️  Could not load source file "../../../src/enhancers/resize.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/resize.js".
⚠️  Could not load source file "../../../src/enhancers/text.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/text.js".
⚠️  Could not load source file "../../../src/enhancers/spacing.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/spacing.js".
⚠️  Could not load source file "../../../src/enhancers/transform.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/transform.js".
⚠️  Could not load source file "../../../src/enhancers/transition.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/transition.js".
⚠️  Could not load source file "../../../src/utils/regex.ts" in source map of "../node_modules/ui-box/dist/src/utils/regex.js".
⚠️  Could not load source file "../../src/get-css.ts" in source map of "../node_modules/ui-box/dist/src/get-css.js".
⚠️  Could not load source file "../../src/expand-aliases.ts" in source map of "../node_modules/ui-box/dist/src/expand-aliases.js".
⚠️  Could not load source file "../../src/prefixer.ts" in source map of "../node_modules/ui-box/dist/src/prefixer.js".
⚠️  Could not load source file "../../src/value-to-string.ts" in source map of "../node_modules/ui-box/dist/src/value-to-string.js".
⚠️  Could not load source file "../../../src/utils/decamelize.ts" in source map of "../node_modules/ui-box/dist/src/utils/decamelize.js".
✨  Built in 99.59s.

dist/public/ui.c797bb9a.js.map      ⚠️  3.34 MB     1.37s
dist/public/ui.c797bb9a.js          ⚠️  1.94 MB    89.69s
dist/public/favicon.ae332ad7.ico       1.12 KB     146ms
dist/public/index.html                   976 B     8.23s
Done in 147.89s.

After that I lost the web UI and my thermostat doesn't work - below homebridge logs.

[1/30/2021, 7:45:19 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 7,
  _type: 'EndDevice',
  _ieeeAddr: '0x5c0272fffedb0f19',
  _networkAddress: 46763,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 81,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 46763,
      deviceIeeeAddress: '0x5c0272fffedb0f19',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: '_TZE200_2dpplnsn',
  _powerSource: 'Battery',
  _modelID: 'TS0601',
  _applicationVersion: 83,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612032066644
}
[1/30/2021, 7:45:19 PM] [ZigBee] Reuse accessory from cache with uuid 3030368a-f9a0-4511-ac6d-d8250e763e8c and name 0x5c0272fffedb0f19
(node:30435) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'description' of null
    at new ZigBeeAccessory (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/zig-bee-accessory.ts:70:34)
    at new TuyaThermostatControl (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/tuya/tuya-thermostat-control.ts:6:1)
    at Object.createAccessoryInstance (/usr/lib/node_modules/homebridge-zigbee-nt/src/registry.ts:67:12)
    at ZigbeeNTHomebridgePlatform.initDevice (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:266:32)
    at /usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:66
    at Array.map (<anonymous>)
    at ZigbeeNTHomebridgePlatform.<anonymous> (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:47)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/homebridge-zigbee-nt/dist/platform.js:24:58)
(node:30435) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:30435) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
madchicken commented 3 years ago

Please, try to clean homebridge cache (it's enough to remove zigbee plugin accessories, not all your accessories)

piokacz commented 3 years ago

Many thanks for your answer, but after clearing cache for all zigbee accessories nothing change. My thermostat still is not supported in homekit and I still don't have the web UI under my address http://192.168.1.200:9000/ . After clearing the cach and restarting the homebridge plugin found all the devices paired, but it didn't help. Bellow the logs from homebridge.

Logs from founding the devive

[2/1/2021, 5:02:05 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 7,
  _type: 'EndDevice',
  _ieeeAddr: '0x5c0272fffedb0f19',
  _networkAddress: 46763,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 81,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 46763,
      deviceIeeeAddress: '0x5c0272fffedb0f19',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: '_TZE200_2dpplnsn',
  _powerSource: 'Battery',
  _modelID: 'TS0601',
  _applicationVersion: 83,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612195071006
}
[2/1/2021, 5:02:05 PM] [ZigBee] Reuse accessory from cache with uuid 3030368a-f9a0-4511-ac6d-d8250e763e8c and name 0x5c0272fffedb0f19
(node:14892) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'description' of null
    at new ZigBeeAccessory (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/zig-bee-accessory.ts:70:34)
    at new TuyaThermostatControl (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/tuya/tuya-thermostat-control.ts:6:1)
    at Object.createAccessoryInstance (/usr/lib/node_modules/homebridge-zigbee-nt/src/registry.ts:67:12)
    at ZigbeeNTHomebridgePlatform.initDevice (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:266:32)
    at /usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:66
    at Array.map (<anonymous>)
    at ZigbeeNTHomebridgePlatform.<anonymous> (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:47)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/homebridge-zigbee-nt/dist/platform.js:24:58)
(node:14892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:14892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Logs after

[2/1/2021, 5:02:51 PM] [ZigBee] No device found from message {
  type: 'commandSetDataResponse',
  device: Device {
    ID: 7,
    _type: 'EndDevice',
    _ieeeAddr: '0x5c0272fffedb0f19',
    _networkAddress: 46763,
    _manufacturerID: 4098,
    _endpoints: [ [Endpoint] ],
    _manufacturerName: '_TZE200_2dpplnsn',
    _powerSource: 'Battery',
    _modelID: 'TS0601',
    _applicationVersion: 83,
    _stackVersion: 0,
    _zclVersion: 3,
    _hardwareVersion: 1,
    _dateCode: '',
    _softwareBuildID: undefined,
    _interviewCompleted: true,
    _interviewing: false,
    meta: {},
    _lastSeen: 1612195371009,
    _linkquality: 76
  },
  endpoint: Endpoint {
    ID: 1,
    profileID: 260,
    deviceID: 81,
    inputClusters: [ 0, 4, 5, 61184 ],
    outputClusters: [ 25, 10 ],
    deviceNetworkAddress: 46763,
    deviceIeeeAddress: '0x5c0272fffedb0f19',
    clusters: { genBasic: [Object] },
    _binds: [],
    _configuredReportings: [],
    meta: {}
  },
  data: {
    status: 0,
    transid: 93,
    dp: 3,
    datatype: 2,
    fn: 0,
    data: <Buffer 00 00 00 d2>
  },
  linkquality: 76,
  groupID: 0,
  cluster: 'manuSpecificTuya',
  meta: {
    zclTransactionSequenceNumber: 39,
    manufacturerCode: null,
    frameControl: {
      frameType: 1,
      manufacturerSpecific: false,
      direction: 1,
      disableDefaultResponse: false,
      reservedBits: 0
    }
  }
}
madchicken commented 3 years ago

@piokacz are you sure you are using your compiled version of the plugin with homebridge? Node modules (hence Homebridge plugins) are stored under /usr/local/lib/node_modules, so if you want to use your own plugin version, you need to create a symlink in that folder to ~/homebridge-zigbee-nt. Note: you don't need to use sudo when working in your home folder.

piokacz commented 3 years ago

Yes, I'm pretty sure :-) I'm using raspberrypi - I'm downloading the source to my home folder /home/pi/homebridge-zigbee-nt/, then i run yarn commands and then i copy all using sudo cp -r homebridge-zigbee-nt /usr/lib/node_modules/ . In homebridge interface I see version 2.0.3 of plugin. Do you see any mistakes in my procedure?

madchicken commented 3 years ago

/usr/lib/node_modules/? Are you sure? It should be /usr/local/lib/node_modules

piokacz commented 3 years ago

Look at my screen:

Zrzut ekranu 2021-02-3 o 17 31 56
madchicken commented 3 years ago

@piokacz could you try to see if version 2.0.5 supports your device?

piokacz commented 3 years ago

@madchicken where can I find this version? I don't see them here: https://github.com/madchicken/homebridge-zigbee-nt/releases

madchicken commented 3 years ago

I released it on NPM https://www.npmjs.com/package/homebridge-zigbee-nt/v/2.0.5 Just update the plugin

piokacz commented 3 years ago

@madchicken this is my report.

  1. I started with HomeBridge update procedure: image

  2. After update process (first time without errors) with some warnings i got this: image

  3. Bellow you will find that it didn't solve my problem - logs from HomeBridge:

    _type: 'EndDevice',
    _ieeeAddr: '0x5c0272fffedb0f19',
    _networkAddress: 46763,
    _manufacturerID: 4098,
    _endpoints: [ [Endpoint] ],
    _manufacturerName: '_TZE200_2dpplnsn',
    _powerSource: 'Battery',
    _modelID: 'TS0601',
    _applicationVersion: 83,
    _stackVersion: 0,
    _zclVersion: 3,
    _hardwareVersion: 1,
    _dateCode: '',
    _softwareBuildID: undefined,
    _interviewCompleted: true,
    _interviewing: false,
    meta: {},
    _lastSeen: 1612457306361,
    _linkquality: 60
    },
    endpoint: Endpoint {
    ID: 1,
    profileID: 260,
    deviceID: 81,
    inputClusters: [ 0, 4, 5, 61184 ],
    outputClusters: [ 25, 10 ],
    deviceNetworkAddress: 46763,
    deviceIeeeAddress: '0x5c0272fffedb0f19',
    clusters: { genBasic: [Object] },
    _binds: [],
    _configuredReportings: [],
    meta: {}
    },
    data: {
    status: 8,
    transid: 39,
    dp: 3,
    datatype: 2,
    fn: 0,
    data: <Buffer 00 00 00 d2>
    },
    linkquality: 60,
    groupID: 0,
    cluster: 'manuSpecificTuya',
    meta: {
    zclTransactionSequenceNumber: 47,
    manufacturerCode: null,
    frameControl: {
      frameType: 1,
      manufacturerSpecific: false,
      direction: 1,
      disableDefaultResponse: false,
      reservedBits: 0
    }
    }
    }
    [2/4/2021, 5:48:26 PM] [ZigBee] Zigbee message from 0x5c0272fffedb0f19 commandSetDataResponse

    Resoult:

  4. I lost: Tuya motion sensor, Tuya temp and humi sensor, Tuya wireless swith with i copy from xiaomi accessories.

  5. The web Ui under http://192.168.1.200:9000/ does not work

  6. The thermostat also image

madchicken commented 3 years ago

This is the diff from 2.0.3 to 2.0.5: https://github.com/madchicken/homebridge-zigbee-nt/compare/v2.0.3...v2.0.5 As you can see there is nothing that could cause your devices to not work or the web interface to be unresponsive. There is probably something wrong in your environment. Please attach the complete homebridge log after a restart

madchicken commented 3 years ago

Also, what happens if you go back to v2.0.3?

piokacz commented 3 years ago

I just remove the plugin, I deleted the plugin folder in node_modules, and restart the HomeBridge - bellow the logs:

@madchicken - hope not to much?

[2/4/2021, 10:27:52 PM] Got SIGTERM, shutting down Homebridge...
[2/4/2021, 10:27:52 PM] [ZigBee] Stopping zigbee service
[2/4/2021, 10:27:52 PM] [ZigBee] Zigbee: disabling joining new devices.
(...)
[2/4/2021, 10:17:52 PM] Loaded plugin: homebridge-zigbee-nt@2.0.5
[2/4/2021, 10:17:52 PM] Registering platform 'homebridge-zigbee-nt.ZigbeeHomebridgeNTPlatform'
(...)
[2/4/2021, 10:17:52 PM] [ZigBee] Initializing ZigbeeHomebridgeNTPlatform platform...
[2/4/2021, 10:17:52 PM] [ZigBee] Initializing platform: ZigBee - v2.0.5 (API v2.6)
[2/4/2021, 10:17:52 PM] Loading 7 accessories...
(...)
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: zigbee:permit-join
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: zigbee:touchlink
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0x086bd7fffec995f1
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0xbc33acfffed7e1b2
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0x60a423fffe029b7b
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0x60a423fffe2cd0e5
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0xbc33acfffe3313b6
[2/4/2021, 10:17:53 PM] [ZigBee] Loading accessory from cache: 0x5c0272fffedb0f19
(...)
[2/4/2021, 10:17:53 PM] [ZigBee] Creating copy of existing database
(...)
[2/4/2021, 10:17:56 PM] [ZigBee] Successfully started ZigBee service
[2/4/2021, 10:17:56 PM] [ZigBee] ZigBee platform initialized @ 0x00124b0014da2968
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 6895c160-ba25-497f-b805-38071c751c56 and name zigbee:permit-join
[2/4/2021, 10:17:56 PM] [ZigBee] Zigbee: disabling joining new devices.
[2/4/2021, 10:17:56 PM] [ZigBee] PermitJoin accessory successfully registered
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 4994893c-ea77-4292-a4ad-09e1f36f7099 and name zigbee:touchlink
[2/4/2021, 10:17:56 PM] [ZigBee] TouchLink accessory successfully registered
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 2,
  _type: 'EndDevice',
  _ieeeAddr: '0x086bd7fffec995f1',
  _networkAddress: 7876,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 1026,
      inputClusters: [Array],
      outputClusters: [],
      deviceNetworkAddress: 7876,
      deviceIeeeAddress: '0x086bd7fffec995f1',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: 'TUYATEC-e4wp7oyu',
  _powerSource: 'Battery',
  _modelID: 'RH3040',
  _applicationVersion: 67,
  _stackVersion: 0,
  _zclVersion: 1,
  _hardwareVersion: 1,
  _dateCode: '20180512',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612471309498
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 4d997f57-ab72-4b46-bab6-f4b58d1df573 and name 0x086bd7fffec995f1
[2/4/2021, 10:17:56 PM] [ZigBee] Registered device: 0x086bd7fffec995f1 TUYATEC-e4wp7oyu RH3040
[2/4/2021, 10:17:56 PM] [ZigBee] Mounting device PIR sensor...
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 3,
  _type: 'EndDevice',
  _ieeeAddr: '0xbc33acfffed7e1b2',
  _networkAddress: 26642,
  _manufacturerID: 4476,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 2128,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 26642,
      deviceIeeeAddress: '0xbc33acfffed7e1b2',
      clusters: [Object],
      _binds: [Array],
      _configuredReportings: [Array],
      meta: {}
    }
  ],
  _manufacturerName: 'IKEA of Sweden',
  _powerSource: 'Battery',
  _modelID: 'TRADFRI motion sensor',
  _applicationVersion: 32,
  _stackVersion: 98,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '20190308',
  _softwareBuildID: '2.0.022',
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612473317732
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid c2745d52-7755-417b-afe7-8f89cd8f8fb7 and name 0xbc33acfffed7e1b2
[2/4/2021, 10:17:56 PM] [ZigBee] Registered device: 0xbc33acfffed7e1b2 IKEA of Sweden TRADFRI motion sensor
[2/4/2021, 10:17:56 PM] [ZigBee] Mounting device TRADFRI motion sensor...
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 4,
  _type: 'EndDevice',
  _ieeeAddr: '0x60a423fffe029b7b',
  _networkAddress: 30425,
  _manufacturerID: 0,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 770,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 30425,
      deviceIeeeAddress: '0x60a423fffe029b7b',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: 'TUYATEC-yg5dcbfu',
  _powerSource: 'Battery',
  _modelID: 'RH3052',
  _applicationVersion: 74,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '20180608',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612472285592
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 848737fa-56a0-41bd-bc63-b2bec685cd05 and name 0x60a423fffe029b7b
[2/4/2021, 10:17:56 PM] [ZigBee] Registered device: 0x60a423fffe029b7b TUYATEC-yg5dcbfu RH3052
[2/4/2021, 10:17:56 PM] [ZigBee] Mounting device Temperature & humidity sensor...
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 5,
  _type: 'EndDevice',
  _ieeeAddr: '0x60a423fffe2cd0e5',
  _networkAddress: 37636,
  _manufacturerID: 0,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 770,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 37636,
      deviceIeeeAddress: '0x60a423fffe2cd0e5',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: 'TUYATEC-yg5dcbfu',
  _powerSource: 'Battery',
  _modelID: 'RH3052',
  _applicationVersion: 74,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '20180608',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612472928904
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 982243fc-936f-4965-b6c8-df3228a98a37 and name 0x60a423fffe2cd0e5
[2/4/2021, 10:17:56 PM] [ZigBee] Registered device: 0x60a423fffe2cd0e5 TUYATEC-yg5dcbfu RH3052
[2/4/2021, 10:17:56 PM] [ZigBee] Mounting device Temperature & humidity sensor...
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 6,
  _type: 'EndDevice',
  _ieeeAddr: '0xbc33acfffe3313b6',
  _networkAddress: 44448,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 0,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 44448,
      deviceIeeeAddress: '0xbc33acfffe3313b6',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: '_TZ3400_keyjqthh',
  _powerSource: 'Battery',
  _modelID: 'TS0041',
  _applicationVersion: 255,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612459980488
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 09ac29ce-8b1d-4375-8e76-3feaaacfbb88 and name 0xbc33acfffe3313b6
[2/4/2021, 10:17:56 PM] [ZigBee] Registered device: 0xbc33acfffe3313b6 _TZ3400_keyjqthh TS0041
[2/4/2021, 10:17:56 PM] [ZigBee] Mounting device Wireless switch with 1 button...
[2/4/2021, 10:17:56 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 7,
  _type: 'EndDevice',
  _ieeeAddr: '0x5c0272fffedb0f19',
  _networkAddress: 46763,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 81,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 46763,
      deviceIeeeAddress: '0x5c0272fffedb0f19',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: '_TZE200_2dpplnsn',
  _powerSource: 'Battery',
  _modelID: 'TS0601',
  _applicationVersion: 83,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612473437298
}
[2/4/2021, 10:17:56 PM] [ZigBee] Reuse accessory from cache with uuid 3030368a-f9a0-4511-ac6d-d8250e763e8c and name 0x5c0272fffedb0f19
(node:12711) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'description' of null
    at new ZigBeeAccessory (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/zig-bee-accessory.ts:70:34)
    at new TuyaThermostatControl (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/tuya/tuya-thermostat-control.ts:6:1)
    at Object.createAccessoryInstance (/usr/lib/node_modules/homebridge-zigbee-nt/src/registry.ts:70:12)
    at ZigbeeNTHomebridgePlatform.initDevice (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:266:32)
    at /usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:66
    at Array.map (<anonymous>)
    at ZigbeeNTHomebridgePlatform.<anonymous> (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:47)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/homebridge-zigbee-nt/dist/platform.js:24:58)
(node:12711) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:12711) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[2/4/2021, 10:17:59 PM] [ZigBee] Zigbee message from 0x5c0272fffedb0f19 commandSetDataResponse
[2/4/2021, 10:17:59 PM] [ZigBee] No device found from message {
  type: 'commandSetDataResponse',
  device: Device {
    ID: 7,
    _type: 'EndDevice',
    _ieeeAddr: '0x5c0272fffedb0f19',
    _networkAddress: 46763,
    _manufacturerID: 4098,
    _endpoints: [ [Endpoint] ],
    _manufacturerName: '_TZE200_2dpplnsn',
    _powerSource: 'Battery',
    _modelID: 'TS0601',
    _applicationVersion: 83,
    _stackVersion: 0,
    _zclVersion: 3,
    _hardwareVersion: 1,
    _dateCode: '',
    _softwareBuildID: undefined,
    _interviewCompleted: true,
    _interviewing: false,
    meta: {},
    _lastSeen: 1612473479188,
    _linkquality: 60
  },
  endpoint: Endpoint {
    ID: 1,
    profileID: 260,
    deviceID: 81,
    inputClusters: [ 0, 4, 5, 61184 ],
    outputClusters: [ 25, 10 ],
    deviceNetworkAddress: 46763,
    deviceIeeeAddress: '0x5c0272fffedb0f19',
    clusters: { genBasic: [Object] },
    _binds: [],
    _configuredReportings: [],
    meta: {}
  },
  data: {
    status: 9,
    transid: 135,
    dp: 3,
    datatype: 2,
    fn: 0,
    data: <Buffer 00 00 00 d2>
  },
  linkquality: 60,
  groupID: 0,
  cluster: 'manuSpecificTuya',
  meta: {
    zclTransactionSequenceNumber: 34,
    manufacturerCode: null,
    frameControl: {
      frameType: 1,
      manufacturerSpecific: false,
      direction: 1,
      disableDefaultResponse: false,
      reservedBits: 0
    }
  }
}
piokacz commented 3 years ago

Bellow the log after installation in my home folder - maybe I'm to stupid for this :-)

pi@raspberrypi:~ $ sudo npm i homebridge-zigbee-nt
npm WARN deprecated http2@3.3.7: Use the built-in module in node 9.0.0 or newer, instead
npm WARN deprecated core-js@1.2.7: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated core-js@2.6.12: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.

> @serialport/bindings@9.0.4 install /home/pi/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/12.20.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/@serialport/bindings/.node-gyp"
make: Entering directory '/home/pi/node_modules/@serialport/bindings/build'
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                     ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                       ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                            ^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
 SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                            ^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
 SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                              ^
In file included from ../../../nan/nan.h:56,
                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/pi/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:737:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/pi/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:771:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(serialport, init);
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/poller.o
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make: Leaving directory '/home/pi/node_modules/@serialport/bindings/build'

> @serialport/bindings@9.0.4 install /home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/12.20.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp"
make: Entering directory '/home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                     ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                       ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                            ^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
 SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                            ^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
 SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                              ^
In file included from ../../../nan/nan.h:56,
                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:737:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:771:3: note: in expansion of macro ‘NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(serialport, init);
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/poller.o
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make: Leaving directory '/home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'

> @serialport/bindings@9.0.4 install /home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings
> prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

prebuild-install WARN install EACCES: permission denied, access '/root/.npm'
gyp WARN EACCES current user ("pi") does not have permission to access the dev dir "/root/.cache/node-gyp/12.20.1"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp"
make: Entering directory '/home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'
  CXX(target) Release/obj.target/bindings/src/serialport.o
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Open(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:78:69: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Open, (uv_after_work_cb)EIO_AfterOpen);
                                                                     ^~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:135:71: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Update, (uv_after_work_cb)EIO_AfterUpdate);
                                                                       ^~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:175:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Close, (uv_after_work_cb)EIO_AfterClose);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:215:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Flush, (uv_after_work_cb)EIO_AfterFlush);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:270:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Set, (uv_after_work_cb)EIO_AfterSet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Get(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:314:68: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Get, (uv_after_work_cb)EIO_AfterGet);
                                                                    ^~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE GetBaudRate(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:363:76: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_GetBaudRate, (uv_after_work_cb)EIO_AfterGetBaudRate);
                                                                            ^~~~~~~~~~~~~~~~~~~~
../src/serialport.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/serialport.cpp:409:70: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
   uv_queue_work(uv_default_loop(), req, EIO_Drain, (uv_after_work_cb)EIO_AfterDrain);
                                                                      ^~~~~~~~~~~~~~
../src/serialport.cpp: At global scope:
../src/serialport.cpp:430:28: warning: unnecessary parentheses in declaration of ‘ToParityEnum’ [-Wparentheses]
 SerialPortParity NAN_INLINE(ToParityEnum(const v8::Local<v8::String>& v8str)) {
                            ^
../src/serialport.cpp:449:30: warning: unnecessary parentheses in declaration of ‘ToStopBitEnum’ [-Wparentheses]
 SerialPortStopBits NAN_INLINE(ToStopBitEnum(double stopBits)) {
                              ^
In file included from ../../../nan/nan.h:56,
                 from ../src/./serialport.h:6,
                 from ../src/serialport.cpp:1:
/home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:737:43: warning: cast between incompatible function types from ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc),                          \
                                           ^
/home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/.node-gyp/12.20.1/include/node/node.h:771:3: note: in expansion of macro NODE_MODULE_X’
   NODE_MODULE_X(modname, regfunc, NULL, 0)  // NOLINT (readability/null_usage)
   ^~~~~~~~~~~~~
../src/serialport.cpp:483:1: note: in expansion of macro ‘NODE_MODULE’
 NODE_MODULE(serialport, init);
 ^~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/serialport_unix.o
../src/serialport_unix.cpp: In function ‘int setup(int, OpenBaton*)’:
../src/serialport_unix.cpp:176:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1005 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:176:13: note: ‘snprintf’ output 20 or more bytes (assuming 1043) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error %s Cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp: In function ‘void EIO_Open(uv_work_t*)’:
../src/serialport_unix.cpp:86:60: warning: ‘%s’ directive output may be truncated writing up to 1023 bytes into a region of size 1003 [-Wformat-truncation=]
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
                                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/serialport_unix.cpp:86:13: note: ‘snprintf’ output 22 or more bytes (assuming 1045) into a destination of size 1024
     snprintf(data->errorString, sizeof(data->errorString), "Error: %s, cannot open %s", strerror(errno), data->path);
     ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/bindings/src/poller.o
  CXX(target) Release/obj.target/bindings/src/serialport_linux.o
  SOLINK_MODULE(target) Release/obj.target/bindings.node
  COPY Release/bindings.node
make: Leaving directory '/home/pi/node_modules/zigbee-herdsman/node_modules/@serialport/bindings/build'

> core-js@2.6.12 postinstall /home/pi/node_modules/babel-runtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.12 postinstall /home/pi/node_modules/react-event-listener/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> serialport@9.0.6 postinstall /home/pi/node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/serialport
> node thank-you.js

Thank you for using serialport!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/serialport/donate

> serialport@9.0.6 postinstall /home/pi/node_modules/zigbee-herdsman/node_modules/serialport
> node thank-you.js

Thank you for using serialport!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/serialport/donate

> serialport@9.0.6 postinstall /home/pi/node_modules/serialport
> node thank-you.js

Thank you for using serialport!
If you rely on this package, please consider supporting our open collective:
> https://opencollective.com/serialport/donate

npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN notsup Unsupported engine for http2@3.3.7: wanted: {"node":">=0.12.0 <9.0.0"} (current: {"node":"12.20.1","npm":"6.14.10"})
npm WARN notsup Not compatible with your version of node/npm: http2@3.3.7
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN evergreen-ui@5.1.2 requires a peer of react@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN evergreen-ui@5.1.2 requires a peer of react-dom@^16.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-scrollbar-size@2.1.0 requires a peer of react@^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ui-box@4.1.0 requires a peer of react@^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-tiny-virtual-list@2.2.0 requires a peer of react@15.x || 16.x but none is installed. You must install peer dependencies yourself.
npm WARN react-event-listener@0.5.10 requires a peer of react@^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-textarea-autosize@6.1.0 requires a peer of react@>=0.14.0 <17.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/zigbee-herdsman/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.1 (node_modules/zigbee-herdsman-converters/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

+ homebridge-zigbee-nt@2.0.5
added 2873 packages from 716 contributors and audited 437 packages in 207.119s

60 packages are looking for funding
  run `npm fund` for details

found 2 low severity vulnerabilities
  run `npm audit fix` to fix them, or `npm audit` for details

   ╭─────────────────────────────────────────────────────────────────╮
   │                                                                 │
   │      New patch version of npm available! 6.14.8 → 6.14.11       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.14.11   │
   │                Run npm install -g npm to update!                │
   │                                                                 │
   ╰─────────────────────────────────────────────────────────────────╯
piokacz commented 3 years ago

@madchicken - I did also my own compilation

pi@raspberrypi:~/homebridge-zigbee-nt $ sudo yarn
yarn install v1.22.10
[1/5] Validating package.json...
warning homebridge-zigbee-nt@2.0.5: The engine "homebridge" appears to be invalid.
[2/5] Resolving packages...
warning Resolution field "@types/react@17.0.0" is incompatible with requested version "@types/react@^16.9.5"
[3/5] Fetching packages...
info fsevents@2.3.1: The platform "linux" is incompatible with this module.
info "fsevents@2.3.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > evergreen-ui@5.1.2" has incorrect peer dependency "react@^16.8.0".
warning " > evergreen-ui@5.1.2" has incorrect peer dependency "react-dom@^16.8.0".
warning "evergreen-ui > react-scrollbar-size@2.1.0" has incorrect peer dependency "react@^15.3.0 || ^16.0.0".
warning "evergreen-ui > react-tiny-virtual-list@2.2.0" has incorrect peer dependency "react@15.x || 16.x".
warning "evergreen-ui > ui-box@4.1.0" has incorrect peer dependency "react@^16.0.0".
warning "evergreen-ui > react-scrollbar-size > react-event-listener@0.5.10" has incorrect peer dependency "react@^15.3.0 || ^16.0.0".
warning " > react-json-view@1.19.1" has incorrect peer dependency "react@^16.0.0 || ^15.5.4".
warning " > react-json-view@1.19.1" has incorrect peer dependency "react-dom@^16.0.0 || ^15.5.4".
warning "react-json-view > flux@3.1.3" has incorrect peer dependency "react@^15.0.2 || ^16.0.0-beta || ^16.0.0".
warning "react-json-view > react-textarea-autosize@6.1.0" has incorrect peer dependency "react@>=0.14.0 <17.0.0".
[5/5] Building fresh packages...
Done in 146.13s.
pi@raspberrypi:~/homebridge-zigbee-nt $ sudo yarn build
yarn run v1.22.10
warning homebridge-zigbee-nt@2.0.5: The engine "homebridge" appears to be invalid.
$ yarn clean && yarn build:ts && yarn build:ui
warning homebridge-zigbee-nt@2.0.5: The engine "homebridge" appears to be invalid.
$ rimraf dist/
warning homebridge-zigbee-nt@2.0.5: The engine "homebridge" appears to be invalid.
$ tsc
warning homebridge-zigbee-nt@2.0.5: The engine "homebridge" appears to be invalid.
$ parcel build public/index.html --out-dir dist/public
⚠️  Could not load source file "../../src/index.tsx" in source map of "../node_modules/ui-box/dist/src/index.js".
⚠️  Could not load source file "../../src/index.tsx" in source map of "../node_modules/ui-box/dist/src/index.js".
⚠️  Could not load source file "../../src/cache.ts" in source map of "../node_modules/ui-box/dist/src/cache.js".
⚠️  Could not load source file "../../src/styles.ts" in source map of "../node_modules/ui-box/dist/src/styles.js".
⚠️  Could not load source file "../../../src/utils/split-props.ts" in source map of "../node_modules/ui-box/dist/src/utils/split-props.js".
⚠️  Could not load source file "../../../src/utils/safeHref.ts" in source map of "../node_modules/ui-box/dist/src/utils/safeHref.js".
⚠️  Could not load source file "../../src/get-class-name.ts" in source map of "../node_modules/ui-box/dist/src/get-class-name.js".
⚠️  Could not load source file "../../../src/enhancers/index.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/index.js".
⚠️  Could not load source file "../../src/box.tsx" in source map of "../node_modules/ui-box/dist/src/box.js".
⚠️  Could not load source file "../../../src/utils/split-box-props.ts" in source map of "../node_modules/ui-box/dist/src/utils/split-box-props.js".
⚠️  Could not load existing sourcemap of "../node_modules/react-json-view/dist/main.js".
⚠️  Could not load source file "../../../src/utils/style-sheet.ts" in source map of "../node_modules/ui-box/dist/src/utils/style-sheet.js".
⚠️  Could not load source file "../../src/get-safe-value.ts" in source map of "../node_modules/ui-box/dist/src/get-safe-value.js".
⚠️  Could not load source file "../../../src/enhancers/background.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/background.js".
⚠️  Could not load source file "../../../src/enhancers/border-radius.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/border-radius.js".
⚠️  Could not load source file "../../src/enhance-props.ts" in source map of "../node_modules/ui-box/dist/src/enhance-props.js".
⚠️  Could not load source file "../../../src/enhancers/flex.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/flex.js".
⚠️  Could not load source file "../../../src/enhancers/grid.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/grid.js".
⚠️  Could not load source file "../../../src/enhancers/box-shadow.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/box-shadow.js".
⚠️  Could not load source file "../../../src/enhancers/borders.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/borders.js".
⚠️  Could not load source file "../../../src/enhancers/dimensions.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/dimensions.js".
⚠️  Could not load source file "../../../src/enhancers/layout.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/layout.js".
⚠️  Could not load source file "../../../src/enhancers/opacity.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/opacity.js".
⚠️  Could not load source file "../../../src/enhancers/list.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/list.js".
⚠️  Could not load source file "../../../src/enhancers/outline.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/outline.js".
⚠️  Could not load source file "../../../src/enhancers/position.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/position.js".
⚠️  Could not load source file "../../../src/enhancers/overflow.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/overflow.js".
⚠️  Could not load source file "../../../src/enhancers/transform.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/transform.js".
⚠️  Could not load source file "../../../src/enhancers/text.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/text.js".
⚠️  Could not load source file "../../../src/enhancers/interaction.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/interaction.js".
⚠️  Could not load source file "../../../src/enhancers/spacing.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/spacing.js".
⚠️  Could not load source file "../../../src/enhancers/resize.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/resize.js".
⚠️  Could not load source file "../../../src/enhancers/transition.ts" in source map of "../node_modules/ui-box/dist/src/enhancers/transition.js".
⚠️  Could not load source file "../../src/get-css.ts" in source map of "../node_modules/ui-box/dist/src/get-css.js".
⚠️  Could not load source file "../../src/expand-aliases.ts" in source map of "../node_modules/ui-box/dist/src/expand-aliases.js".
⚠️  Could not load source file "../../../src/utils/regex.ts" in source map of "../node_modules/ui-box/dist/src/utils/regex.js".
⚠️  Could not load source file "../../src/value-to-string.ts" in source map of "../node_modules/ui-box/dist/src/value-to-string.js".
⚠️  Could not load source file "../../src/prefixer.ts" in source map of "../node_modules/ui-box/dist/src/prefixer.js".
⚠️  Could not load source file "../../../src/utils/decamelize.ts" in source map of "../node_modules/ui-box/dist/src/utils/decamelize.js".
✨  Built in 99.35s.

dist/public/ui.c797bb9a.js.map      ⚠️  3.34 MB     1.57s
dist/public/ui.c797bb9a.js          ⚠️  1.94 MB    89.82s
dist/public/favicon.ae332ad7.ico       1.12 KB     158ms
dist/public/index.html                   976 B     7.69s
Done in 147.42s.
madchicken commented 3 years ago

so, it seems cached accessory with name 0x5c0272fffedb0f19 is creating issues during startup. Can you go in the homebrdige settings page (should be http://192.168.1.200:8080/settings in your case) and delete the cached accessory with that ID (click on Remove Single Cached Accessory). Let's see if it works... On the other side, it seems that all your devices are correctly recognized, and this is a good sign.

piokacz commented 3 years ago

@madchicken the device ...f19 is my thermostat. I clean cache - below the logs from Homebridge:

[2/5/2021, 6:42:54 PM] [ZigBee] Mounting device Wireless switch with 1 button...
[2/5/2021, 6:42:54 PM] [ZigBee] Found ZigBee device:  Device {
  ID: 7,
  _type: 'EndDevice',
  _ieeeAddr: '0x5c0272fffedb0f19',
  _networkAddress: 46763,
  _manufacturerID: 4098,
  _endpoints: [
    Endpoint {
      ID: 1,
      profileID: 260,
      deviceID: 81,
      inputClusters: [Array],
      outputClusters: [Array],
      deviceNetworkAddress: 46763,
      deviceIeeeAddress: '0x5c0272fffedb0f19',
      clusters: [Object],
      _binds: [],
      _configuredReportings: [],
      meta: {}
    }
  ],
  _manufacturerName: '_TZE200_2dpplnsn',
  _powerSource: 'Battery',
  _modelID: 'TS0601',
  _applicationVersion: 83,
  _stackVersion: 0,
  _zclVersion: 3,
  _hardwareVersion: 1,
  _dateCode: '',
  _softwareBuildID: undefined,
  _interviewCompleted: true,
  _interviewing: false,
  meta: {},
  _lastSeen: 1612546953161
}
[2/5/2021, 6:42:54 PM] [ZigBee] Registering new accessory with uuid 3030368a-f9a0-4511-ac6d-d8250e763e8c and name 0x5c0272fffedb0f19
(node:15369) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'description' of null
    at new ZigBeeAccessory (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/zig-bee-accessory.ts:70:34)
    at new TuyaThermostatControl (/usr/lib/node_modules/homebridge-zigbee-nt/src/accessories/tuya/tuya-thermostat-control.ts:6:1)
    at Object.createAccessoryInstance (/usr/lib/node_modules/homebridge-zigbee-nt/src/registry.ts:70:12)
    at ZigbeeNTHomebridgePlatform.initDevice (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:266:32)
    at /usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:66
    at Array.map (<anonymous>)
    at ZigbeeNTHomebridgePlatform.<anonymous> (/usr/lib/node_modules/homebridge-zigbee-nt/src/platform.ts:219:47)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/lib/node_modules/homebridge-zigbee-nt/dist/platform.js:24:58)
(node:15369) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:15369) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
piokacz commented 3 years ago

@madchicken I think it's time to give up with the issue about the thermostat, but now i need help to restore my WebUi. Could You give me some advice what I supposed to do to find the bug? using netstat I dont see anything under port 9000, I don't see errors in Homebridge logs. Any ideas?

madchicken commented 3 years ago

@piokacz I think I found the problem with the thermostat. Stay tuned. Regarding the WEB UI: check if you did not accidentally disabled it in the plugin config. If not, I'll add some log in the next release so we can understand

piokacz commented 3 years ago

Hi @madchicken coffee on me if You help me with this thermostat :-)

Below my config - if I understood the help correctly it should be up:

        {
            "name": "ZigBee",
            "channel": 11,
            "secondaryChannel": "25",
            "adapter": "zstack",
            "routerPollingInterval": 30,
            "disableRouterPolling": false,
            "disableHttpServer": false,
            "httpPort": 9000,
            "disableLed": false,
            "platform": "ZigbeeHomebridgeNTPlatform"
        }
madchicken commented 3 years ago

Yes, it should be up. I also log a row when the server start up, it's WEB UI Listening on and then the ip and port address. For the thermostat, you actually found a problem in the herdsman lib: the function I use to get information about your device is failing and is returning null...I need to figure out how to fix this

madchicken commented 3 years ago

@piokacz Your device is still not mapped by the herdsman library! Can you find it here? We should try to understand if it is the same of some other thermostat...sometimes same devices are just labelled differently depending on the producer

piokacz commented 3 years ago

@madchicken my thermostat is very similar to HT-10 | ETOP Radiator valve (battery_low, lock, climate) - see the picture below IMG_3524

piokacz commented 3 years ago

@madchicken I can not find WEB UI Listening on in my homebridge log.

madchicken commented 3 years ago

@piokacz the missing WEB UI is a bug. Will be fixed in the next release