mickgiles / homebridge-vesync

Homebridge plugin for vesync WiFi Power Outlets
6 stars 4 forks source link

HomeKit not turning on and off BSD29 socket #21

Open antoniojl opened 2 months ago

antoniojl commented 2 months ago

Hi, thanks for your effort on this plugin!

I recently got a couple of BSD29 sockets; they're connected and working fine in my VeSync app, and I've added your plugin to HomeKit and configured it with my account details. HomeKit can see the sockets no problem, but switching them on and off does nothing at the appliance end. Here are my logs with debug on:


[9/8/2024, 12:46:09 PM] [VesyncPlug] Skipping existing device 0
[9/8/2024, 12:46:09 PM] [VesyncPlug] Discovery complete
[9/8/2024, 12:46:09 PM] [VesyncPlug] getPowerState complete
[9/8/2024, 12:46:15 PM] [VesyncPlug] Sending device status change
[9/8/2024, 12:46:24 PM] [VesyncPlug] getPowerState complete
[9/8/2024, 12:46:24 PM] [VesyncPlug] Sending device status change
[9/8/2024, 12:46:56 PM] [VesyncPlug] getPowerState complete
[9/8/2024, 12:47:08 PM] [VesyncPlug] DeviceDiscovery invoked
[9/8/2024, 12:47:08 PM] [VesyncPlug] Adding discovered devices
[9/8/2024, 12:47:08 PM] [VesyncPlug] Skipping existing device 0
[9/8/2024, 12:47:08 PM] [VesyncPlug] Discovery complete
[9/8/2024, 12:47:33 PM] [VesyncPlug] getPowerState complete
[9/8/2024, 12:48:08 PM] [VesyncPlug] DeviceDiscovery invoked
[9/8/2024, 12:48:08 PM] [VesyncPlug] Adding discovered devices
[9/8/2024, 12:48:08 PM] [VesyncPlug] Skipping existing device 0
[9/8/2024, 12:48:08 PM] [VesyncPlug] Discovery complete
[9/8/2024, 12:49:08 PM] [VesyncPlug] DeviceDiscovery invoked
[9/8/2024, 12:49:08 PM] [VesyncPlug] Adding discovered devices
[9/8/2024, 12:49:08 PM] [VesyncPlug] Skipping existing device 0
[9/8/2024, 12:49:08 PM] [VesyncPlug] Discovery complete
mickgiles commented 2 months ago

unfortunately vesync doesn't publish their api and without an actual device to sniff out the api from I can't implement it to work. if you can find the api that controls this I am happy to implement it into the plugin