kabbi / zigbee2mqtt-adapter

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

After installation, I couldn't see zigbee2mqtt in addons. #18

Closed Conplug closed 4 years ago

Conplug commented 4 years ago

I finished installation, this is my log. pi@gateway:~/.mozilla-iot/addons/zigbee2mqtt $ ./package.sh npm notice npm notice 📦 zigbee2mqtt-adapter@0.2.6 npm notice === Tarball Contents === npm notice 16.7kB LICENSE npm notice 473B SHA256SUMS npm notice 358B index.js npm notice 4.1kB zigbee2mqtt-adapter.js npm notice 1.3kB package.json npm notice 894B README.md npm notice === Tarball Details === npm notice name: zigbee2mqtt-adapter npm notice version: 0.2.6 npm notice filename: zigbee2mqtt-adapter-0.2.6.tgz npm notice package size: 8.0 kB npm notice unpacked size: 23.9 kB npm notice shasum: a7a747a58e0240108f4cb02edb6ff1b6736265cc npm notice integrity: sha512-yQlKbNxyrfrK2[...]uYW3Mk8m5HXRA== npm notice total files: 6 npm notice zigbee2mqtt-adapter-0.2.6.tgz

But I couldn't see zigbee2mqtt in addons. My WebThings Gateway version for Raspberry Pi is "0.12".

pathob commented 4 years ago

My package output is shorter:

$ ./package.sh 
zigbee2mqtt-adapter-0.2.6.tgz

And when starting webthings gateway:

ERROR  : Failed to load add-on zigbee2mqtt-adapter: Error: No manifest found for add-on zigbee2mqtt-adapter
    at Object.loadManifest (/home/node/mozilla-iot/gateway/build/webpack:/src/addon-utils.js:306:1)
    at AddonManager.loadAddon (/home/node/mozilla-iot/gateway/build/webpack:/src/addon-manager.js:614:1)
    at /home/node/mozilla-iot/gateway/build/webpack:/src/addon-manager.js:737:1
    at FSReqCallback.oncomplete (fs.js:155:23)
flatsiedatsie commented 4 years ago

I don't believe this has been upgraded in a while. Gateway add-ons now require a manifest.json file instead of the package.json file. There is a python script that can convert the package file into a manifest file.

Conplug commented 4 years ago

It's workable by adding "manifest.json". Thank You.

kabbi commented 4 years ago

I'm sorry, I don't maintain this project anymore. I've moved to homeassistant with native zigbee2mqtt support)