biddster / node-red-contrib-hs100

Node-RED node is for controlling tp-link Wi-Fi Smart Plug - Model HS100.
4 stars 5 forks source link

[Feature request] Add support for Power Consumption (emeter) on HS110 #1

Closed osos closed 7 years ago

osos commented 7 years ago

Thx for the works.

Could you add support for some of the other features of HS1x0, like emeter / power consumption readouts?

biddster commented 7 years ago

I'm sure that's possible. I don't actually own one, I wrote this blind for a friend.

How would you like those metrics exposed?

biddster commented 7 years ago

I've just had a look at https://github.com/czjs2/hs100-api and it seems we could call plug.getConsumption and emit the data from that in the msg.payload.

I could expose it via an input topic/payload of the string 'consumption' and you could request it at whatever frequency you require.

Would that do?

biddster commented 7 years ago

0.3.0 is released with power consumption exposed. I've not been able to test it so please report back and let me know.

st3inar commented 6 years ago

Readout for power consumption data is working fine on my HS110. Thank you!