ebaauw / homebridge-hue

Homebridge plugin for Philips Hue
Apache License 2.0
897 stars 91 forks source link

warning: unknown light model #94

Closed SmoothMC closed 7 years ago

SmoothMC commented 7 years ago

i got some issues with the old iris lamps from philips. maybe there is a workaround?

thx

[2017-04-17 16:25:01] [Hue] Philips hue: BSB001 bridge, api v1.16.0 [2017-04-17 16:25:06] [Hue] Philips hue: /lights/3: warning: unknown light model {"state":{"on":false,"bri":254,"hue":5642,"sat":129,"effect":"none","xy":[0.5018,0.4152],"alert":"none","colormode":"xy","reachable":false},"type":"Color light","name":"Küchenregal","modelid":"LLC001","manufacturername":"Philips","uniqueid":"ff:ff:ff:ff:ff:ff:ff:ff-0b","swversion":""} [2017-04-17 16:25:06] [Hue] Philips hue: /lights/6: warning: unknown light model {"state":{"on":false,"bri":254,"hue":0,"sat":0,"effect":"none","xy":[0,0],"alert":"none","colormode":"hs","reachable":false},"type":"Color light","name":"Couch","modelid":"LLC001","manufacturername":"Philips","uniqueid":"ff:ff:ff:ff:ff:ff:ff:ff-0b","swversion":""} [2017-04-17 16:25:06] [Hue] Philips hue: 26 accessories [2017-04-17 16:25:06] [Hue] Initializing platform accessory 'Philips hue'... [2017-04-17 16:25:06] [Hue] Philips hue: 2 services [2017-04-17 16:25:06] [Hue] Initializing platform accessory 'Deckenlampe'... [2017-04-17 16:25:06] [Hue] Initializing platform accessory 'TV R'... [2017-04-17 16:25:06] [Hue] Initializing platform accessory 'Küchenregal'... [2017-04-17 16:25:06] [Hue] Cannot add a Service with the same UUID '00000043-0000-1000-8000-0026BB765291' as another Service in this Accessory without also defining a unique 'subtype' property. [2017-04-17 16:26:28] [Hue] Hue temperature sensor 1: set homekit temperature from 18.8˚C to 19.1˚C on Mon Apr 17 2017 16:26:25

ebaauw commented 7 years ago

I can add the LLC001 as known light, which will address the unknown light model warnings, but I don't think they're related to the Cannot add a Service with the same UUID error.

Did you mask the uniqueid values or are they really the same for both lights? As the name suggests, the uniqueid should be unique. Normally, it's based on the ZigBee mac address of the light (typically starting with 00:17:88 for Philips devices) followed by the ZigBee endpoint (which is 0d for Philips lights). What about the uniqueid of your other lights? I would expect Deckenlampe or TV R to report the same uniqueid value for the initialisation of Küchenregal to fail with this error.

I've never seen this before. Before suggesting to factory reset your bridge and reconnect all lights and sensors, could you please capture the output of homebridge -D and attach that here? Could you also please attach a dump of your bridge state. See Troubleshooting in the README how to do that.

SmoothMC commented 7 years ago

i think the problem is like you said the 1. Gen Iris both (Couch & Küchenregal) has the same mac address ff:ff:ff:ff:ff:ff:ff:ff-0b the only difference is the name. is there a way to get it work?

[2017-04-18 12:11:24] [Hue] 192.168.0.7: hue bridge request #1: get /config [2017-04-18 12:11:24] [Hue] 192.168.0.7: hue bridge request #1: ok [2017-04-18 12:11:24] [Hue] Philips hue: BSB001 bridge, api v1.16.0 [2017-04-18 12:11:24] [Hue] Philips hue: hue bridge request #2: get / [2017-04-18 12:11:29] [Hue] Philips hue: hue bridge request #2: ok [2017-04-18 12:11:29] [Hue] Philips hue: /lights/1: Philips LCT001 (Extended color light) "Deckenlampe" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/2: Philips LLC012 (Color light) "TV R" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/3: Philips LLC001 (Color light) "Küchenregal" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/3: warning: unknown light model {"state":{"on":false,"bri":1,"hue":5642,"sat":129,"effect":"none","xy":[0.369,0.3719],"alert":"none","colormode":"xy","reachable":false},"type":"Color light","name":"Küchenregal","modelid":"LLC001","manufacturername":"Philips","uniqueid":"ff:ff:ff:ff:ff:ff:ff:ff-0b","swversion":""} [2017-04-18 12:11:29] [Hue] Philips hue: /lights/4: Philips LLC012 (Color light) "TV L" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/5: Philips LCT001 (Extended color light) "Schreibtischlampe" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/6: Philips LLC001 (Color light) "Couch" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/6: warning: unknown light model {"state":{"on":false,"bri":99,"hue":23119,"sat":254,"effect":"none","xy":[0.6259,0.287],"alert":"none","colormode":"hs","reachable":false},"type":"Color light","name":"Couch","modelid":"LLC001","manufacturername":"Philips","uniqueid":"ff:ff:ff:ff:ff:ff:ff:ff-0b","swversion":""} [2017-04-18 12:11:29] [Hue] Philips hue: /lights/7: Philips LCT001 (Extended color light) "Küchentisch" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/9: Philips LST002 (Extended color light) "Küchenzeile" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/10: Philips LCT010 (Extended color light) "Decke" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/11: Philips LCT010 (Extended color light) "Stehlampe" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/12: Philips LTW013 (Color temperature light) "Flur 3" [2017-04-18 12:11:29] [Hue] Philips hue: /lights/13: Philips LTW013 (Color temperature light) "Flur 1" [2017-04-18 12:11:29] [Hue] Philips hue: 12 lights [2017-04-18 12:11:29] [Hue] Philips hue: 0 groups [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/1: Daylight sensor "Daylight" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/5: CLIPGenericStatus sensor "Licht-Status" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/6: CLIPGenericStatus sensor "XFDani[1]sn:state" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/7: CLIPGenericStatus sensor "XFDani[1][1]sn:step" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/8: CLIPGenericStatus sensor "XFDani[6]sn:state" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/9: CLIPGenericStatus sensor "XFDani[6][1]sn:step" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/11: ignoring CLIPPresence sensor "HomeAway" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/12: CLIPGenericStatus sensor "XFDani[5]sn:state" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/13: CLIPGenericStatus sensor "XFDani[5][1]sn:step" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/14: CLIPGenericFlag sensor "Aufwachen Sven" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/15: CLIPGenericFlag sensor "Aufwachen Micha" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/17: ZLLTemperature sensor "Hue temperature sensor 1" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/18: ZLLPresence sensor "Flur Sensor" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/19: ZLLLightLevel sensor "Hue ambient light sensor 1" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/20: CLIPGenericStatus sensor "MotionSensor 18.Companion" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/21: ZLLSwitch sensor "Küche Dimmer Switch" [2017-04-18 12:11:29] [Hue] Philips hue: /sensors/22: CLIPGenericStatus sensor "Dimmer Switch 21 SceneCycle" [2017-04-18 12:11:29] [Hue] Philips hue: 16 sensors [2017-04-18 12:11:29] [Hue] Philips hue: 0 schedules [2017-04-18 12:11:29] [Hue] Philips hue: 0 rules [2017-04-18 12:11:29] [Hue] Philips hue: 26 accessories [2017-04-18 12:11:29] [Hue] Initializing platform accessory 'Philips hue'... [2017-04-18 12:11:29] [Hue] Philips hue: 2 services [2017-04-18 12:11:29] [Hue] Initializing platform accessory 'Deckenlampe'... [2017-04-18 12:11:29] [Hue] Initializing platform accessory 'TV R'... [2017-04-18 12:11:29] [Hue] Initializing platform accessory 'Küchenregal'... [2017-04-18 12:11:29] [Hue] Cannot add a Service with the same UUID '00000043-0000-1000-8000-0026BB765291' as another Service in this Accessory without also defining a unique 'subtype' property. [2017-04-18 12:11:30] [Hue] Philips hue: hue bridge request #3: get /config [2017-04-18 12:11:30] [Hue] Philips hue: hue bridge request #3: ok [2017-04-18 12:11:30] [Hue] Philips hue: hue bridge request #4: get /sensors [2017-04-18 12:11:31] [Hue] Philips hue: hue bridge request #4: ok [2017-04-18 12:11:31] [Hue] Philips hue: hue bridge request #5: get /lights [2017-04-18 12:11:31] [Hue] Philips hue: hue bridge request #5: ok [2017-04-18 12:11:35] [Hue] Philips hue: hue bridge request #6: get /config [2017-04-18 12:11:35] [Hue] Philips hue: hue bridge request #6: ok [2017-04-18 12:11:35] [Hue] Philips hue: hue bridge request #7: get /sensors [2017-04-18 12:11:35] [Hue] Philips hue: hue bridge request #7: ok [2017-04-18 12:11:35] [Hue] Philips hue: hue bridge request #8: get /lights [2017-04-18 12:11:36] [Hue] Philips hue: hue bridge request #8: ok [2017-04-18 12:11:40] [Hue] Philips hue: hue bridge request #9: get /config [2017-04-18 12:11:40] [Hue] Philips hue: hue bridge request #9: ok [2017-04-18 12:11:40] [Hue] Philips hue: hue bridge request #10: get /sensors [2017-04-18 12:11:40] [Hue] Philips hue: hue bridge request #10: ok [2017-04-18 12:11:40] [Hue] Philips hue: hue bridge request #11: get /lights [2017-04-18 12:11:41] [Hue] Philips hue: hue bridge request #11: ok [2017-04-18 12:11:45] [Hue] Philips hue: hue bridge request #12: get /config [2017-04-18 12:11:45] [Hue] Philips hue: hue bridge request #12: ok [2017-04-18 12:11:45] [Hue] Philips hue: hue bridge request #13: get /sensors [2017-04-18 12:11:46] [Hue] Philips hue: hue bridge request #13: ok [2017-04-18 12:11:46] [Hue] Philips hue: hue bridge request #14: get /lights [2017-04-18 12:11:46] [Hue] Philips hue: hue bridge request #14: ok [2017-04-18 12:11:50] [Hue] Philips hue: hue bridge request #15: get /config [2017-04-18 12:11:50] [Hue] Philips hue: hue bridge request #15: ok [2017-04-18 12:11:50] [Hue] Philips hue: hue bridge request #16: get /sensors [2017-04-18 12:11:51] [Hue] Philips hue: hue bridge request #16: ok [2017-04-18 12:11:51] [Hue] Philips hue: hue bridge request #17: get /lights [2017-04-18 12:11:51] [Hue] Philips hue: hue bridge request #17: ok [2017-04-18 12:11:55] [Hue] Philips hue: hue bridge request #18: get /config [2017-04-18 12:11:55] [Hue] Philips hue: hue bridge request #18: ok [2017-04-18 12:11:55] [Hue] Philips hue: hue bridge request #19: get /sensors [2017-04-18 12:11:56] [Hue] Philips hue: hue bridge request #19: ok [2017-04-18 12:11:56] [Hue] Philips hue: hue bridge request #20: get /lights [2017-04-18 12:11:56] [Hue] Philips hue: hue bridge request #20: ok [2017-04-18 12:12:00] [Hue] Philips hue: hue bridge request #21: get /config [2017-04-18 12:12:00] [Hue] Philips hue: hue bridge request #21: ok [2017-04-18 12:12:00] [Hue] Philips hue: hue bridge request #22: get /sensors [2017-04-18 12:12:01] [Hue] Philips hue: hue bridge request #22: ok [2017-04-18 12:12:01] [Hue] Philips hue: hue bridge request #23: get /lights [2017-04-18 12:12:01] [Hue] Philips hue: hue bridge request #23: ok [2017-04-18 12:12:05] [Hue] Philips hue: hue bridge request #24: get /config [2017-04-18 12:12:05] [Hue] Philips hue: hue bridge request #24: ok [2017-04-18 12:12:05] [Hue] Philips hue: hue bridge request #25: get /sensors [2017-04-18 12:12:06] [Hue] Philips hue: hue bridge request #25: ok [2017-04-18 12:12:06] [Hue] Philips hue: hue bridge request #26: get /lights [2017-04-18 12:12:06] [Hue] Philips hue: hue bridge request #26: ok [2017-04-18 12:12:10] [Hue] Philips hue: hue bridge request #27: get /config [2017-04-18 12:12:10] [Hue] Philips hue: hue bridge request #27: ok [2017-04-18 12:12:10] [Hue] Philips hue: hue bridge request #28: get /sensors [2017-04-18 12:12:11] [Hue] Philips hue: hue bridge request #28: ok [2017-04-18 12:12:11] [Hue] Philips hue: hue bridge request #29: get /lights [2017-04-18 12:12:11] [Hue] Philips hue: hue bridge request #29: ok [2017-04-18 12:12:15] [Hue] Philips hue: hue bridge request #30: get /config [2017-04-18 12:12:15] [Hue] Philips hue: hue bridge request #30: ok [2017-04-18 12:12:15] [Hue] Philips hue: hue bridge request #31: get /sensors [2017-04-18 12:12:16] [Hue] Philips hue: hue bridge request #31: ok [2017-04-18 12:12:16] [Hue] Philips hue: hue bridge request #32: get /lights [2017-04-18 12:12:16] [Hue] Philips hue: hue bridge request #32: ok [2017-04-18 12:12:20] [Hue] Philips hue: hue bridge request #33: get /config [2017-04-18 12:12:20] [Hue] Philips hue: hue bridge request #33: ok [2017-04-18 12:12:20] [Hue] Philips hue: hue bridge request #34: get /sensors [2017-04-18 12:12:21] [Hue] Philips hue: hue bridge request #34: ok [2017-04-18 12:12:21] [Hue] Philips hue: hue bridge request #35: get /lights [2017-04-18 12:12:21] [Hue] Philips hue: hue bridge request #35: ok ^C[2017-04-18 12:12:25] Got SIGINT, shutting down Homebridge...

ebaauw commented 7 years ago

For ZigBee devices (lights, sensors, switches), I base the accessory UUID on the mac address; for Hue bridge resources (groups, CLIP sensors), I base it on the URI. I could base the UUID for the LLC001 on the URI as well. HomeKit would no longer recognise it as the same light if you remove it from your bridge and reconnect it, but that's probably not something you plan on doing regularly anyway.

How did you link the Iris lights to your bridge? It looks like the bridge didn't read the full light configuration correctly (swversion is also empty). I don't think these lights are officially supported for the Hue bridge by Philips - maybe because of this?

ebaauw commented 7 years ago

@SmoothMC, Could you try if v0.3.16 solves this issue?

ebaauw commented 7 years ago

Oops typo. @SmoothMC, please try v0.3.17.

SmoothMC commented 7 years ago

So far, so good ;)

there now two problems...

  1. the Light doesn't support status update [2017-04-19 00:04:17] [Hue] Küchenregal: homekit power changed from 0 to 1 [2017-04-19 00:04:20] [Hue] Küchenregal: not reachable: set homekit power from 1 to 0

thats because...the light doesn't submit a on off status. The reason is, that this light are the 1 Gen of Iris and on there release they doesn't exist any Hue bridge ;)

  1. There is no way to change the color for these lights with this plugin color change works...but i would change to your plugin because it support sensors etc. :) https://github.com/thkl/homebridge-philipshue

I hope you can add some code to make a exception for these lights in your script. so they doesn't need the power state

thx

ebaauw commented 7 years ago

thats because...the light doesn't submit a on off status.

Actually, it does. The other plugin reports the light as off, since it's reachable attribute is false. My plugin behaves like that when you set wallSwitch in config.json. If you remove that (or set it to false), the not reachable message will no longer appear and homebridge-hue no longer turns off the light. In the Hue app, you should be able to see the light on/off state change, and you should see an orange Unreachable warning.

There is no way to change the color for these lights

The other plugin sets colour using hue and sat. This results in the light colour being off from the colour shown in your HomeKit app. Homebridge-hue sets colour using xy, as specified by the Hue API. Can you change the colour from the Hue app? Does the light report colormode as xy after that? Note that in your log, Küchenregal shows colormode xy.

SmoothMC commented 7 years ago

I think that's the point...there is also no way to change the color with the native hue app. is there a way for you to make some changes for these kind of lights?

if not...it would be nice to have a feature to exclude some lights :)

ebaauw commented 7 years ago

Did you get the on/off to show by disabling wallSwitch? How about the Hue app?

is there a way for you to make some changes for these kind of lights

Not easily. How did you link the Gen1 Iris lights to your bridge? On the Hue developers forum, I've seen mention of the pre-Hue Gen3 and even Gen2 Living Colors being able (or not) to connect to the Hue bridge, but not of the Gen1. I don't think I want to spend the time just for one, unsupported, light type, which is hardly used.

if not...it would be nice to have a feature to exclude some lights :)

Currently, homebridge-hue only supports excluding all Philips lights (for when they're already exposed by a v2 Hue bridge), or all lights. You could configure homebridge-hue to expose only the sensors and use homebridge-philipshue to expose the lights.

I could change homebridge-hue to ignore the LLC001, but this would be hardcoded, not configurable. Implementing the equivalent of excludeSensorTypes for lights would become too ugly, as you need to specify both manufacturername and modelid. Optionally ignoring individual lights becomes too ugly as well, see also the considerations in issue #7.

SmoothMC commented 7 years ago

connecting the 1. Gen iris to hue bridge is a little bit tricky...you first have to connect the lights to a remote and then the remote to the bridge.

i think i then use both plugins yours for sensors and the other for the lights as a workaround...maybe you got a flash of inspiration for a simple solution in your script ;)

ebaauw commented 7 years ago

maybe you got a flash of inspiration for a simple solution in your script

@SmoothMC Could you try v0.3.18? I'm not sure if it reads back the LLC001 colour correctly from the Hue bridge, but you should be able to set the colour. Also, reachable for the LLC001 is now ignored, even if wallSwitch is set in config.json, just like for an On/off plugin unit.

ebaauw commented 7 years ago

@SmoothMC did you get to try v0.3.18 (or latest v0.4.0)?