kabbi / zigbee2mqtt-adapter

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

installation help #11

Closed zhapwey closed 3 years ago

zhapwey commented 5 years ago

hello:

I would love to be able to help and contribute by adding objects, but I can not find how to install add-ons on the mozilla IOT platform that are not in your list, someone could tell me or give me some reference.

flatsiedatsie commented 5 years ago

It should now show up in the add-on list.

You could propose file changes via the Github web interface. Just edit the file on the github website and create a new pull request there.

zhapwey commented 5 years ago

hello:

I managed to install the adapter with your guide, but it doesn't start correctly, it gives me this error

2019-08-16 10:25:17.722 INFO : Loading add-on: zigbee2mqtt-adapter 2019-08-16 10:25:18.502 INFO : zigbee2mqtt: Opening database: /home/pi/.mozilla-iot/config/db.sqlite3 2019-08-16 10:25:18.548 INFO : zigbee2mqtt: Loading add-on for zigbee2mqtt-adapter from /home/pi/.mozilla-iot/addons/zigbee2mqtt-adapter 2019-08-16 10:25:18.557 ERROR : zigbee2mqtt: { Error: Cannot find module 'mqtt' 2019-08-16 10:25:18.559 ERROR : zigbee2mqtt: at Function.Module._resolveFilename (module.js:548:15) 2019-08-16 10:25:18.561 ERROR : zigbee2mqtt: at Function.Module._load (module.js:475:25) 2019-08-16 10:25:18.563 ERROR : zigbee2mqtt: at Module.require (module.js:597:17) 2019-08-16 10:25:18.564 ERROR : zigbee2mqtt: at require (internal/module.js:11:18) 2019-08-16 10:25:18.565 ERROR : zigbee2mqtt: at Object. (/home/pi/.mozilla-iot/addons/zigbee2mqtt-adapter/zigbee2mqtt-adapter.js:12:14) 2019-08-16 10:25:18.567 ERROR : zigbee2mqtt: at Module._compile (module.js:653:30) 2019-08-16 10:25:18.568 ERROR : zigbee2mqtt: at Object.Module._extensions..js (module.js:664:10) 2019-08-16 10:25:18.569 ERROR : zigbee2mqtt: at Module.load (module.js:566:32) 2019-08-16 10:25:18.571 ERROR : zigbee2mqtt: at tryModuleLoad (module.js:506:12) 2019-08-16 10:25:18.572 ERROR : zigbee2mqtt: at Function.Module._load (module.js:498:3) code: 'MODULE_NOT_FOUND' }

zhapwey commented 5 years ago

hello:

npm install mqtt --save

and perfect, I'm going to prove that it works.

zhapwey commented 5 years ago

I love the integration in this application, it is very easy to add new devices with those that are already made.

I would love to have an example of a light bulb for the color that I am unable to make it work.

and I'm trying to operate the two-button xiaomi button. Following the cube but I am unable to understand the sense of how it works.

regards

But for me it is much easier to make everything work with mozilla iot than with the rest of the home automation integrations.

flatsiedatsie commented 3 years ago

The addon how has a built-in Zigbee2MQTT program, and has become an official Webthings addon. So I think we can close this. If you want to add any devices, you still can.