-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an additional source for converter configuration #232
Comments
My basic thought process for how this would work is to add a // some psuedo-code
var zigbeeShepherdConverters = require('zigbee-shepherd-converters');
if (settings.get().localDevices) {
const localDevices = require(settings.get().localDevices);
zigbeeShepherdConverters.devices = { ...localDevices, ...zigbeeShepherdConverters.devices };
} and require the user to implement a module at the path that exports a devices object. |
Yes, that would be a nice solution, however we also need to import the |
+1 here, |
What about building converter per device as module files. |
Yes that would be nice (that's also how smartthings solves it), but this would require a complete refactor of zigbee-shepherd-converters, maybe one separate file is enough for now? |
Can you give me some more detail here? I’m not sure how this would work as the converters aren’t exposed like devices are (or, they’re only exposed as a prop of devices). What if a device defined by a user needs a converter defined in zigbee-shepherd-converters? Or is that not a concern? I’d like to implement this and open a PR as it seems a lot of issues keep arising from this, and I’d like to help. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Updating and using
zigbee-shepherd-converters
as a seperate node module seems to be working pretty nicely, but it causes a problem for add-on users as editing the devices file requires connecting to the add-on's docker container, which is confusing for some people (see discussion here).I don't want to rock the boat too much just for this use case, but maybe it'd be possible to add an additional file to "check" for configuration of additional devices. If there was, the add-on could expose a
.js
file in theshare
directory, which would make it easy for add-on users to add unsupported devices in a way that they're used to.The text was updated successfully, but these errors were encountered: