aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.85k stars 355 forks source link

Power load and power consumed for wifi power strips #118

Open jghaanstra opened 6 years ago

jghaanstra commented 6 years ago

The Xiaomi WiFi power strips support the power load and power consumed capability but it seems these are not implemented in the current device. Could these be added in a next version?

aholstenson commented 6 years ago

Thank for opening an issue about this. Do you have any info about the properties used to report the usage?

jghaanstra commented 6 years ago

I dont own the device myself but after some Googling these props seem to be supported.

See https://github.com/marcelrv/openhab2/blob/xiaomi-miio/addons/binding/org.openhab.binding.miio/database/zimi.powerstrip.v2.json

I'm mainly interested in the top 3 props.