New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MultiCLIP explanation #164
Comments
MultiCLIP is a trick to combine multiple CLIP sensors on the Hue bridge into one HomeKit accessory, to avoid hitting the HomeKit limit of 99 accessories per HomeKit bridge. It's very much like how the Hue motion sensor is exposed: one HomeKit accessory with multiple services (one for each resource) instead of a different accessory per resource. You don't need to edit any file, you just need to create your CLIP sensors on the Hue bridge, with the following attributes:
For example, I've created the following sensors to control my Living Room (this is on deCONZ, but it's the same for the Hue bridge): {
"config": {
"on": true,
"reachable": true
},
"etag": "b559f5b22f93fea07906a679c8c56932",
"manufacturername": "homebridge-hue",
"modelid": "CLIPGenericFlag",
"name": "Living Room",
"state": {
"flag": true,
"lastupdated": "2017-09-19T20:46:14"
},
"swversion": "1",
"type": "CLIPGenericFlag",
"uniqueid": "/sensors/220-220"
} and {
"config": {
"on": true,
"reachable": true
},
"etag": "c0546974f862e1b1c79ce10b02ab28d8",
"manufacturername": "homebridge-hue",
"modelid": "CLIPGenericStatus",
"name": "Living Room Status",
"state": {
"lastupdated": "2017-09-19T20:46:22",
"status": 1
},
"swversion": "-1,3",
"type": "CLIPGenericStatus",
"uniqueid": "/sensors/220-221"
} In HomeKit, this becomes: Another example is my virtual weather station, for which I've created the following: {
"config": {
"on": true,
"reachable": true
},
"etag": "0f293e90fd4625487b7a509cc827f352",
"manufacturername": "homebridge-hue",
"modelid": "CLIPHumidity",
"name": "Terrace Humidity",
"state": {
"humidity": 7400,
"lastupdated": "2017-09-19T20:50:04"
},
"swversion": "0",
"type": "CLIPHumidity",
"uniqueid": "/sensors/340-347"
} {
"config": {
"on": true,
"reachable": true
},
"etag": "0f293e90fd4625487b7a509cc827f352",
"manufacturername": "homebridge-hue",
"modelid": "CLIPPressure",
"name": "Terrace Air Pressure",
"state": {
"lastupdated": "2017-09-19T20:50:04",
"pressure": 1020
},
"swversion": "0",
"type": "CLIPPressure",
"uniqueid": "/sensors/340-348"
} {
"config": {
"on": true,
"reachable": true
},
"etag": "0f293e90fd4625487b7a509cc827f352",
"manufacturername": "homebridge-hue",
"modelid": "CLIPTemperature",
"name": "Terrace Temperature",
"state": {
"lastupdated": "2017-09-19T20:50:04",
"temperature": 1280
},
"swversion": "0",
"type": "CLIPTemperature",
"uniqueid": "/sensors/340-349"
} If you use ph_sensor_clip_flag 220 220 "Living Room"
ph_sensor_clip_status 221 220 "Living Room Status" -1 3
ph_sensor_clip_humidity 347 340 "Terrace Humidity"
ph_sensor_clip_pressure 348 340 "Terrace Air Pressure"
ph_sensor_clip_temperature 349 340 "Terrace Temperature" |
Thank you so much! |
As of v0.8.4, MultiCLIP resources are created using resourcelinks, like: {
"classid": 1,
"description": "multiclip",
"links": [
"/sensors/347",
"/sensors/348",
"/sensors/349"
],
"name": "homebridge-hue",
"owner": "xxxxxxxxxx",
"recycle": false,
"type": "Link"
} You no longer need to set the Similarly, you can create a MultiLight resource, to combine multiple lights (e.g. in a single chandelier) into one accessory: {
"classid": 1,
"description": "multilight",
"links": [
"/lights/221",
"/lights/222",
"/lights/223",
"/lights/224",
"/lights/225",
"/lights/226"
],
"name": "homebridge-hue",
"owner": "xxxxxxxxxx",
"recycle": false,
"type": "Link"
} The serial number and the name for the MultiLight or MultiCLIP accessory are taken from the first (valid) resource in Run
|
Hi, I wanted to create a
And that has created a
Should I first create Thanks. |
Why on earth would you want to do that? |
Because I thought that the three sensors are exposed as three accessories. Why did I think that? No idea. |
I am at a loss on which file I need to edit for MultiCLIP. Would you mind explaining in greater detail? Thanks!
The text was updated successfully, but these errors were encountered: