alexryd / node-shellies

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

energyCounter for Shelly4Pro #11

Open jghaanstra opened 3 years ago

jghaanstra commented 3 years ago

The Shelly4Pro also measure the total power usage per channel. Is it available under the coap protocol and if so, could this be added to the shellies library?

alexryd commented 3 years ago

I don't own a 4Pro myself and there isn't any documentation for it, so I don't know what properties it exposes over CoAP. You can run shellies description <ip-address> with the IP address of a 4Pro to see its properties though.

jghaanstra commented 3 years ago

I dont own the Shelly 4Pro myself. I'm implementing your library in the Shelly integration for the home domotica controller Homey. This app now uses the REST API and needs to poll devices. In the REST API this attribute is available and I'm hoping to replace it in your coap library: https://shelly-api-docs.shelly.cloud/#shelly4pro-meter-index

I have contacts with Allterco Robotics, I'll see if I can retrieve the coap documentation for the Shelly 4Pro.