dkerr64/homebridge-yolink

Support for YoLInk Outlet with Power Reporting (YoLink catalog item YS6602-UC)

Opened this issue · 2 comments

Please add support for using the YoLInk plug with power reporting in such a way that particular power levels could be used as triggers for Homekit automations. I could plug a washing machine into it for example and use it in alerts for load/cycle completion or start. I can see in the log (attached) that power is being correctly reported, but am not seeing it available when trying to create an automation. Only on/off seem to be available. The device is called "YL Power" Here's a snipped of the log:

[27/08/2022, 14:59:40] [YoLink] [verbose] MQTT message: yl-home/3b2cba5564d345e1ae52a04878d2ce8f/d88b4c0100027a1f/report
{"event":"Outlet.getState","time":1661626780400,"msgid":"1661626780400","data":{"state":"open","delay":{"ch":1,"on":0,"off":0},"power":445,"watt":0,"version":"020e","time":"2018-01-05T00:03:36.000Z","tz":-4,"loraInfo":{"signal":-3,"gatewayId":"d88b4c16040002fc","gateways":2}},"deviceId":"d88b4c0100027a1f"}
[27/08/2022, 14:59:40] [YoLink] At 27/08/2022, 14:59:40: Device state for YL Power (d88b4c0100027a1f) is: Outlet: open (MQTT: Outlet.getState)

I had a charger plugged into it at the time and it was using 44.5 watts according to the YoLink app which sounds about right
homebridge.log (1).txt
.

Apple Home does not support power reporting. At least not natively. Elgato Eve added support for their devices using custom characteristics. Some plugins have adopted their approach so that power information is shown in the Eve app. But it won't be shown in Apple Home.

I would like to add support for this, but I can't do it soon as I am about to enter a period of travel.

Thanks

@dkerr64 Thanks for letting me know. I'll try creating a couple of virtual switches in SmartThings or Alexa that can be brought into Homekit and do it that way or just forget trying in Homekit for now.