sahilchaddha / homebridge-magichome-platform

Homebridge Plugin for MagicHome LED Strips with Preset Scene Automation Support (Cycle Color/Fade/Strobe)
MIT License
47 stars 12 forks source link

Network unreachable #10

Closed thevisualist closed 5 years ago

thevisualist commented 5 years ago

Hi,

I have the following issue. Help would be great!

Config Log:

[2018-12-15 14:09:09] [MagicHome-Platform] [ 'Polling Light', '192.168.1.80' ] [2018-12-15 14:09:09] [MagicHome-Platform] /usr/local/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 192.168.1.80 -i [2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] 1 bulbs found DC4F2289B450=192.168.0.80

[2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] Saving Lights [2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] {"DC4F2289B450":"192.168.0.80","192.168.0.80":"192.168.0.80"} [2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] Lights Saved. [2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] Discovery Finished [2018-12-15 14:09:10] [homebridge-magichome-platform.MagicHome-Platform] { DC4F2289B450: '192.168.0.80', '192.168.0.80': '192.168.0.80' } [2018-12-15 14:09:25] [MagicHome-Platform] Unable to connect to bulb at [192.168.1.80]: [Errno 101] Network is unreachable

Config:

{
  "platform": "MagicHome-Platform",
  "debug": true,
  "lights": [
    {
      "name": "LED Stripe Color",
      "ip": "192.168.1.80",
      "setup": "GRBW",
      "purewhite": false,
      "disableDiscovery": true,
      "timeout": 10000
    }
  ]
},
sahilchaddha commented 5 years ago

Hey @thevisualist , According to logs, it looks like your light is discovered at 192.168.0.80 But in your config, its 192.168.1.80. Also config is not in correct format.

Try this

{
  "platform": "MagicHome-Platform",
  "debug": true,
  "disableDiscovery": true,
  "lights": [
    {
      "name": "LED Stripe Color",
      "ip": "192.168.0.80",
      "setup": "RGBW",
      "purewhite": false,
      "timeout": 10000
    }
  ]
}
thevisualist commented 5 years ago

Thank you! It works.