alexryd / node-shellies

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

Feature: add voltage as prop for battery powered devices. #10

Closed jghaanstra closed 3 years ago

jghaanstra commented 3 years ago

Feature: add voltage as prop for battery powered devices.

alexryd commented 3 years ago

Voltage is only available in the HTTP API for some reason. If you need to know the voltage, use the device.getStatus() method to retrieve it.

jghaanstra commented 3 years ago

Weird, I'll use the REST API for this.

jghaanstra commented 3 years ago

I asked on around the Shelly QA Facebook group. Turns out that voltage is available for the Shelly EM and Shelly 3EM. I'm opening this feature request again. It would be nice if this could be added.

{"I":4108,"T":"V","D":"voltage","U":"V","R": ["0/265","-1"],"L":2}
alexryd commented 3 years ago

The Shelly 3EM has three properties for voltage (voltage0, voltage1 and voltage2) and the Shelly EM has one property (voltage0). You asked about battery powered devices and I assumed you meant H&T, Door/Window etc.

jghaanstra commented 3 years ago

Right, I need to get some sleep. Sorry for bother you.

alexryd commented 3 years ago

No worries!