syssi / xiaomiplug

Xiaomi Mi Smart WiFi Socket integration for Home Assistant
Apache License 2.0
107 stars 26 forks source link

lumi.acpartner.v3 power consumed statistics #17

Closed lingxide closed 5 years ago

lingxide commented 5 years ago

Hi: Thanks for adding support to lumi.acpartner.v3! May I ask if that possible to obtain power consumed value from it?

syssi commented 5 years ago

The current power consumption is provided as attribute. You could use a sensor template to provide the value as sensor.

lingxide commented 5 years ago

The current power consumption is provided as attribute. You could use a sensor template to provide the value as sensor.

Thanks for your reply. I am using develop branch and couldn't found power consume value. Feel free to let me know if you need more information for debug.

Thanks in advance!


HA Version: 0.87.1

Attributes Status

temperature: null 
model: lumi.acpartner.v3 
load_power: 0 
friendly_name: WaterHeater
icon: mdi:power-socket
--
syssi commented 5 years ago

Is the value of load_power always zero?

lingxide commented 5 years ago

No, it is correct.

syssi commented 5 years ago

A value of the total power consumption isn't available. The load_power indicates the current power consumption. Does it answer your question?

lingxide commented 5 years ago

okay then... got it! many thanks!