Problems with some Colors and Yeelight V1/2
Closed this issue · 2 comments
Hello,
Running Node v8 on the latest Homebridge and Yeelight versions
I'm having some issues with this Plugin.
I have 4 Yeeloght v1 (grouped in Homekit)
and 4 Yeelight v2 (also grouped)
and a light strip.
The LightStrip works fine. Sometimes some bulbs refuse to react (get stuck in a mode or just remain off)
And sometimes this happens (Video): https://photos.app.goo.gl/XRNmfvRcpktZQSfUA
With some colors, it just jumps back and the bulb doesn't respond.
Here is a Log snippet from my Leelight V2 Group:
First Switch on group (one of the lights remains off):
[2018-8-3 15:00:03] [Yeelight] received advertisement from 73070f.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 73070f.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 3a3368.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 57544b.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 3a3368.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 57544b.
[2018-8-3 15:00:03] [Yeelight] received advertisement from e0e411.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 730961.
[2018-8-3 15:00:03] [Yeelight] received advertisement from e0e411.
[2018-8-3 15:00:03] [Yeelight] received advertisement from e0ec93.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 56583c.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 730961.
[2018-8-3 15:00:03] [Yeelight] received advertisement from 56583c.
[2018-8-3 15:00:03] [Yeelight] received advertisement from e0ec93.
[2018-8-3 15:00:08] [Yeelight] {"method":"get_prop","params":["power"],"id":108}
[2018-8-3 15:00:08] [Yeelight] {"method":"get_prop","params":["power"],"id":109}
[2018-8-3 15:00:08] [Yeelight] {"method":"get_prop","params":["power"],"id":110}
[2018-8-3 15:00:08] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 15:00:08] [Yeelight] {"method":"get_prop","params":["power"],"id":108}
[2018-8-3 15:00:08] [Yeelight] { id: 108, result: [ 'off' ] }
[2018-8-3 15:00:08] [Yeelight] { id: 109, result: [ 'off' ] }
[2018-8-3 15:00:08] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 15:00:08] [Yeelight] {"method":"get_prop","params":["power"],"id":110}
[2018-8-3 15:00:08] [Yeelight] { id: 110, result: [ 'off' ] }
[2018-8-3 15:00:08] [Yeelight] {"method":"set_power","params":["on","smooth",400],"id":111}
[2018-8-3 15:00:08] [Yeelight] {"method":"set_power","params":["on","smooth",400],"id":112}
[2018-8-3 15:00:08] [Yeelight] {"method":"set_power","params":["on","smooth",400],"id":113}
[2018-8-3 15:00:08] [Yeelight] { id: 111, result: [ 'ok' ] }
[2018-8-3 15:00:08] [Yeelight] { id: 112, result: [ 'ok' ] }
[2018-8-3 15:00:08] [Yeelight] { id: 113, result: [ 'ok' ] }
Second Color Change as in the video:
[2018-8-3 15:01:03] [Yeelight] received advertisement from 57544b.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 73070f.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 730961.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 57544b.
[2018-8-3 15:01:03] [Yeelight] received advertisement from e0ec93.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 73070f.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 56583c.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 56583c.
[2018-8-3 15:01:03] [Yeelight] received advertisement from e0e411.
[2018-8-3 15:01:03] [Yeelight] received advertisement from e0ec93.
[2018-8-3 15:01:03] [Yeelight] received advertisement from e0e411.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 3a3368.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 3a3368.
[2018-8-3 15:01:03] [Yeelight] received advertisement from 730961.
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":120}
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":121}
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":122}
[2018-8-3 15:01:04] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":120}
[2018-8-3 15:01:04] [Yeelight] { id: 120, result: [ 'on' ] }
[2018-8-3 15:01:04] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":121}
[2018-8-3 15:01:04] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 15:01:04] [Yeelight] {"method":"get_prop","params":["power"],"id":122}
[2018-8-3 15:01:04] [Yeelight] { id: 121, result: [ 'on' ] }
[2018-8-3 15:01:04] [Yeelight] { id: 122, result: [ 'on' ] }
I always waited for an received advertisement
block to appear and then executed the action in Homekit.
Here is my Yeelight Platform (its the same as in your manual)
{
"platform": "yeelight",
"name": "Yeelight",
"transitions": {
"power": 400,
"brightness": 400
},
"multicast": {
"interface": "0.0.0.0"
}
},
So i Pulled some more logs in Debug mode:
Switch on the Light group with the 4 V1 Lights: (One Doesnt respond)
EventedHTTPServer [::ffff:192.168.178.20] HTTP request: /characteristics +15s
HAPServer [02:4A:04:C1:31:70] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge Hub] Processing characteristic set: [{"aid":10,"iid":10,"value":1},{"aid":8,"iid":10,"value":1},{"aid":5,"iid":10,"value":1},{"aid":6,"iid":10,"value":1}] +2ms
Accessory [Homebridge Hub] Setting Characteristic "On" to value 1 +1ms
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":15}
Accessory [Homebridge Hub] Setting Characteristic "On" to value 1 +6ms
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":16}
Accessory [Homebridge Hub] Setting Characteristic "On" to value 1 +3ms
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '5.10' with data: {"characteristics":[{"aid":5,"iid":10,"value":true}]} +3ms
EventedHTTPServer [::ffff:192.168.178.20] Muting event '5.10' notification for this connection since it originated here. +3ms
Accessory [Homebridge Hub] Setting Characteristic "On" to value 1 +1ms
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":17}
[2018-8-3 16:46:28] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":15}
[2018-8-3 16:46:28] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":16}
[2018-8-3 16:46:28] [Yeelight] { id: 16, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '8.10' with data: {"characteristics":[{"aid":8,"iid":10,"value":true}]} +102ms
EventedHTTPServer [::ffff:192.168.178.20] Muting event '8.10' notification for this connection since it originated here. +3ms
[2018-8-3 16:46:28] [Yeelight] { id: 15, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '10.10' with data: {"characteristics":[{"aid":10,"iid":10,"value":true}]} +8ms
EventedHTTPServer [::ffff:192.168.178.20] Sending HTTP event '10.10' with data: {"characteristics":[{"aid":10,"iid":10,"value":true}]} +3ms
[2018-8-3 16:46:28] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:46:28] [Yeelight] {"method":"set_power","params":["on","smooth",100],"id":17}
[2018-8-3 16:46:28] [Yeelight] { id: 17, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '6.10' with data: {"characteristics":[{"aid":6,"iid":10,"value":true}]} +12ms
EventedHTTPServer [::ffff:192.168.178.20] Sending HTTP event '6.10' with data: {"characteristics":[{"aid":6,"iid":10,"value":true}]} +3ms
EventedHTTPServer [::ffff:192.168.178.20] HTTP Response is finished +4ms
EventedHTTPServer [::ffff:192.168.178.20] Writing pending HTTP event data +1ms
And Off Again (same bulb not responding):
EventedHTTPServer [::ffff:192.168.178.20] HTTP request: /characteristics?id=5.11,5.10 +9s
HAPServer [02:4A:04:C1:31:70] HAP Request: GET /characteristics?id=5.11,5.10 +1ms
Accessory [Homebridge Hub] Getting value for Characteristic "Brightness" +2ms
Accessory [Homebridge Hub] Got Characteristic "Brightness" value: 100 +1ms
Accessory [Homebridge Hub] Getting value for Characteristic "On" +0ms
Accessory [Homebridge Hub] Got Characteristic "On" value: true +1ms
EventedHTTPServer [::ffff:192.168.178.20] HTTP Response is finished +2ms
EventedHTTPServer [::ffff:192.168.178.20] HTTP request: /characteristics +186ms
HAPServer [02:4A:04:C1:31:70] HAP Request: PUT /characteristics +1ms
Accessory [Homebridge Hub] Processing characteristic set: [{"aid":10,"iid":10,"value":0},{"aid":8,"iid":10,"value":0},{"aid":5,"iid":10,"value":0},{"aid":6,"iid":10,"value":0}] +2ms
Accessory [Homebridge Hub] Setting Characteristic "On" to value 0 +1ms
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":25}
Accessory [Homebridge Hub] Setting Characteristic "On" to value 0 +3ms
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":26}
Accessory [Homebridge Hub] Setting Characteristic "On" to value 0 +3ms
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '5.10' with data: {"characteristics":[{"aid":5,"iid":10,"value":false}]} +2ms
EventedHTTPServer [::ffff:192.168.178.20] Muting event '5.10' notification for this connection since it originated here. +2ms
Accessory [Homebridge Hub] Setting Characteristic "On" to value 0 +1ms
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":27}
[2018-8-3 16:48:45] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":25}
[2018-8-3 16:48:45] [Yeelight] { id: 25, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '10.10' with data: {"characteristics":[{"aid":10,"iid":10,"value":false}]} +99ms
EventedHTTPServer [::ffff:192.168.178.20] Muting event '10.10' notification for this connection since it originated here. +3ms
[2018-8-3 16:48:45] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":26}
[2018-8-3 16:48:45] [Yeelight] warn failed attempt 0 after 100ms.
[2018-8-3 16:48:45] [Yeelight] {"method":"set_power","params":["off","smooth",100],"id":27}
[2018-8-3 16:48:45] [Yeelight] { id: 26, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '8.10' with data: {"characteristics":[{"aid":8,"iid":10,"value":false}]} +13ms
EventedHTTPServer [::ffff:192.168.178.20] Sending HTTP event '8.10' with data: {"characteristics":[{"aid":8,"iid":10,"value":false}]} +3ms
[2018-8-3 16:48:45] [Yeelight] { id: 27, result: [ 'ok' ] }
EventedHTTPServer [::ffff:192.168.178.43] Sending HTTP event '6.10' with data: {"characteristics":[{"aid":6,"iid":10,"value":false}]} +5ms
EventedHTTPServer [::ffff:192.168.178.20] Sending HTTP event '6.10' with data: {"characteristics":[{"aid":6,"iid":10,"value":false}]} +2ms
EventedHTTPServer [::ffff:192.168.178.20] HTTP Response is finished +4ms
EventedHTTPServer [::ffff:192.168.178.20] Writing pending HTTP event data +1ms
I have just released a beta version with color temperature support. It can be installed with npm install -g homebridge-yeelight-wifi@beta
.
The file accessories/cachedAccessories
must be removed before starting the new version.
Let me know if you still have problems with the new version.