- If you are adding a Homeseer accessory, it needs to be inside another "accessories: []" that is inside the HomeSeer platform. You have yours inside accessories outside of the platform section. I added an accessories section under your HomeSeer platform as well as moved your device inside of it.
- Formatting your host under platforms can include the username/password you want to use for Homebridge, so you don't need separate entries for username or password. In the host entry, the colon separates username/password and don't forget the "@" between password and the actual URL to your Homeseer server (I just use the IP Address for mine). Note: I know this is true for HomeSeer 3. Not sure if you are using HS4 or if this format for the URL, passing the username/password, also works for HS4 or not.
- You had a, "Z-Wave Switch Binary": []," out in the middle of nowhere, so I removed it below
- The accessories: [] outside of platforms needs to exist, but can simply be an empty array
- I don't have a description in my JSON, so I removed yours below
- the ASCIIport's default is 11000, so you don't need it in your JSON
- I added the "poll" attribute as that tells Homebridge how often to poll for changes in seconds over the ASCIIport. I'm not sure if 60 is the default or not, but it's still in mine, so I included it below.
- I added the events array, even though it's empty. It'll give you a place to insert any Homeseer events you want to trigger from Homebridge
- You need to lookup the Homeseer Reference ID number for your light. It can be found on the Advanced tab of the device's page.
- I added onValue/offValue for your switch. The value of "on" is typically set to 100 in Homeseer. You may or may not have changed that. If you did, put the correct value in the onValue for this accessory.
- Even though it may be a switch on the wall, if it is connected to a light, I'd define it as a lightbulb in config.json
- If you can dim the light via your Z-Wave switch, then add the line "can_dim": true.
Code:
{ "bridge": { "name": "Homebridge 9793", "username": "0E:D1:72:36:97:93", "port": 51994, "pin": "477-87-761" }, "accessories": [], "platforms": [ { "platform": "HomeSeer", "name": "HomeSeer", "host": "http://[B][COLOR=#16a085]<username>[/COLOR]:[COLOR=#16a085]<password>[/COLOR]@[COLOR=#16a085]<address_of_your_homeseer_server>[/COLOR][/B]", [B][COLOR=#16a085] "poll": 60, "events": [], "accessories": [ { "ref": <reference_id_number_of_your_z_wave_light_in_homeseer>, "type": "Lightbulb", "onValue": 100, "offValue": 0, "can_dim": true, (only add this if your light is actually dimmable using the Z-Wave switch) "name": "Lamp tafel - Switch 1" (I would name this, "Light" or "Table Lamp" etc. something descriptive and lends itself to saying it naturally to Siri) ][/COLOR][/B] } ] }
Leave a comment: