itavero/homebridge-z2m

[Feature] Expose power, voltage, current to Xiaomi SP-EUC01

Closed this issue · 5 comments

It would be great to get power consumption support for the Xiaomi SP-EUC01

Currently, only Switch and Temperature are exposed: https://z2m.dev/devices/xiaomi/sp-euc01.html

The device exposes switch (state), power, energy, temperature, voltage, current, linkquality
https://www.zigbee2mqtt.io/devices/SP-EUC01.html

I use a TP-LINK HS110 to monitor the power consumption of the laundry machine. I have an automation set-up for the TP-LINK Outlet that monitors the watt usage and I'd love to get rid of the Kasa ecosystem

https://i.imgur.com/AasYYiW.png

So far the only device I've seen that expose this information as well, are of type switch or light. I'd suggest to make a generic implementation that can be integrated in the two ServiceHandler classes used for these different types, or do you know of a "generic" HomeKit service to which this information belongs?

I reckon you want to reuse the custom characteristics from the Elgato Eve Energy?

I can't say if that's what I'm after since I'm not in the Elgato Eve Energy, but I do use the Eve app (now Home+ mostly), and I want the ability to measure the outlet characteristics.

I have seen outlets that do give a lot more info (voltage, watts, total consumption). One example would be TP-Link HS110. I use the power consumption characteristic in Eve/Home+ app to trigger automations.
However, my thought is that homebridges-z2m should add outlets as outlet accessories, for HomeKit consistency. Although zigbee2mqtt does share it as a switch, I think the plugin needs to interpret it as an outlet. Does that make sense? I think the characteristics that I'm after aren't attached to switches but to outlets.

P.S. Just to reiterate, the automations regarding power consumptions can't be done through the Home app since they're not available there, but through other HomeKit management apps

The characteristics are non-standard and I don't expect any issues when they are added to a light or switch accessory.

I don't know the exact difference in the Home app between a Switch and an Outlet. For my particular use case the Switch service works just fine. I have an IKEA outlet that uses the switch service. I use it to control a "dumb" light and it works exactly right for my use case (I can even select in the Home app that it is a light).

By the way, there is a different feature request about selecting alternative services for certain devices

stale commented

It appears that this issue did not have an update in quite some time. Please check if you can provide any additional information to help resolve this issue. If there isn't any activity in the next two weeks, this issue will be closed automatically. Thank you for your contributions!

@ratsoid have you found a way to get power reading?