This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
The Homey Community has been moved to https://community.athom.com.
This forum is now read-only for archive purposes.
Zigbee, multiple productIds, same deviceId
geir
Member
in Developers
How to best handle when multiple devices have the same deviceId but different productId?
Can they share a driver?
Share a definition in app.json with Regex or array for productId or something?
Example: Osram Lightify E14 - bulb, same deviceId as the exisiting Classic A60, but different productId. For the end user everything is the same except socket size and shape/size of bulb.
Can they share a driver?
Share a definition in app.json with Regex or array for productId or something?
Example: Osram Lightify E14 - bulb, same deviceId as the exisiting Classic A60, but different productId. For the end user everything is the same except socket size and shape/size of bulb.
Comments
https://github.com/athombv/com.osram.lightify.zigbee/blob/master/app.json#L72
Here an array is provided with different productId's which share the same deviceID (which is in fact a device type); they are linked to the above defined driverID. Device drivers are build based on these driverID's...