alexryd / node-shellies

Handles communication with Shelly devices
MIT License
35 stars 13 forks source link

Supporting new devices #3

Closed BobFrankston closed 4 years ago

BobFrankston commented 4 years ago

First, the package is working very well.

I'm now using the Shellie Duo Bulb and am getting the message

payload Changed from [[0,111,1073740964]] to [[0,111,1073741012]]

I presume that it's a matter of adding the new device and codes to a table. Where do I find out what the numbers mean? Is there a mechanism for adding new devices without modifying the source code and submitting a new version?

alexryd commented 4 years ago

Sorry for the very slow reply. Obviously the Shelly Duo has been added by now. You can find the implementation here.

Unfortunately there is no documentation for the CoAP API, but you can get a short description of the properties from the device by running shellies description <ip-address>.

BobFrankston commented 4 years ago

Thanks. I discovered that npm wasn't updating properly so I uninstalled/reinstalled to get the fix.

BobFrankston commented 4 years ago

For clarification, when you say no documentation. Does that mean for your package or for the Shelly CoAP parameters?

alexryd commented 4 years ago

For the Shelly CoAP parameters. I just noticed though that they've now added that to the API documentation.