AlakhaiVaynard / homebridge-vesync

Homebridge plugin for vesync WiFi Power Outlets
11 stars 11 forks source link

Smart Plugs aren't showing up #10

Open mearl72 opened 5 years ago

mearl72 commented 5 years ago

I can't seem to get my plugs to show up. Maybe I'm doing it wrong but it does say that my registered plugs will be auto-detected in the README.md. Do I have to add more to my config.json?

{
  "bridge": {
    "name": "Homebridge",
    "username": "CC:22:3D:E3:CE:30",
    "port": 51826,
    "pin": "032-45-155"
  },

  "platforms": [
    {
      "platform": "VesyncPlug",
      "name": "VesyncPlug",
      "username": "changed.for.this@gmail.com",
      "password": "password",
      "debug": true
    }
  ]
}

This is all I see in my logs:

Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] Loaded config.json with 0 accessories and 1 platforms.
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] ---
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] Loaded plugin: homebridge-vesync
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] Registering platform 'homebridge-vesync.VesyncPlug'
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] ---
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] Loading 1 platforms...
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] [VesyncPlug] Initializing VesyncPlug platform...
Jun 20 10:20:30 homebridge homebridge: [2019-6-20 10:20:30] Loading 0 accessories...
Jun 20 10:20:31 homebridge homebridge: Setup Payload:
Jun 20 10:20:31 homebridge homebridge: X-HM://0023O4ZMG73LO
Jun 20 10:20:31 homebridge homebridge: Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
*removed QR code*
Jun 20 10:20:31 homebridge homebridge: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
Jun 20 10:20:31 homebridge homebridge: ┌────────────┐
Jun 20 10:20:31 homebridge homebridge: │ 032-45-155 │
Jun 20 10:20:31 homebridge homebridge: └────────────┘
Jun 20 10:20:31 homebridge homebridge: [2019-6-20 10:20:31] [VesyncPlug] DeviceDiscovery invoked
Jun 20 10:20:31 homebridge homebridge: [2019-6-20 10:20:31] Homebridge is running on port 51826.
Jun 20 10:20:31 homebridge homebridge: [2019-6-20 10:20:31] [VesyncPlug] Adding discovered devices
Jun 20 10:20:31 homebridge homebridge: [2019-6-20 10:20:31] [VesyncPlug] Discovery complete
Jun 20 10:21:31 homebridge homebridge: [2019-6-20 10:21:31] [VesyncPlug] DeviceDiscovery invoked
Jun 20 10:21:31 homebridge homebridge: [2019-6-20 10:21:31] [VesyncPlug] Adding discovered devices
Jun 20 10:21:31 homebridge homebridge: [2019-6-20 10:21:31] [VesyncPlug] Discovery complete
Jun 20 10:22:31 homebridge homebridge: [2019-6-20 10:22:31] [VesyncPlug] DeviceDiscovery invoked
Jun 20 10:22:31 homebridge homebridge: [2019-6-20 10:22:31] [VesyncPlug] Adding discovered devices
Jun 20 10:22:31 homebridge homebridge: [2019-6-20 10:22:31] [VesyncPlug] Discovery complete

I was able to connect to Homebridge but I don't see anything else with it. Am I missing something? I'm pretty new to the smart appliances game and same with Homebridge and HomeKit. This is the first time I'm trying to set this up. I got two different plugs from Etekcity because they were on sale through Amazon: https://www.amazon.com/gp/product/B074GVPYPY/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1 https://www.amazon.com/gp/product/B07GDFQ38D/ref=ppx_yo_dt_b_asin_image_o03_s00?ie=UTF8&psc=1 Maybe they're not compatible? Any help on this would be appreciated. I'm running on Node.js v8.16 and CentOS 7 VM. Firewall turned off. SELinux turned off just in case.

kartik924 commented 5 years ago

I'm hitting the same issue as well. Seems like the issue is in getDevices() in client.js, the plug in is getting a list of devices with size 0. I tried pyvesync_v2, and getting devices returned the 2 etekcity outlets I have. The outlets I have are http://www.vesync.com/esw15usa

Jerdle commented 5 years ago

Same for me.. can we get an update?

aidzer0 commented 5 years ago

I’m getting the same... I purchased a PI and these plugs just for this.

Please can we get an update.

dakovacic commented 5 years ago

I am also seeing this issue. I installed pyvesync on the pi on which I am running home bridge and I had no problem seeing my ESW01 outlets. Could we get an update please?