-
-
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
I have a proposal for cooperation with you #45
Comments
I think this is a good idea! However I feel it's nicer that this library doesn't even have a dependency on zigbee-shepherd at all. Basically this library should just consist of the following 3 files: https://github.com/Koenkk/zigbee2mqtt/tree/master/lib/converters and https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/devices.js |
Perhaps this idea is better. devices.js - i see homeassistant dependence (can cut) For architecture, i want to see multiple generated events on one zigbee-message. |
I also have a related project and would be very interested in a common library. This project is in early phase as it only supports a few devices yet. I am also looking for contributors to support more devices. |
I prefer the flow of having: The |
I thought more and suggest that there should be a dependence on common
it's ok. |
I see progress. Some files ready to share in common lib:
But I want to see "mqtt", "logging", "settings" functional externally. What you think? |
I'm only planning to move the converters/* and devices.js to a seperate library because I feel it's not nice/maintainable to create another library on top of zigbee-shepherd. This will keep the library very thin which allows our projects for maximum flexibility (because each of our projects requires different uses cases/behaviour). I agree with the renaming of the converts to something like |
Ok, I agree. Let's start split and use and upgrade :) |
Hello again... Example:
It may be useful for creating new devices in one place (or in files) without parsers modification. |
Good idea! |
Repo is up: https://github.com/Koenkk/zigbee-shepherd-converters To-do for myself:
|
Ok, thank you. I, was busy too :) Need some work with device endpoints: in devices it is {'l1': 2, 'l2': 3}, but in converters {2: 'l1',3: 'l2'} |
Ok, good idea! |
Everything is ready 😄 |
Hi, Koen!
We are both developing the subject of Zigbee-devices (Xiaomi and other), so I propose to combine our experience.
You do the mqtt-version, and I'm the adapter for the ioBroker. But both these decisions use NodeJS and Zigbee-Shepherd library.
Therefore, I propose to create a common library of device and parsers for further use in your and my applications. This library should depend only on the zigbee-shepherd, handle the zigbee events, and generate processed events.
I am accustomed to your approach to the architecture of parsers (unlike my single file) - I suggest taking this as a basis.
I think this is an excuse not to do double work and not to copy the code from the library to the library.
What can you say about this?
p.s. Sorry for my English
The text was updated successfully, but these errors were encountered: