Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ratsoid opened this issue Mar 5, 2021 · 5 comments
Closed

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

ratsoid opened this issue Mar 5, 2021 · 5 comments
Labels
enhancement New feature or request stale

Comments

@ratsoid
Copy link

ratsoid commented Mar 5, 2021

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

@ratsoid ratsoid added the enhancement New feature or request label Mar 5, 2021
@itavero
Copy link
Owner

itavero commented Mar 7, 2021

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?

@itavero itavero changed the title Expose power, voltage, current to Xiaomi SP-EUC01 [Feature] Expose power, voltage, current to Xiaomi SP-EUC01 Mar 7, 2021
@ratsoid
Copy link
Author

ratsoid commented Mar 7, 2021

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

@itavero
Copy link
Owner

itavero commented Mar 7, 2021

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
Copy link

stale bot commented Apr 11, 2021

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!

@stale stale bot added the stale label Apr 11, 2021
@stale stale bot closed this as completed Apr 25, 2021
@itavero itavero mentioned this issue Dec 18, 2021
@Leseptiemeciel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

3 participants