Kane610 / aiounifi

Asynchronous library to communicate with Unifi Controller
MIT License
57 stars 49 forks source link

Power Monitoring For Smart Power Strip #559

Closed starsoccer closed 4 months ago

starsoccer commented 6 months ago

Not really sure if this is supposed to be supported or not. It seems like on the UI App it shows power usage, but all values are zeroed out. So assuming it does support power monitoring is there any plan to add support for it?

Kane610 commented 6 months ago

If the device has a power metering sensor it should also work, multple errors reported recently on unifi integration unfortunately.

starsoccer commented 6 months ago

How would I be able to confirm if it has power monitoring? It says remote monitoring here, and in the app shows power but its always zero, https://store.ui.com/us/en/products/usp-strip-us

Kane610 commented 5 months ago

You should be able to determine it from the log output. If you enable debug logging for the integration you should be able to see if device and outlet has any properties related to power measurement

starsoccer commented 5 months ago

So I dug through the logs and it seems they all have has_metering set to false which I am guessing is what would determine if it can do power monitoring or not?

Partial dump from outlet tables,

"outlet_table"[{"has_relay":true,"cycle_enabled":false,"relay_state":true,"name":"TV","index":1,"has_metering":false,"outlet_caps":65537}
Kane610 commented 4 months ago

"outlet_caps":65537}

A contributor earlier looked through the outlet_caps alternatives and concluded that "At this time, an outlet_caps value of 3 is expected to indicate that the outlet supports metering"

So I guess it does not support power metering

starsoccer commented 4 months ago

Okay thanks for checking