vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

Cannot read property 'setNoDelay' of null #18

Open wittev opened 7 years ago

wittev commented 7 years ago

Thanks for this plugin. However, last weeks I experience a problem I did not encounter previously. Repeatedly, I get the following messages:

failed to connect! [2017-6-19 17:11:33] [yeelight] accesseory unreachable [2017-6-19 17:11:33] [yeelight] dev disconnected 0x000000000332987b false /usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:82 that.sock.setNoDelay(true); ^

TypeError: Cannot read property 'setNoDelay' of null at Socket. (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:82:40) at Object.onceWrapper (events.js:314:30) at emitNone (events.js:110:20) at Socket.emit (events.js:207:7) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1125:10)

Hereafter, homebridge quits.

vvpossible commented 7 years ago

Could you provide more logs (before the error occurred)? I need to check under which condition this issue was triggered. Thanks!

wittev commented 7 years ago

Sure! Thank you very much for paying attention to it.

Please, find below a more or less complete log with (marked positions)

1 initialisation and normal operation 2 the first ocurrence of an error until the end.

1 initialisation

[2017-6-19 14:31:37] Loaded plugin: homebridge-delay-switch [2017-6-19 14:31:37] Registering accessory 'homebridge-delay-switch.DelaySwitch' [2017-6-19 14:31:37] --- [2017-6-19 14:31:37] Loaded plugin: homebridge-fritz [2017-6-19 14:31:37] Registering platform 'homebridge-fritz.Fritz!Box' [2017-6-19 14:31:37] --- [2017-6-19 14:31:37] Loaded plugin: homebridge-ics1000 [2017-6-19 14:31:37] Registering accessory 'homebridge-ics1000.ICS1000-OnOff' [2017-6-19 14:31:37] Registering accessory 'homebridge-ics1000.ICS1000-Dimmer' [2017-6-19 14:31:37] --- [2017-6-19 14:31:38] Loaded plugin: homebridge-ifttt [2017-6-19 14:31:38] Registering platform 'homebridge-ifttt.IFTTT' [2017-6-19 14:31:38] --- [2017-6-19 14:31:38] Loaded plugin: homebridge-mi-aqara [2017-6-19 14:31:38] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform' [2017-6-19 14:31:38] --- [2017-6-19 14:31:38] Loaded plugin: homebridge-people [2017-6-19 14:31:38] Registering platform 'homebridge-people.People' [2017-6-19 14:31:38] Registering accessory 'homebridge-people.PeopleAccessory' [2017-6-19 14:31:38] Registering accessory 'homebridge-people.PeopleAllAccessory' [2017-6-19 14:31:38] --- failed to load BLE module! [2017-6-19 14:31:38] Loaded plugin: homebridge-yeelight [2017-6-19 14:31:38] Registering platform 'homebridge-yeelight.yeelight' [2017-6-19 14:31:38] --- [2017-6-19 14:31:38] Loaded config.json with 15 accessories and 5 platforms. [2017-6-19 14:31:38] --- [2017-6-19 14:31:38] Loading 5 platforms... [2017-6-19 14:31:38] [My FritzBox] Initializing Fritz!Box platform... [2017-6-19 14:31:38] Initializing MiAqaraPlatform platform... [2017-6-19 14:31:38] [yeelight] Initializing yeelight platform... [2017-6-19 14:31:38] [yeelight] YeePlatform Init [2017-6-19 14:31:38] [IFTTT] Initializing IFTTT platform... [2017-6-19 14:31:38] [IFTTT] Loading accessories... [2017-6-19 14:31:38] [IFTTT] Found: TV Kijken [2017-6-19 14:31:38] [IFTTT] Loading service: Televisie aan, subtype: tv_on [2017-6-19 14:31:38] [IFTTT] Found: Apple TV [2017-6-19 14:31:38] [IFTTT] Loading service: ATV aan, subtype: atv_on [2017-6-19 14:31:38] [IFTTT] Found: Muziek [2017-6-19 14:31:38] [IFTTT] Loading service: Muziek aan, subtype: music_on [2017-6-19 14:31:38] [IFTTT] Found: Netflix [2017-6-19 14:31:38] [IFTTT] Loading service: Netflix aan, subtype: netflix_on [2017-6-19 14:31:38] [IFTTT] Found: Volume+ [2017-6-19 14:31:38] [IFTTT] Loading service: Harder, subtype: volume_up [2017-6-19 14:31:38] [IFTTT] Found: Volume- [2017-6-19 14:31:38] [IFTTT] Loading service: Zachter, subtype: volume_down [2017-6-19 14:31:38] [IFTTT] Found: Volume0 [2017-6-19 14:31:38] [IFTTT] Loading service: Neutraal, subtype: volume0 [2017-6-19 14:31:38] [IFTTT] Found: Uit [2017-6-19 14:31:38] [IFTTT] Loading service: Apparatuur uit, subtype: off [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'TV Kijken'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Apple TV'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Muziek'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Netflix'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Volume+'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Volume-'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Volume0'... [2017-6-19 14:31:38] [IFTTT] Initializing platform accessory 'Uit'... [2017-6-19 14:31:38] Initializing People platform... [2017-6-19 14:31:38] Initializing platform accessory 'Cees'... [2017-6-19 14:31:38] Initializing platform accessory 'Marijke'... [2017-6-19 14:31:38] Initializing platform accessory 'Anyone'... [2017-6-19 14:31:38] WebHook: Started server on port '51829'. [2017-6-19 14:31:38] Loading 15 accessories... [2017-6-19 14:31:38] [Links TV] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Midden Voor] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Rechts Voor] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Dressoir] Initializing ICS1000-Dimmer accessory... [2017-6-19 14:31:38] [Buitenlamp] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Keuken Plafond] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Keuken Spots] Initializing ICS1000-Dimmer accessory... [2017-6-19 14:31:38] [Badkamer] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Slaapkamer] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Gong_Gang] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Gong_Keuken] Initializing ICS1000-OnOff accessory... [2017-6-19 14:31:38] [Delay_2min] Initializing DelaySwitch accessory... [2017-6-19 14:31:38] [Delay_30sec] Initializing DelaySwitch accessory... [2017-6-19 14:31:38] [Delay_20sec] Initializing DelaySwitch accessory... [2017-6-19 14:31:38] [Delay_1min] Initializing DelaySwitch accessory... [2017-6-19 14:31:38] [yeelight] DidFinishLaunching no ble cap, skip ble device discovery add to multicast group listen on 0.0.0.0 no did or loc found! [2017-6-19 14:31:39] [yeelight] cached accessory: 0x000000000332987b connect ok! [2017-6-19 14:31:39] [yeelight] accesseory reachable [2017-6-19 14:31:39] [yeelight] dev connected 0x000000000332987b true [2017-6-19 14:31:39] [My FritzBox] Fritz!Box platform login successful [2017-6-19 14:31:39] [My FritzBox] Discovering accessories [2017-6-19 14:31:40] [My FritzBox] Outlets found: 087610048478,087610162418,087610161721 [2017-6-19 14:31:40] [My FritzBox] Thermostats found: [2017-6-19 14:31:40] [My FritzBox] Sensors found: [2017-6-19 14:31:40] [My FritzBox] Initializing platform accessory 'Guest WLAN'... [2017-6-19 14:31:40] [My FritzBox] Initializing platform accessory 'Keukenboiler'... [2017-6-19 14:31:40] [My FritzBox] Initializing platform accessory 'Lamp Links van TV'... [2017-6-19 14:31:40] [My FritzBox] Initializing platform accessory 'Lamp naast boekenkast'... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-153 │     
└────────────┘     

[2017-6-19 14:31:40] Homebridge is running on port 51826. send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-6-19 14:32:49] [My FritzBox] Updating guest WLAN [2017-6-19 14:32:49] [My FritzBox] Getting guest WLAN state [2017-6-19 14:32:50] [My FritzBox] Updating outlet 087610048478 [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610048478 state [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610048478 temperature [2017-6-19 14:32:50] [My FritzBox] Updating outlet 087610162418 [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610162418 state [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610162418 temperature [2017-6-19 14:32:50] [My FritzBox] Updating outlet 087610161721 [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610161721 state [2017-6-19 14:32:50] [My FritzBox] Getting outlet 087610161721 temperature [2017-6-19 14:32:52] [My FritzBox] Getting outlet 087610048478 power usage [2017-6-19 14:32:53] [My FritzBox] Getting outlet 087610162418 power usage [2017-6-19 14:32:54] [My FritzBox] Getting outlet 087610161721 power usage [2017-6-19 14:32:55] [My FritzBox] Getting outlet 087610048478 in use [2017-6-19 14:32:55] [My FritzBox] Getting outlet 087610162418 in use [2017-6-19 14:32:56] [My FritzBox] Getting outlet 087610161721 in use [2017-6-19 14:32:56] [My FritzBox] Getting outlet 087610048478 energy consumption [2017-6-19 14:32:56] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-6-19 14:32:57] [My FritzBox] Getting outlet 087610161721 energy consumption send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]}

2 the first ocurrence of an error

send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:09:35] [yeelight] accesseory unreachable [2017-6-19 17:09:35] [yeelight] dev disconnected 0x000000000332987b false retry connect (0) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:09:45] [yeelight] accesseory unreachable [2017-6-19 17:09:45] [yeelight] dev disconnected 0x000000000332987b false retry connect (1) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:09:55] [yeelight] accesseory unreachable [2017-6-19 17:09:55] [yeelight] dev disconnected 0x000000000332987b false retry connect (2) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:05] [yeelight] accesseory unreachable [2017-6-19 17:10:05] [yeelight] dev disconnected 0x000000000332987b false retry connect (3) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:15] [yeelight] accesseory unreachable [2017-6-19 17:10:15] [yeelight] dev disconnected 0x000000000332987b false retry connect (4) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:10:19] [yeelight] accesseory unreachable [2017-6-19 17:10:19] [yeelight] dev disconnected 0x000000000332987b false [2017-6-19 17:10:19] [My FritzBox] Updating guest WLAN [2017-6-19 17:10:19] [My FritzBox] Getting guest WLAN state [2017-6-19 17:10:20] [My FritzBox] Updating outlet 087610048478 [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610048478 state [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610048478 temperature [2017-6-19 17:10:20] [My FritzBox] Updating outlet 087610162418 [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610162418 state [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610162418 temperature [2017-6-19 17:10:20] [My FritzBox] Updating outlet 087610161721 [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610161721 state [2017-6-19 17:10:20] [My FritzBox] Getting outlet 087610161721 temperature retry connect (5) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:25] [yeelight] accesseory unreachable [2017-6-19 17:10:25] [yeelight] dev disconnected 0x000000000332987b false retry connect (6) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:35] [yeelight] accesseory unreachable [2017-6-19 17:10:35] [yeelight] dev disconnected 0x000000000332987b false retry connect (7) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:45] [yeelight] accesseory unreachable [2017-6-19 17:10:45] [yeelight] dev disconnected 0x000000000332987b false retry connect (8) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:10:48] [yeelight] accesseory unreachable [2017-6-19 17:10:48] [yeelight] dev disconnected 0x000000000332987b false retry connect (9) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:10:53] [yeelight] accesseory unreachable [2017-6-19 17:10:53] [yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:10:55] [yeelight] accesseory unreachable [2017-6-19 17:10:55] [yeelight] dev disconnected 0x000000000332987b false retry connect (10) ...: 0x000000000332987b retry connect (11) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:11:03] [yeelight] accesseory unreachable [2017-6-19 17:11:03] [yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:11:05] [yeelight] accesseory unreachable [2017-6-19 17:11:05] [yeelight] dev disconnected 0x000000000332987b false retry connect (12) ...: 0x000000000332987b retry connect (13) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:11:13] [yeelight] accesseory unreachable [2017-6-19 17:11:13] [yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:11:15] [yeelight] accesseory unreachable [2017-6-19 17:11:15] [yeelight] dev disconnected 0x000000000332987b false retry connect (14) ...: 0x000000000332987b retry connect (15) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-6-19 17:11:23] [yeelight] accesseory unreachable [2017-6-19 17:11:23] [yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:11:25] [yeelight] accesseory unreachable [2017-6-19 17:11:25] [yeelight] dev disconnected 0x000000000332987b false retry connect (16) ...: 0x000000000332987b retry connect (17) ...: 0x000000000332987b [2017-6-19 17:11:29] [My FritzBox] Updating guest WLAN [2017-6-19 17:11:29] [My FritzBox] Getting guest WLAN state [2017-6-19 17:11:30] [My FritzBox] Updating outlet 087610048478 [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610048478 state [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610048478 temperature [2017-6-19 17:11:30] [My FritzBox] Updating outlet 087610162418 [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610162418 state [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610162418 temperature [2017-6-19 17:11:30] [My FritzBox] Updating outlet 087610161721 [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610161721 state [2017-6-19 17:11:30] [My FritzBox] Getting outlet 087610161721 temperature [2017-6-19 17:11:32] [My FritzBox] Getting outlet 087610048478 power usage [2017-6-19 17:11:32] [My FritzBox] Getting outlet 087610162418 power usage [2017-6-19 17:11:33] [My FritzBox] Getting outlet 087610162418 power usage [2017-6-19 17:11:33] [My FritzBox] Getting outlet 087610161721 power usage closed the socket and retry failed to connect! [2017-6-19 17:11:33] [yeelight] accesseory unreachable [2017-6-19 17:11:33] [yeelight] dev disconnected 0x000000000332987b false [2017-6-19 17:11:34] [My FritzBox] Getting outlet 087610161721 power usage [2017-6-19 17:11:34] [My FritzBox] Getting outlet 087610048478 in use [2017-6-19 17:11:35] [My FritzBox] Getting outlet 087610162418 in use [2017-6-19 17:11:35] [My FritzBox] Getting outlet 087610162418 in use heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-6-19 17:11:35] [yeelight] accesseory unreachable [2017-6-19 17:11:35] [yeelight] dev disconnected 0x000000000332987b false [2017-6-19 17:11:35] [My FritzBox] Getting outlet 087610161721 in use [2017-6-19 17:11:35] [My FritzBox] Getting outlet 087610161721 in use /usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:82 that.sock.setNoDelay(true); ^

TypeError: Cannot read property 'setNoDelay' of null at Socket. (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:82:40) at Object.onceWrapper (events.js:314:30) at emitNone (events.js:110:20) at Socket.emit (events.js:207:7) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1125:10)

wittev commented 7 years ago

Sorry, pushed the wrong (closing) button. had to reopen issue

pirasmos commented 7 years ago

Hello i have this error again and again and homebridge doen't work .

Jun 28 16:12:28 osmc homebridge[16762]: send hb to: 0x000000000332be24 Jun 28 16:12:28 osmc homebridge[16762]: {"id":-1,"method":"get_prop","params":["power"]} Jun 28 16:12:28 osmc homebridge[16762]: send hb to: 0x0000000002dfc43e Jun 28 16:12:28 osmc homebridge[16762]: {"id":-1,"method":"get_prop","params":["power"]} Jun 28 16:12:28 osmc homebridge[16762]: send hb to: 0x0000000002ffc7e3 Jun 28 16:12:28 osmc homebridge[16762]: {"id":-1,"method":"get_prop","params":["power"]}

GilbertLau commented 7 years ago

I got the same error from time to time too. I guess it is because one of the Yeelights was connected via a HomePlug network and occasionally the connection was lost for a couple seconds. Any way not to flow this SetNoDelay Exception?

[7/2/2017, 2:12:08 AM] [yeelight] accesseory unreachable [7/2/2017, 2:12:08 AM] [yeelight] dev disconnected 0x0000000002dfa29d false /usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:67 that.sock.setNoDelay(true); ^

TypeError: Cannot read property 'setNoDelay' of null at Socket. (/usr/local/lib/node_modules/homebridge-yeelight/lib/yee.js:67:40) at Socket.g (events.js:260:16) at emitNone (events.js:72:20) at Socket.emit (events.js:166:7) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1050:10)

vvpossible commented 7 years ago

Sorry for the late response since I'm fully occupied by other work. Will take a look and provide a fix as soon as possible.

vvpossible commented 7 years ago

I suspected there were some race conditions when TCP connection to bulb was lost. I made a fix for this issue (since I can't reproduce it, so I can't guarantee it's 100% working, sorry :-(), please upgrade homebridge-yeelight to help verify it.

wittev commented 7 years ago

Hi Weiwei, Many thanks for paying attention to the issue. I'm still having a problem with a connection lost (see below) in the 0.0.17 version. The retries, however, now continue without breaking homebridge except for the Yeelight accessory:

send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-7-3 15:05:45] [My FritzBox] Updating outlet 087610161721 [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 15:05:45] [My FritzBox] Updating outlet 087610162418 [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 15:05:45] [My FritzBox] Updating outlet 087610048478 [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 15:05:45] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 15:05:46] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 15:05:46] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 15:05:47] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 15:05:47] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 15:05:47] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 15:05:48] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 15:05:48] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 15:05:48] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 15:05:48] [My FritzBox] Getting outlet 087610048478 energy consumption send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:06:13] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:13] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (0) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:06:23] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:23] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (1) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:06:33] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:33] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (2) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:06:43] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:43] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (3) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:06:53] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:53] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 15:06:55] [My FritzBox] Updating guest WLAN [2017-7-3 15:06:55] [My FritzBox] Getting guest WLAN state [2017-7-3 15:06:55] [My FritzBox] Updating outlet 087610161721 [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 15:06:55] [My FritzBox] Updating outlet 087610162418 [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 15:06:55] [My FritzBox] Updating outlet 087610048478 [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 15:06:55] [My FritzBox] Getting outlet 087610048478 temperature retry connect (4) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 15:06:57] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:06:57] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (5) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:07:03] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:07:03] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (6) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:07:13] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:07:13] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (7) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:07:23] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:07:23] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (8) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 15:07:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:07:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 15:07:33] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 15:07:33] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (9) ...: 0x000000000332987b retry connect (10) ...: 0x000000000332987b

This continues. Now I have 301 unsuccessful attempts to connect ;-(

vvpossible commented 7 years ago

hmmmm, that's strange, the retry should be quenched after 10 retries. Could you post more retry request log? I need to find some pattern to deduct the root cause.

wittev commented 7 years ago

Hi WeiWei,

Sure, find below the log

iMac:.homebridge cwitteveen$ npm install -g homebridge-yeelight $ homebridge⸨░░░░░░░░░░░░░░░░░░⸩ ⠧ rollbackFailedOptional: verb npm-session e195bb075470d9+ homebridge-yeelight@0.0.17 added 1 package in 2.19s iMac:.homebridge cwitteveen$ $ homebridge -bash: $: command not found iMac:.homebridge cwitteveen$ homebridge [2017-7-3 07:56:23] Loaded plugin: homebridge-delay-switch [2017-7-3 07:56:23] Registering accessory 'homebridge-delay-switch.DelaySwitch' [2017-7-3 07:56:23] --- [2017-7-3 07:56:25] Loaded plugin: homebridge-fritz [2017-7-3 07:56:25] Registering platform 'homebridge-fritz.Fritz!Box' [2017-7-3 07:56:25] --- [2017-7-3 07:56:25] Loaded plugin: homebridge-ics1000 [2017-7-3 07:56:25] Registering accessory 'homebridge-ics1000.ICS1000-OnOff' [2017-7-3 07:56:25] Registering accessory 'homebridge-ics1000.ICS1000-Dimmer' [2017-7-3 07:56:25] --- [2017-7-3 07:56:26] Loaded plugin: homebridge-ifttt [2017-7-3 07:56:26] Registering platform 'homebridge-ifttt.IFTTT' [2017-7-3 07:56:26] --- [2017-7-3 07:56:26] Loaded plugin: homebridge-mi-aqara [2017-7-3 07:56:26] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform' [2017-7-3 07:56:26] --- [2017-7-3 07:56:27] Loaded plugin: homebridge-people [2017-7-3 07:56:27] Registering platform 'homebridge-people.People' [2017-7-3 07:56:27] Registering accessory 'homebridge-people.PeopleAccessory' [2017-7-3 07:56:27] Registering accessory 'homebridge-people.PeopleAllAccessory' [2017-7-3 07:56:27] --- failed to load BLE module! [2017-7-3 07:56:27] Loaded plugin: homebridge-yeelight [2017-7-3 07:56:27] Registering platform 'homebridge-yeelight.yeelight' [2017-7-3 07:56:27] --- [2017-7-3 07:56:27] Loaded config.json with 15 accessories and 4 platforms. [2017-7-3 07:56:27] --- [2017-7-3 07:56:27] Loading 4 platforms... [2017-7-3 07:56:27] [My FritzBox] Initializing Fritz!Box platform... [2017-7-3 07:56:27] Initializing MiAqaraPlatform platform... [2017-7-3 07:56:27] [IFTTT] Initializing IFTTT platform... [2017-7-3 07:56:27] [IFTTT] Loading accessories... [2017-7-3 07:56:27] [IFTTT] Found: TV Kijken [2017-7-3 07:56:27] [IFTTT] Loading service: Televisie aan, subtype: tv_on [2017-7-3 07:56:27] [IFTTT] Found: Apple TV [2017-7-3 07:56:27] [IFTTT] Loading service: ATV aan, subtype: atv_on [2017-7-3 07:56:27] [IFTTT] Found: Muziek [2017-7-3 07:56:27] [IFTTT] Loading service: Muziek aan, subtype: music_on [2017-7-3 07:56:27] [IFTTT] Found: Netflix [2017-7-3 07:56:27] [IFTTT] Loading service: Netflix aan, subtype: netflix_on [2017-7-3 07:56:27] [IFTTT] Found: Volume+ [2017-7-3 07:56:27] [IFTTT] Loading service: Harder, subtype: volume_up [2017-7-3 07:56:27] [IFTTT] Found: Volume- [2017-7-3 07:56:27] [IFTTT] Loading service: Zachter, subtype: volume_down [2017-7-3 07:56:27] [IFTTT] Found: Volume0 [2017-7-3 07:56:27] [IFTTT] Loading service: Neutraal, subtype: volume0 [2017-7-3 07:56:27] [IFTTT] Found: Uit [2017-7-3 07:56:27] [IFTTT] Loading service: Apparatuur uit, subtype: off [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'TV Kijken'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Apple TV'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Muziek'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Netflix'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Volume+'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Volume-'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Volume0'... [2017-7-3 07:56:27] [IFTTT] Initializing platform accessory 'Uit'... [2017-7-3 07:56:27] Initializing People platform... [2017-7-3 07:56:27] Initializing platform accessory 'Cees'... [2017-7-3 07:56:27] Initializing platform accessory 'Marijke'... [2017-7-3 07:56:27] Initializing platform accessory 'Anyone'... [2017-7-3 07:56:27] WebHook: Started server on port '51829'. [2017-7-3 07:56:27] Loading 15 accessories... [2017-7-3 07:56:27] [Links TV] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Midden Voor] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Rechts Voor] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Dressoir] Initializing ICS1000-Dimmer accessory... [2017-7-3 07:56:27] [Buitenlamp] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Keuken Plafond] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Keuken Spots] Initializing ICS1000-Dimmer accessory... [2017-7-3 07:56:27] [Badkamer] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Slaapkamer] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Gong_Gang] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Gong_Keuken] Initializing ICS1000-OnOff accessory... [2017-7-3 07:56:27] [Delay_2min] Initializing DelaySwitch accessory... [2017-7-3 07:56:27] [Delay_30sec] Initializing DelaySwitch accessory... [2017-7-3 07:56:27] [Delay_20sec] Initializing DelaySwitch accessory... [2017-7-3 07:56:27] [Delay_1min] Initializing DelaySwitch accessory... Load homebridge-yeelight.yeelight [2017-7-3 07:56:27] [homebridge-yeelight.yeelight] YeePlatform Init [2017-7-3 07:56:27] [homebridge-yeelight.yeelight] DidFinishLaunching no ble cap, skip ble device discovery add to multicast group listen on 0.0.0.0 no did or loc found! [2017-7-3 07:56:27] [homebridge-yeelight.yeelight] found dev: 32987b [2017-7-3 07:56:28] [My FritzBox] Fritz!Box platform login successful [2017-7-3 07:56:28] [My FritzBox] Discovering accessories connect ok! [2017-7-3 07:56:28] [homebridge-yeelight.yeelight] accesseory reachable [2017-7-3 07:56:28] [homebridge-yeelight.yeelight] dev connected 0x000000000332987b true [2017-7-3 07:56:28] [My FritzBox] Outlets found: 087610161721,087610162418,087610048478 [2017-7-3 07:56:28] [My FritzBox] Thermostats found: [2017-7-3 07:56:28] [My FritzBox] Sensors found: [2017-7-3 07:56:28] [My FritzBox] Initializing platform accessory 'Guest WLAN'... [2017-7-3 07:56:28] [My FritzBox] Initializing platform accessory 'Kamer Boekenkast'... [2017-7-3 07:56:28] [My FritzBox] Initializing platform accessory 'Kamer Links TV'... [2017-7-3 07:56:28] [My FritzBox] Initializing platform accessory 'Boiler Keuken'... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐     
│ 031-45-153 │     
└────────────┘     

[2017-7-3 07:56:28] Homebridge is running on port 51826. send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-7-3 07:57:38] [My FritzBox] Updating guest WLAN [2017-7-3 07:57:38] [My FritzBox] Getting guest WLAN state send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-7-3 07:57:38] [My FritzBox] Updating outlet 087610161721 [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 07:57:38] [My FritzBox] Updating outlet 087610162418 [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 07:57:38] [My FritzBox] Updating outlet 087610048478 [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 07:57:38] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 07:57:39] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 07:57:39] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 07:57:39] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 07:57:40] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 07:57:40] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 07:57:40] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 07:57:40] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 07:57:40] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 07:57:41] [My FritzBox] Getting outlet 087610048478 energy consumption send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-7-3 07:58:48] [My FritzBox] Updating guest WLAN [2017-7-3 07:58:48] [My FritzBox] Getting guest WLAN state send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} [2017-7-3 07:58:48] [My FritzBox] Updating outlet 087610161721 [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 07:58:48] [My FritzBox] Updating outlet 087610162418 [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 07:58:48] [My FritzBox] Updating outlet 087610048478 [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 07:58:48] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 07:58:49] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 07:58:49] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 07:58:49] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 07:58:50] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 07:58:50] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 07:58:50] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 07:58:50] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 07:58:50] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 07:58:51] [My FritzBox] Getting outlet 087610048478 energy consumption


Now the complete retry log


send hb to: 0x000000000332987b {"id":-1,"method":"get_prop","params":["power"]} heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:33:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:33:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (0) ...: 0x000000000332987b [2017-7-3 19:33:58] [My FritzBox] Updating guest WLAN [2017-7-3 19:33:58] [My FritzBox] Getting guest WLAN state [2017-7-3 19:33:59] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:33:59] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:33:59] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:33:59] [My FritzBox] Getting outlet 087610048478 temperature heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (1) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (2) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (3) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (4) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:34:35] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:35] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (5) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:34:41] [My FritzBox] < getGuestWlan failed Unhandled rejection getGuestWlan failed

Unhandled rejection getGuestWlan failed

retry connect (6) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:34:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:34:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (7) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (8) ...: 0x000000000332987b [2017-7-3 19:35:08] [My FritzBox] Updating guest WLAN [2017-7-3 19:35:08] [My FritzBox] Getting guest WLAN state [2017-7-3 19:35:09] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:35:09] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:35:09] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:35:09] [My FritzBox] Getting outlet 087610048478 temperature closed the socket and retry failed to connect! [2017-7-3 19:35:09] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:09] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (9) ...: 0x000000000332987b retry connect (10) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:35:19] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:19] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (11) ...: 0x000000000332987b retry connect (12) ...: 0x000000000332987b [2017-7-3 19:35:24] [My FritzBox] < getSwitchState failed Unhandled rejection getSwitchState failed

Unhandled rejection getSwitchState failed

closed the socket and retry failed to connect! [2017-7-3 19:35:29] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:29] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (13) ...: 0x000000000332987b retry connect (14) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:35:39] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:39] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (15) ...: 0x000000000332987b retry connect (16) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:35:49] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:49] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:35:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:35:51] [My FritzBox] < getGuestWlan failed Unhandled rejection getGuestWlan failed

Unhandled rejection getGuestWlan failed

retry connect (17) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:35:53] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:53] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (18) ...: 0x000000000332987b retry connect (19) ...: 0x000000000332987b closed the socket and retry failed to connect! [2017-7-3 19:35:59] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:35:59] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (20) ...: 0x000000000332987b retry connect (21) ...: 0x000000000332987b [2017-7-3 19:36:08] [My FritzBox] < getTemperature failed Unhandled rejection getTemperature failed

Unhandled rejection getTemperature failed

closed the socket and retry failed to connect! [2017-7-3 19:36:09] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:09] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (22) ...: 0x000000000332987b retry connect (23) ...: 0x000000000332987b [2017-7-3 19:36:18] [My FritzBox] Updating guest WLAN [2017-7-3 19:36:18] [My FritzBox] Getting guest WLAN state [2017-7-3 19:36:19] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:36:19] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:36:19] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:36:19] [My FritzBox] Getting outlet 087610048478 temperature closed the socket and retry failed to connect! [2017-7-3 19:36:19] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:19] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (24) ...: 0x000000000332987b retry connect (25) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (26) ...: 0x000000000332987b [2017-7-3 19:36:34] [My FritzBox] < getSwitchState failed Unhandled rejection getSwitchState failed

Unhandled rejection getSwitchState failed

heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (27) ...: 0x000000000332987b [2017-7-3 19:36:51] [My FritzBox] < getSwitchState failed Unhandled rejection getSwitchState failed

Unhandled rejection getSwitchState failed

heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:36:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:36:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (28) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:37:01] [My FritzBox] < getGuestWlan failed Unhandled rejection getGuestWlan failed

Unhandled rejection getGuestWlan failed

retry connect (29) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (30) ...: 0x000000000332987b [2017-7-3 19:37:18] [My FritzBox] < getTemperature failed Unhandled rejection getTemperature failed

Unhandled rejection getTemperature failed

heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (31) ...: 0x000000000332987b [2017-7-3 19:37:28] [My FritzBox] Updating guest WLAN [2017-7-3 19:37:28] [My FritzBox] Getting guest WLAN state [2017-7-3 19:37:29] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:37:29] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:37:29] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:37:29] [My FritzBox] Getting outlet 087610048478 temperature heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:37:31] Changed occupancy state for MarijkesiPhone to false. Last successful ping 2017-07-03T19:22:30+02:00 , last webhook none . retry connect (32) ...: 0x000000000332987b [2017-7-3 19:37:34] [My FritzBox] < getTemperature failed Unhandled rejection getTemperature failed

Unhandled rejection getTemperature failed

heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (33) ...: 0x000000000332987b [2017-7-3 19:37:45] [My FritzBox] < getSwitchState failed Unhandled rejection getSwitchState failed

Unhandled rejection getSwitchState failed

[2017-7-3 19:37:46] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:37:46] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:37:47] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:37:47] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 19:37:48] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:37:48] [My FritzBox] Getting outlet 087610048478 energy consumption [2017-7-3 19:37:49] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:37:49] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:37:50] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:37:50] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:37:50] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 19:37:51] [My FritzBox] Getting outlet 087610048478 in use heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:37:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:37:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:37:51] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:37:52] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:37:52] [My FritzBox] Getting outlet 087610048478 energy consumption [2017-7-3 19:37:52] [My FritzBox] Getting outlet 087610048478 energy consumption [2017-7-3 19:37:53] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:37:53] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:37:53] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:37:54] [My FritzBox] Getting outlet 087610162418 in use retry connect (34) ...: 0x000000000332987b [2017-7-3 19:37:54] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:37:54] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:37:54] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 19:37:55] [My FritzBox] Getting outlet 087610048478 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (35) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (36) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (37) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (38) ...: 0x000000000332987b [2017-7-3 19:38:38] [My FritzBox] Updating guest WLAN [2017-7-3 19:38:38] [My FritzBox] Getting guest WLAN state [2017-7-3 19:38:39] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:38:39] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:38:39] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:38:39] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:38:40] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:38:40] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:38:40] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:38:41] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:38:41] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:38:41] [My FritzBox] Getting outlet 087610162418 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:38:41] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (39) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:38:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:38:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (40) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (41) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (42) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (43) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (44) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (45) ...: 0x000000000332987b [2017-7-3 19:39:48] [My FritzBox] Updating guest WLAN [2017-7-3 19:39:48] [My FritzBox] Getting guest WLAN state [2017-7-3 19:39:49] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:39:49] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:39:49] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:39:49] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:39:50] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:39:50] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:39:50] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:39:51] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:39:51] [My FritzBox] Getting outlet 087610161721 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:39:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:39:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:39:51] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 19:39:51] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (46) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (47) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (48) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (49) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (50) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (51) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:40:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:40:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (52) ...: 0x000000000332987b [2017-7-3 19:40:58] [My FritzBox] Updating guest WLAN [2017-7-3 19:40:58] [My FritzBox] Getting guest WLAN state [2017-7-3 19:40:59] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:40:59] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:40:59] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:40:59] [My FritzBox] Getting outlet 087610048478 temperature heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:41:03] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:41:03] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:41:03] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:41:04] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:41:04] [My FritzBox] Getting outlet 087610162418 in use retry connect (53) ...: 0x000000000332987b [2017-7-3 19:41:04] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:41:04] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:41:05] [My FritzBox] Getting outlet 087610162418 energy consumption [2017-7-3 19:41:05] [My FritzBox] Getting outlet 087610048478 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (54) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (55) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (56) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (57) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:41:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:41:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (58) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (59) ...: 0x000000000332987b [2017-7-3 19:42:08] [My FritzBox] Updating guest WLAN [2017-7-3 19:42:08] [My FritzBox] Getting guest WLAN state [2017-7-3 19:42:09] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:42:09] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:42:09] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:42:09] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:42:10] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:42:10] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:42:10] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:42:11] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:42:11] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:42:11] [My FritzBox] Getting outlet 087610162418 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:42:11] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (60) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (61) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (62) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (63) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:42:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:42:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (64) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (65) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (66) ...: 0x000000000332987b [2017-7-3 19:43:18] [My FritzBox] Updating guest WLAN [2017-7-3 19:43:18] [My FritzBox] Getting guest WLAN state [2017-7-3 19:43:19] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:43:19] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:43:19] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:43:19] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:43:20] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:43:20] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:43:20] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:43:21] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:43:21] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:43:21] [My FritzBox] Getting outlet 087610162418 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:43:21] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (67) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (68) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (69) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:43:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:43:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (70) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (71) ...: 0x000000000332987b [2017-7-3 19:44:04] [My FritzBox] Getting guest WLAN state [2017-7-3 19:44:04] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:44:04] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:44:04] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:44:04] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:44:04] [My FritzBox] Getting outlet 087610161721 temperature heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (72) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (73) ...: 0x000000000332987b [2017-7-3 19:44:28] [My FritzBox] Updating guest WLAN [2017-7-3 19:44:28] [My FritzBox] Getting guest WLAN state [2017-7-3 19:44:29] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:44:29] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:44:29] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:44:29] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:44:30] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:44:30] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:44:30] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:44:30] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:44:31] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:44:31] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:44:31] [My FritzBox] Getting outlet 087610162418 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:44:31] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (74) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (75) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:44:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:44:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (76) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (77) ...: 0x000000000332987b [2017-7-3 19:45:06] Changed occupancy state for MarijkesiPhone to true. Last successful ping 2017-07-03T19:45:06+02:00 , last webhook none . [2017-7-3 19:45:08] [My FritzBox] Getting guest WLAN state [2017-7-3 19:45:08] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:45:08] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:45:08] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:45:08] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:45:08] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:45:10] [My FritzBox] Getting guest WLAN state [2017-7-3 19:45:10] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:45:10] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:45:10] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:45:10] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:45:10] [My FritzBox] Getting outlet 087610048478 state heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:45:11] [My FritzBox] Getting guest WLAN state [2017-7-3 19:45:11] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:45:11] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:45:11] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:45:11] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:45:11] [My FritzBox] Getting outlet 087610161721 temperature retry connect (78) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:21] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:21] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (79) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:31] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:31] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (80) ...: 0x000000000332987b [2017-7-3 19:45:38] [My FritzBox] Updating guest WLAN [2017-7-3 19:45:38] [My FritzBox] Getting guest WLAN state [2017-7-3 19:45:39] [My FritzBox] Updating outlet 087610161721 [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:45:39] [My FritzBox] Updating outlet 087610162418 [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:45:39] [My FritzBox] Updating outlet 087610048478 [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610048478 state [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610048478 temperature [2017-7-3 19:45:39] [My FritzBox] Getting outlet 087610161721 power usage [2017-7-3 19:45:40] [My FritzBox] Getting outlet 087610162418 power usage [2017-7-3 19:45:40] [My FritzBox] Getting outlet 087610048478 power usage [2017-7-3 19:45:40] [My FritzBox] Getting outlet 087610161721 in use [2017-7-3 19:45:40] [My FritzBox] Getting outlet 087610162418 in use [2017-7-3 19:45:41] [My FritzBox] Getting outlet 087610048478 in use [2017-7-3 19:45:41] [My FritzBox] Getting outlet 087610161721 energy consumption [2017-7-3 19:45:41] [My FritzBox] Getting outlet 087610162418 energy consumption heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:41] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:41] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false [2017-7-3 19:45:41] [My FritzBox] Getting outlet 087610048478 energy consumption retry connect (81) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:45:51] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:45:51] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (82) ...: 0x000000000332987b heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:46:01] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:46:01] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (83) ...: 0x000000000332987b [2017-7-3 19:46:08] [My FritzBox] Getting guest WLAN state [2017-7-3 19:46:08] [My FritzBox] Getting outlet 087610162418 state [2017-7-3 19:46:08] [My FritzBox] Getting outlet 087610162418 temperature [2017-7-3 19:46:08] [My FritzBox] Getting outlet 087610161721 state [2017-7-3 19:46:08] [My FritzBox] Getting outlet 087610161721 temperature [2017-7-3 19:46:08] [My FritzBox] Getting outlet 087610048478 state heartbeat lost, close socket and reconnect closed the socket and retry failed to connect! [2017-7-3 19:46:11] [homebridge-yeelight.yeelight] accesseory unreachable [2017-7-3 19:46:11] [homebridge-yeelight.yeelight] dev disconnected 0x000000000332987b false retry connect (84) ...: 0x000000000332987b ^C[2017-7-3 19:46:17] Got SIGINT, shutting down Homebridge... iMac:.homebridge cwitteveen$ npm uninstall -g homebridge-yeelight

170348526 commented 6 years ago

I have the same problem, Error logs:

TypeError: Cannot read property 'setNoDelay' of null
    at Socket.<anonymous> (/usr/lib/node_modules/homebridge-yeelight/lib/yee.js:81:40)
    at Object.onceWrapper (events.js:293:19)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:188:7)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1080:10)

Have any solution yet?

egieimandha commented 6 years ago

Thanks for the plugin, i've test it for 2 days and its work perfectly in osx, n then i decide to buy raspberry pi to running this plugin, after first try its work fine, after 5h i got same error, n got 'accesseory unreachable' many times, n then "Cannot read property 'setNoDelay' of null" after that homebridge stop its self. i've using the exact same version node n npm with my osx. can u please solve this issue, may thanks before.

TheTherminator commented 6 years ago

same error here!

log: **------------------------------------------------------------------------------- 11/10/2017, 10:03:57 AM > {"id":-1,"method":"get_prop","params":["power"]} /usr/lib/node_modules/homebridge-yeelight/lib/yee.js:81 that.sock.setNoDelay(true); ^

TypeError: Cannot read property 'setNoDelay' of null at Socket. (/usr/lib/node_modules/homebridge-yeelight/lib/yee.js:81:40) at Socket.g (events.js:260:16) at emitNone (events.js:72:20) at Socket.emit (events.js:166:7) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1045:10) -------------------------------------------------------------------------------** Then home bridge crashes. Any solution yet?

jiekchenid commented 6 years ago

我也遇到了这个问题,每天晚上9点半到10点左右。homebridge-yeelight插件TypeError: Cannot read property 'setNoDelay' of null 都会崩溃一次,然后导致整个homebridge 都崩溃。。。。

TheTherminator commented 6 years ago

Still have the same error every once in a while, but at least my homebridge does not crash anymore. I also have a shell script running which is checking ever 5 minutes if the honebridge process is still running; if not, it automatically restarts my honebridge. That works great for me.

zsozso-1982 commented 6 years ago

@TheTherminator Hi, Can you please share this auto-restart script? I'm using Pi3. Thank you!

TheTherminator commented 6 years ago

Sure, as soon as I am back in front of my screen.

On Dec 26, 2017, at 09:12, zsozso-1982 notifications@github.com wrote:

@TheTherminator Hi, Can you please share this auto-restart script? I'm using Pi3. Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

TheTherminator commented 6 years ago

@zsozso-1982 here you go:

!/bin/bash

while true; do ps --no-headers -C homebridge || homebridge sleep 5m done

save it as "restart.sh" make it executable and start with "./restart.sh"

TheTherminator commented 6 years ago

Script is posted!

On Dec 26, 2017, at 09:12, zsozso-1982 notifications@github.com wrote:

@TheTherminator Hi, Can you please share this auto-restart script? I'm using Pi3. Thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

zsozso-1982 commented 6 years ago

@TheTherminator Thank you! Will try it!

xiaohk commented 5 years ago

This issue happens to me recently as well