[OBSOLETE] Hello, Home HomeKit (and Siri!) control via homebridge

@tonesto7 i recently converted from jnewland’s version to yours, all in all it works well, but when i have “Send homekit Commands Locally” turned on it my devices don’t seam to update well and some devices get stuck on “updating” when i turn it off, things work as expected. i’m running latest code on everything (home bridge, home bridge plugin, and smart app) on OSX 10.13.6 w/ node 9.11.2. can you point me in the right direction to troubleshoot why the local commands aren’t working?

I’m entirely certain that it’s the local commands. I’ve noticed updating issue since ios 12.0.
Basically if you leave the home app and return it will show the correct state.
I will still check to see if I can find any issues though.

I tried to install the smartthings-tonesto7 plugin for homebridge tonight and ran into node.js issues on my Mac.

Decided to go ahead and update to the latest node.js and re-load homebridge and my other homebridge plugins. All works fine after the updates, but am now getting a different error when I have the smartthings platform included in my config.json (already validated it as valid json)

Any help would be appreciated, thanks! :slight_smile:

[12/14/2018, 1:15:56 AM] There was a problem reading your config.json file.
[12/14/2018, 1:15:56 AM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[12/14/2018, 1:15:56 AM]
/usr/local/lib/node_modules/homebridge/lib/server.js:214
throw err;
^

SyntaxError: Unexpected token in JSON at position 913
at JSON.parse ()
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:208:19)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:56:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:30:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:723:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:734:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)

Firstly, loving this. I had mine setup without too much issue. Only slight gotcha was that I did a cut and paste of the config and the cut captured some odd chars that prevented the config file from being read. I put it into the JASON validator and it showed me the issue. All I had to do was delete the line and retype it.

I have come across an issue that I hope can be solved. I have a Fibaro Universal Binary sensor monitoring a garden pond. The temperature updates OK, but for some reason Homekit also shows humidity sensors for each temp sensor when there are none. Is there a way to removethrs without killing the temp sensor as well?

One other thing I found today. I have a temp sensor in the freezer. Shows -16.6 on the ST app, but 0.0 in HomeKit

Interestingly I have found it quicker to ask Siri to do something than to go to the ST app and do it there.

anyone using this ?

I set it up on a windows 10 computer, installed went great, however when trying to get configuration file after slecting lights, and switches i only get platform and access token, when i use that config.json file i can add it to apple home, but its no devices in there, the devices arent been generated in the file i need to copy

The config file doesn’t contain any of the devices. it’s only for the plugin to get the auth tokens and callback web path

I believe you need to add the “excluded_capabilities” to your config file. Although, I have not been able to get this to work. Below is what I added to my config file. I am using the device ID number returned from the SmartThings IDE logs and the Capabilities Reference Name. Can anyone describe in detail how to exclude capabilities? Thx.

“platform”: “SmartThings”,
“name”: “SmartThings”,
“app_url”: “https://graph-na02-useast1.api.smartthings.com:443/api/smartapps/installations/”,
“app_id”: “x-x-x-x”,
“access_token”: “x-x-x-x”,
“update_method”: “direct”,
“direct_ip”: “10.0.0.70”,
“direct_port”: 8000,
“excluded_capabilities”: {
“x-x-x-x-x”: [
“Illuminance Measurement”,
“Relative Humidity Measurement”,
“Motion Sensor”
]
}

Interesting observation. I will take a look at that. I am curious this and to why Homebridge creates humidity sensors for this device at all. They do not appear as capabilities in the DTH and humidity sensors are not created for some other temp sensors I have.

hi Anthony @tonesto7 do you think the version you have of the Smartthings will have this issue. ?

i just installed this and got bunch of errors on various kind of devices.seems like they are not supported in the plugin but worked fine in the pdlove app

also had to remove the pdlove plugin from homebridge as it was giving error that the platform name is already registered.

Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom VS] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom VS] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Kitchen] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Kitchen] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Kitchen left] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Kitchen left] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Livingroom VS] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Livingroom VS] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Media center] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Media center] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [PowerMeter] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [PowerMeter] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Samsung] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Samsung] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [ThinkEco Switch] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [ThinkEco Switch] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [dehumidifier] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [dehumidifier] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 1] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 1] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 2] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 2] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 3] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Dimmable light 3] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room back left] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room back left] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room back right] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room back right] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room front left] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room front left] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room front right] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room front right] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Hue bloom 1] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Hue bloom 1] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Hue bloom 2] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Hue bloom 2] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom Fan-Light] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom Fan-Light] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bed room left] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bed room left] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room Fan-Light] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family room Fan-Light] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom right] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom right] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family Dimmer] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Family Dimmer] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom Fan High] Identification request
Jan 30 19:22:42 raspberrypi homebridge[3287]: Thu, 31 Jan 2019 00:22:42 GMT Accessory [Bedroom Fan High] Identification request ignored; no listeners to ‘identify’ event
Jan 30 19:22:42 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
Jan 30 19:22:42 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
Jan 30 19:22:42 raspberrypi systemd[1]: homebridge.service: Failed with result ‘exit-code’.

Does anyone have the “excluded_capabilities” working with tonesto7’s homebridge plug-in? I can’t find the device_id in the IDE for my multisensor and would like to exclude Illuminance and Humidity.

I just switched from pdlove to tonesto7. In the pdlove’s SmartApp, there was a way to see all the device ids and capabilities, but I don’t know how to do that for tonesto7’s version.

Please help.

1 Like

did you get this fixed and how I’m having the same problem

im having the same problem did you find a solution

Device ID is the last part of the URL in the IDE if you go into the device in question.

Can you please explain exactly what it means to send the HomeKit commands locally? It seems like it would be desirable because it sounds like it would cut out some of the cloud communication, but when I turn it on I can’t set the levels on my dimmable lights in the Home app and get “reqPromise Error: Error: socket hang up” errors in the console log (I have homebridge running on a Mac Mini). It also seems less responsive. Turning off local commands fixes both of those.

I think the latest hub firmware has broken local hub actions. So it’s not working at the moment

2 Likes

tonesto7 i am using your homebridge plugin , snd i lost the local control after the latest firmware update , will that be fixed soon ?

1 Like

That’s out of my hands… The code is not broken something changed in the firmware that has broken the work around used for the local hubactions

1 Like

Thank you for the replay

Bummer. Could we file a bug report, or was this an “unintended feature” they closed?