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

They know and I don’t think they think it’s worth the effort to repair it :expressionless:
It really doesn’t add much value to the homebridge integration anyways

Just thought I’d share my experience. I had installed @pdlove 's HomeKit SmartApps. It worked well, but there were some limitations (for example I have both zigbee light bulbs and Z-wave switches controlling dumb lights. Using Siri I had to say Turn Off All Lights, and also Turn Off All Switches because @pdlove’s implementation didn’t allow me to specify that the switches were also lights.

(I also used @ajvwhite’s Homebridge Routine Triggers)

So I thought I’d try @tonesto7’s implementation.

I deleted the old SmartApps from my phone, and tried to add the new json text. I also installed the code on my raspberry pi for the new devices.

npm i -g homebridge-smartthings-tonesto7

However I was unable to get homebridge to run.

After some troubleshooting I realized that I had to remove the old code from my raspberry Pi:

npm remove -g homebridge-smartthings-routine-triggers

and

npm remove -g homebridge-smartthings

I also had to remove the Accessories that routine-triggers had me put into the json file.

My json file now looks like this (XXXX are obviously my specific code):

It seems to be running great. I hope this helps someone get theirs setup.

{
“bridge”: {
“name”: “Homebridge”,
“username”: “XX:XX:XX:XX:XX:XX”,
“port”: XXXXX,
“pin”: “XXX-XX-XXX”
},
“description”: “JSON API”
,
“accessories”: “”
,
“platforms”: [
{
“platform”: “SmartThings”,
“name”: “SmartThings”,
“app_url”: “https://graph.api.smartthings.com:443/api/smartapps/installations/”,
“access_token”: “XXXXXXXXXXX”,
“app_id”: “XXXXXXXXXXXX”
}
]
}

1 Like

Did you remember to remove the @pdlove smartthings plugins?

npm remove -g homebridge-smartthings

I wrote up how I migrated from @pdlove’s implementation in the post below:

1 Like

yes i did remove the pdlove version… thats how i got it to work . but it was erroring out on certain Devices. when i removed these devices it worked.

Hi I just installed homebridge, I’m having some issues runnin it. I’m getting the error below I’m not sure what I’m doing wrong, can anyone help pin point the issue?

[2019-4-25 00:17:19] Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: 800a1d7f-0d6d-46d4-b1c9-bff45b57f275

at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/hap-nodejs/lib/Accessory.js:268:13)

at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:416:24)

at /usr/local/lib/node_modules/hap-nodejs/lib/util/once.js:16:19

at /usr/local/lib/node_modules/homebridge-smartthings-tonesto7/index.js:197:13

at /usr/local/lib/node_modules/homebridge-smartthings-tonesto7/index.js:121:27

at /usr/local/lib/node_modules/homebridge-smartthings-tonesto7/lib/he_st_api.js:130:17

at IncomingMessage. (/usr/local/lib/node_modules/homebridge-smartthings-tonesto7/lib/he_st_api.js:45:17)

at emitNone (events.js:110:20)

at IncomingMessage.emit (events.js:207:7)

at endReadableNT (_stream_readable.js:1045:12)

at _combinedTickCallback (internal/process/next_tick.js:138:11)

at process._tickCallback (internal/process/next_tick.js:180:9)

[2019-4-25 00:17:19] Got SIGTERM, shutting down Homebridge…

1 Like

Thank you I will take a look at the first post see if it hels. I already tried the second one about cache file did not help

Any help here appreciated, moving from pdlove to tonesto7 homebridge , configured all the procedures but homebridge loading all accessories and failing with error. There is no issue with config.json or accessory.

[5/11/2019, 1:57:53 PM] SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at IncomingMessage.request.on.on (/usr/local/lib/node_modules/homebridge-smartthings-tonesto7/index.js:330:29)
at IncomingMessage.emit (events.js:182:13)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
[5/11/2019, 1:57:53 PM] Got SIGTERM, shutting down Homebridge…

@tonesto7 Running version 1.5.3 of the app and 1.5.6 of the plugin and an issue has cropped up with the latest version.

Some of my lights now appear as buttons and cannot be controlled. These all on Switch 1 of Fibaro Double Switch 2 (FGS-223) modules. The use the embedded Fibaro Double Switch 2 ZW5 DTH. The lights on Switch 2 are OK as they use the child handler Fibaro Double Switch 2 - USB. I had a look at the DTH and noticed that the parent (S1) handler has the following capabilities

capability "Switch"
capability "Energy Meter"
capability "Power Meter"
capability "Button"
capability "Configuration"
capability "Health Check"
capability "Refresh"

The child (S2) handler has these.

capability "Switch"
capability "Actuator"
capability "Sensor"
capability "Energy Meter"
capability "Power Meter"
capability "Refresh"
capability "Configuration"
capability "Health Check"

I think the app is picking up the “Button” capability and not the “Switch” capability as it should. Perhaps this is as a result of @shnhrrsn button mode fixes?

Could you take a look?

Thanks

I think you are right about the latest button fixes I merged. I will take a look once I get into the office

[deleted post, fixed problem]

1 Like

Anthony,
I have been using the latest version for both ide as well as rasberry pi code but since the last update, homebridge started becoming less responsive. It takes a little of bit time to send the command. I am not sure that this is on my side or Smartthings side. I have wanted to ask if anybody else has similar issues.

Any news on the buttons issue?

I had a go at adding an exclude buttons section to the SmartAPP to force the device back to a switch. This was partially successful. I got the switch to show, but the device just said not responding.

Any chance you can take a look?

Thanks

What button issue? I haven’t noticed anything…

The issue I mentioned back on may 13. You mentioned it was likely to do with the button fixes you merged and you were going to take a look… Unfortunately those button fixes seem to have cause san issue with the Fibaro FGS-233 parent handler.

Thanks

Simon

@tonesto7 I’ve tried two different is devices in the my Apps Smartthings setup. When I restart hombridge I get the follow error. The second time I added a device, I took it from the four inputs at the top. The first one was a Samsung motion detector, The second was a device I created the talks to a web service that talks to Lutron Homeworks. Any ideas on what this problem might be?

I checked the iOS app again. Every time I add a device and save it, it says it was successful. When I go back in, the selection is gone.
I tried it again today. This is the log:
23542fcf-6053-4906-bf20-7b85bd089595 1:34:49 PM: trace devices=null

23542fcf-6053-4906-bf20-7b85bd089595 1:34:49 PM: trace isStayModeSensor(motion: active)

23542fcf-6053-4906-bf20-7b85bd089595 1:34:49 PM: debug motionOrContactHandler(Living Room Motion motion:active)

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:25 PM: trace updateServicePrefs: null:null

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:21 PM: debug Registered (1 Devices)

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:21 PM: debug Registering (0) Window Shades

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:21 PM: debug Registering (0) Lights

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:20 PM: debug Registering (1) Switches

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:20 PM: debug Registering (1) Switches

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:19 PM: debug Registering (0) Speakers

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:19 PM: debug Registering (0) Sensors

8352f878-dd59-4532-a3bc-7a82da1d9b79 1:34:19 PM: debug GenerateEvent returned {{ linkText }} has arrived

8352f878-dd59-4532-a3bc-7a82da1d9b79 1:34:19 PM: debug description: presence: 1

23542fcf-6053-4906-bf20-7b85bd089595 1:34:17 PM: info SHM isActiveSensor(motion:active, app: stay, location: stay) = null, locationId: 61e724e6-29d0-49de-b94b-f577bb7d14d0, ISA: 23542fcf-6053-4906-bf20-7b85bd089595

23542fcf-6053-4906-bf20-7b85bd089595 1:34:17 PM: trace devices=null

23542fcf-6053-4906-bf20-7b85bd089595 1:34:17 PM: trace isStayModeSensor(motion: active)

23542fcf-6053-4906-bf20-7b85bd089595 1:34:17 PM: debug motionOrContactHandler(Bedroom Motion motion:active)

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:17 PM: debug Registering (0) Other Devices

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:17 PM: debug Registering (0) Fans

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:14 PM: debug Updated with settings: [noTemp:false, allowLocalCmds:true, showLogs:true, addSecurityDevice:true, switchList:[Sideboard Outlet]]

75a4ae25-f57a-4b16-b356-77c7690eb26c 1:34:14 PM: debug Installed with settings: [noTemp:false, allowLocalCmds:true, showLogs:true, addSecurityDevice:true, switchList:[Sideboard Outlet]]

23542fcf-6053-4906-bf20-7b85bd089595 1:34:12 PM: debug motionOrContactHandler(Bedroom Motion motion:inactive)

Homebridge startup errors
[7/4/2019, 6:43:10 PM] Loading 1 platforms…

[7/4/2019, 6:43:10 PM] [SmartThings] Initializing SmartThings platform…

[7/4/2019, 6:43:10 PM] [SmartThings] Fetching SmartThings devices.

[7/4/2019, 6:43:10 PM] [SmartThings] Error received type undefined - undefined

[7/4/2019, 6:43:10 PM] [SmartThings] Unknown Capabilities:

You should start your own discussion thread so people can ask more questions about the switch app. It would get pretty off-topic for this particular thread, but I am sure there are people who would be interested in finding out more. :sunglasses:

You can put your own topic in the following section:

https://community.smartthings.com/c/devices-integrations/connected-things

I think I am having the same issue with my GE Motion Switches (https://byjasco.com/products/ge-z-wave-plus-smart-motion-dimmer). They are showing as buttons in homebridge and I am not able to control the light attached to it.

I’m just getting my homebridge implementation going and also struggling to get the excluded capabilities function working. Would love the ability to exclude buttons, luminance, and humidity capabilities within the smart app (or maybe I will eventually figure out how to exclude these capabilities).

@tonesto7, this works great for me, but I am curious why I see these errors when I bring up homebridge with the following command npm install -g homebridge-smartthings-tonesto7:

npm ERR! path /usr/local/lib/node_modules/homebridge-smartthings-tonesto7

npm ERR! code EISGIT

npm ERR! git /usr/local/lib/node_modules/homebridge-smartthings-tonesto7: Appears to be a git repo or submodule.

npm ERR! git /usr/local/lib/node_modules/homebridge-smartthings-tonesto7

npm ERR! git Refusing to remove it. Update manually,

npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:

npm ERR! /root/.npm/_logs/2019-08-01T23_15_18_012Z-debug.log

Hi do you have trouble to update temp with thermostat?