kabbi / zigbee2mqtt-adapter

zigbee2mqtt adapter for WebThings gateway
Mozilla Public License 2.0
21 stars 13 forks source link

Need help adding support for new devices. #14

Closed FabienTregan closed 3 years ago

FabienTregan commented 4 years ago

Hi. I try to add new device (ikea tradfri spot).

I think the addons runs well in webthings:

FabienTregan commented 4 years ago

I added some trace before line 115 there: https://github.com/kabbi/zigbee2mqtt-adapter/blob/f4ff4c0dfec825fd132fbb7ccc21e54ebba25644/zigbee2mqtt-adapter.js#L112-L116 and it seemd that Z2M send modelID when 'modelId` is expected.:

2019-12-18 00:13:55.476 ERROR  : zigbee2mqtt: Ignoring unkown device  {
2019-12-18 00:13:55.477 ERROR  : zigbee2mqtt:   ieeeAddr: '0x14b457fffe487b91',
2019-12-18 00:13:55.478 ERROR  : zigbee2mqtt:   type: 'Router',
2019-12-18 00:13:55.478 ERROR  : zigbee2mqtt:   networkAddress: 64343,
2019-12-18 00:13:55.479 ERROR  : zigbee2mqtt:   model: 'LED1537R6',
2019-12-18 00:13:55.479 ERROR  : zigbee2mqtt:   friendly_name: 'n10',
2019-12-18 00:13:55.480 ERROR  : zigbee2mqtt:   manufacturerID: 4476,
2019-12-18 00:13:55.480 ERROR  : zigbee2mqtt:   manufacturerName: 'IKEA of Sweden',
2019-12-18 00:13:55.480 ERROR  : zigbee2mqtt:   powerSource: 'Mains (single phase)',
2019-12-18 00:13:55.481 ERROR  : zigbee2mqtt:   modelID: 'TRADFRI bulb GU10 WS 400lm',
2019-12-18 00:13:55.481 ERROR  : zigbee2mqtt:   hardwareVersion: 1,
2019-12-18 00:13:55.482 ERROR  : zigbee2mqtt:   softwareBuildID: '2.0.022',
2019-12-18 00:13:55.482 ERROR  : zigbee2mqtt:   dateCode: '20190308',
2019-12-18 00:13:55.483 ERROR  : zigbee2mqtt:   lastSeen: null
2019-12-18 00:13:55.484 ERROR  : zigbee2mqtt: }
FabienTregan commented 4 years ago

Ok, replacing modelId with modelID line 113 fixed it !

flatsiedatsie commented 3 years ago

I will add the bulb to the devices list