Skip to content

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

@hdinwiddie

Description

@hdinwiddie

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
.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions