Git Product home page Git Product logo

homebridge-smartthings's Introduction

This Plugin is no longer being maintained. The ST platform removed all of the greatness that made it fun to develop for and I will not rewrite my years of code to adapt.
I have moved to Hubitat and all of my code has lived on. I recommend you move over if possible. You won't regret it!

Thanks for the many years of support.

homebridge-smartthings's People

Contributors

alisdairjsmyth avatar bendews avatar dependabot[bot] avatar foxxyben avatar gijoecool avatar jonnyborbs avatar kumarmudedla avatar markstickley avatar nberardi avatar pdlove avatar piratebeatsninja avatar stkang avatar tonesto7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-smartthings's Issues

Power Meter / Energy Meter Capability Devices

Device with the 'Power Meter' and 'Energy Meter' capability getting skipped. Aeon Labs DSB09104-ZWUS home energy meter. Skipped line from logs:

[homebridge-smartthings.SmartThings] Device Skipped - Group unknown, Name Power Monitor, ID 7d6a876f-e3ba-49c0-9f8b-fbc52aaa6922, JSON: {"name":"Power Monitor","deviceid":"7d6a876f-e3ba-49c0-9f8b-fbc52aaa6922","capabilities":{"Configuration":1,"Energy Meter":1,"Power Meter":1,"Sensor":1},"commands":{"configure":[],"reset":[]},"attributes":{"energy":13234.588,"power":1996}}

Missing capabilities

The following are listed on startup. Not sure if it matters. Things seem to be working well and I'm not sure there's a need to add these.

[SmartThings] Unknown Capabilities: ["Thermostat Cooling Setpoint","Thermostat Mode","Thermostat Fan Mode","Thermostat Operating State","Thermostat Heating Setpoint","Thermostat Setpoint","Indicator"]

Constant error received...

Homebridge shows this error constantly after initializatio
[SmartThings] Error received type RateLimit - Please try again later

Under ST logs it's nothing but this
physicalgraph.app.exception.SmartAppException: Device not found @ line 158

Lost connectivity after plugin update

I've noticed that I've lost connectivity with homebridge after the last few times I've updated this plugin via npm. Homebridge is still running just fine, but the devices are unreachable. The only way to get it back is to delete the "persist" folder AND change the "username" in the config.json file.

Any suggestions for this? Every time this happens I have to remove and re-add the homebridge accessory, which means I have to go through and manually assign each device to the appropriate room again. Obviously, this is somewhat tedious!

I wasn't sure if this was a homebridge issue or specific to this plugin (since it has only happened when updating this plugin).

Virtual Switches not available in JSON app

I'm not seeing any of my virtual switches (using the built-in "simulated switch" device type) in the JSON Complete API smart app. They were in the old JSON API app. They're useful for triggering Rule Machine to do things that homebridge can't do on its own due to lack of support in HomeKit.

Thermostat - Smartthings state not consistent with Homekit

The state of the thermostat as reported through Smartthings is not being reflected in Homekit enabled App.

Within Smartthings, the thermostat has the following state:

  • Current Temp: 23.2
  • Setpoint: 18.0
  • Fan Mode: Auto
  • Mode: Heat

Within Homekit enabled App, the same thermostat has the state:

  • Temperature: 0.0C
  • Heating Threshold: 0.0C
  • Cooling Threshold: 10.0C
  • Mode: Off

Manually invoking the API returns (abbreviated body):
{
"location": {
...
"temperature_scale": "C",
...
},
"deviceList": [
{
"name": "Zen Thermostat",
"capabilities": {
"Temperature Measurement": 1,
"Configuration": 1,
"Refresh": 1,
"Thermostat": 1,
"Sensor": 1,
"Actuator": 1
},
"commands": {
...
},
"attributes": {
"temperature": 23.2,
"heatingSetpoint": 18,
"coolingSetpoint": 18,
"thermostatSetpoint": 18,
"thermostatMode": "heat",
"thermostatFanMode": "fanAuto",
"thermostatOperatingState": "idle",
"schedule": null
}
}
],
"sensorList": []
}

Environment:

  • Thermostat: Zen Thermostat
  • Homebridge: 0.2.16
  • Homebridge-Smartthings: 0.0.2
  • Homebridge-Smartthings SmartApp: 0.3
  • Smartthings Temperature Scale: Celsius
  • App: Eve

No devices identified

Hello! I've been using the homebridge examples and the standard SmartApp, with success with lights in my home.

I wanted to switch to your SmartApp, and followed the posted instructions, but don't seem to identify any devices when I start up Homebridge. This is despite using the config materials generated by the app and updating config.json with the new parameters.

I've tried deleting and reinstalling my home (in Homekit), deleting the SmartApp, regenerating OAuth keys, all with no success. Do you have any suggestions? Thanks!

Loading 1 platforms...
[SmartThings] Initializing SmartThings platform...
Loading legacy platform SmartThings
[SmartThings] Fetching SmartThings devices...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

homebridge-smartthings 0.4.0+ Other npms versions Status

We've had so many issues that I want to get some version information from people who are working and Not. Please post in here only the version information and if it is working. Thank you for your help as we try to determine why this latest update works well for many people and doesn't work at all for others.
Even with the issue of leaving/returning making some devices vanish I'm calling it working great because that seems to be an IOS problem as I noticed my native homekit devices were doing the same thing.

Status: Working Great with no timing tweaks.
"node -v" - v4.2.1
"npm view homebridge version" - 0.2.19
"npm view hap-nodejs version" - 0.2.5
"npm view homebridge-smartthings version" - 0.4.3

OSX 10.11.3

Add Water Sensors (z-wave)

My current device is the Everspring model with:
capability "Water Sensor"
capability "Configuration"
capability "Sensor"
capability "Battery"

Thanks again for your efforts.

Zen Thermostat - Device Results throwing unexpected error

An unexpected exception is being throwing when rendering the Devices JSON for a Zen Thermostat when the device is in the thermostatMode is off:
{"error":true,"type":"java.lang.NumberFormat Exception","message":"An unexpected error occurred."}

Live Logging within SmartThings points to line 195 i.e. within the function deviceAttributeList.

If the thermostatMode is heat or cool, the same exception is not thrown.

The issue may be that the Zen Thermostat Device Type sets the thermostatSetpoint attribute to a string value -- when the thermostatMode is off

Got etimedout error after running for 9 hours

Is this a random, one time thing, or more indicative of a bigger issue?

   Active: active (running) since Wed 2016-02-17 21:45:51 PST; 9h ago
 Main PID: 15921 (homebridge)
   CGroup: /system.slice/homebridge.service
           └─15921 homebridge

Feb 18 00:20:43 homebridge homebridge[15921]: errno: 'ETIMEDOUT',
Feb 18 00:20:43 homebridge homebridge[15921]: syscall: 'connect',
Feb 18 00:20:43 homebridge homebridge[15921]: address: '174.129.9.165',
Feb 18 00:20:43 homebridge homebridge[15921]: port: 443 }
Feb 18 05:54:40 homebridge homebridge[15921]: error at req:  { [Error: connect ETIMEDOUT 107.20.201.51:443]
Feb 18 05:54:40 homebridge homebridge[15921]: code: 'ETIMEDOUT',
Feb 18 05:54:40 homebridge homebridge[15921]: errno: 'ETIMEDOUT',
Feb 18 05:54:40 homebridge homebridge[15921]: syscall: 'connect',
Feb 18 05:54:40 homebridge homebridge[15921]: address: '107.20.201.51',
Feb 18 05:54:40 homebridge homebridge[15921]: port: 443 }

Adding Somfy Shade controller

I'm currently using a custom device handler for my comfy shades that was written by the community. I don't see an option to add it, it works similar to the garage door tho from what i've seen with a couple differences.

Cannot add a bridged Accessory with the same UUID as another bridged Accessory

I'm getting an error when trying to run homebridge:

$ homebridge
Loaded plugin: homebridge-smartthings
Registering platform 'homebridge-smartthings.SmartThings'

---
Loaded config.json with 0 accessories and 1 platforms.

---
Loading 1 platforms...
[SmartThings] Initializing SmartThings platform...
[SmartThings] Fetching Smart Things devices.
[SmartThings] Device Added - Group lights, Name GE Link Bulb, ID 7250950c-0619-45f1-8a62-125722bd7580
[SmartThings] Device Added - Group switch, Name Garage Door, ID 740a869e-36a4-4f67-a37c-8da3a0395e36
[SmartThings] Device Added - Group sensor, Name Austin's iPhone, ID a1229814-9927-4202-9328-51b5671569e5
[SmartThings] Device Added - Group sensor, Name Back Door, ID fa46ab73-5801-4d36-9d66-5b425b2dd1db
[SmartThings] Device Added - Group sensor, Name Dining Room, ID b91dcc0b-c0e3-43e1-8b39-77a8419d1665
[SmartThings] Device Added - Group sensor, Name Front Door, ID 6c3d585c-ebaa-4950-b351-5f6c6da7a6be
[SmartThings] Device Added - Group sensor, Name Jo's Room Window, ID 32a63eb2-b275-470e-8ff4-f61abe920caa
[SmartThings] Device Added - Group sensor, Name Living Room, ID 69a2247f-aef9-4586-968c-debdd0053d93
[SmartThings] Device Added - Group sensor, Name Magan's iPhone, ID f26ef7ef-3ec6-431a-8965-c471e6f12b08
[SmartThings] Device Added - Group sensor, Name Pink Room Window, ID 564acbca-dd70-4398-9c1f-33519ce7cdf9
[SmartThings] Device Added - Group sensor, Name Side Door, ID 10dbd066-bdda-4eb3-b3ae-814c81ee6d84
[SmartThings] Device Added - Group sensor, Name Upstairs Hallway, ID 4d655996-3786-4a6a-a53b-d142a0b40ee3
[SmartThings] Device Added - Group sensor, Name Garage, ID 84ae1c3a-96f7-4949-b98b-353a30e3c075
[SmartThings] Device Added - Group sensor, Name Garage Door, ID 50e67136-65b3-40ee-bebd-25131dcb1e0e
[SmartThings] Device Added - Group switch, Name Aeon Siren, ID 1731fa1f-a133-4411-b07e-b082e2e4d812
[SmartThings] Unknown Capabilities: ["Relay Switch","Alarm"]
[SmartThings] Initializing platform accessory 'GE Link Bulb'...
[SmartThings] Initializing platform accessory 'Garage Door'...
[SmartThings] Initializing platform accessory 'Austin's iPhone'...
[SmartThings] Initializing platform accessory 'Back Door'...
[SmartThings] Initializing platform accessory 'Dining Room'...
[SmartThings] Initializing platform accessory 'Front Door'...
[SmartThings] Initializing platform accessory 'Jo's Room Window'...
[SmartThings] Initializing platform accessory 'Living Room'...
[SmartThings] Initializing platform accessory 'Magan's iPhone'...
[SmartThings] Initializing platform accessory 'Pink Room Window'...
[SmartThings] Initializing platform accessory 'Side Door'...
[SmartThings] Initializing platform accessory 'Upstairs Hallway'...
[SmartThings] Initializing platform accessory 'Garage'...
[SmartThings] Initializing platform accessory 'Garage Door'...
/Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:183
      throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
      ^

Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: fbb0bc6a-7b17-479e-8910-a8b7da88f08b
    at Bridge.Accessory.addBridgedAccessory (/Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:183:13)
    at Server.<anonymous> (/Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge/lib/server.js:226:24)
    at /Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at /Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge-smartthings/index.js:104:4
    at /Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge-smartthings/index.js:81:5
    at /Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:93:13
    at IncomingMessage.<anonymous> (/Users/AustinEldridge/.nvm/versions/node/v5.6.0/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:46:27)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:906:12)

I can fix it by removing some of my devices but the README specifically states

If you select the same device in multiple categories it will only be shown once in HomeKit, so you can safely check them all in all groups.

I've not had time to dig into it myself - any thoughts on what the issue is?

All working for an hour or so then iPhone can't connect...

Hi,

I'm using the latest Raspbian build (2016-02-09) on a RasPi Model B. I've installed homebridge and homebridge-smartthings as per your instructions and everything works fine (can connect and control several switches and power meter devices on SmartThings). :)

However, after an hour or so my iPhone can no longer connect to any devices via homebridge. The only way I can get things working again is to empty '/var/homebridge/persist' and reset the HomeKit database on the iPhone. This has happened several times since installing 48 hrs ago. The homebridge server is typically still running (as a service using systemd) with no obvious errors and I still get a response if I browse to http://myhost:51826/accessories, so looking for some help as I'm not sure where the issue could lie.

Thanks.

Thermostat - Current Temperature not being refreshed

The current temperature is not being updated as part of the polling process. I am presently watching the temperature as reported in Smartthings decline, and the temperature in the HomeKit App remain constant.

Environment:

  • Homebridge-Smartthings: 0.3.5
  • Homebridge-Smartthings SmartApp: 0.3.6
  • HomeKit App: Eve
  • polling_seconds: Not defined and set in config.json

just after a few min get this error

/usr/local/lib/node_modules/homebridge-smartthings/index.js:70
} else if (myList.error) {
^

TypeError: Cannot read property 'error' of undefined
at /usr/local/lib/node_modules/homebridge-smartthings/index.js:70:30
at /usr/local/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:93:13
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:46:27)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)

Thermostat just showing as temp sensor and contact (door) sensors just saying NO

Hi, Bulbs are working as expected but

Thermostat is just showing as temperature sensor not able to change the temperature and also not showing the mode,
[SmartThings] Device Added - Group sensor, Name Thermostat, ID 0ea4cf4e-c439-4665-8b10-dd293cb598e7, JSON: {"name":"Thermostat","deviceid":"0ea4cf4e-c439-4665-8b10-dd293cb598e7","capabilities":{"Temperature Measurement":1,"Relative Humidity Measurement":1,"Battery":1,"Configuration":1,"Refresh":1,"Thermostat":1,"Sensor":1,"Actuator":1},"commands":{"configure":[],"refresh":[],"setHeatingSetpoint":["NUMBER"],"setCoolingSetpoint":["NUMBER"],"off":[],"heat":[],"emergencyHeat":[],"cool":[],"setThermostatMode":["ENUM"],"fanOn":[],"fanAuto":[],"fanCirculate":[],"setThermostatFanMode":["ENUM"],"auto":[],"setSchedule":["JSON_OBJECT"],"switchMode":[],"switchFanMode":[],"quickSetCool":[],"quickSetHeat":[]},"attributes":{"temperature":70,"humidity":53,"battery":98,"heatingSetpoint":69,"coolingSetpoint":75,"thermostatSetpoint":69,"thermostatMode":"off","thermostatFanMode":"fanAuto","thermostatOperatingState":"idle","schedule":null,"thermostatFanState":"idle"}}

Door Contact Sensor just says NO (no matter whether its opened or closed) it is showing the temp though.
[SmartThings] Device Added - Group sensor, Name Front door, ID 29ad2cfd-c374-4bb0-b2b9-26bf3849c216, JSON: {"name":"Front door","deviceid":"29ad2cfd-c374-4bb0-b2b9-26bf3849c216","capabilities":{"Temperature Measurement":1,"Battery":1,"Contact Sensor":1,"Configuration":1,"Refresh":1},"commands":{"configure":[],"refresh":[],"enrollResponse":[]},"attributes":{"temperature":60,"battery":88,"contact":"closed"}}

[SmartThings] Unknown Capabilities: ["Relative Humidity Measurement","Thermostat"]
[SmartThings] Initializing platform accessory 'Bed room Bed Lamp'...
[SmartThings] Initializing platform accessory 'Dining Bulb 1'...
[SmartThings] Initializing platform accessory 'Front door'...
[SmartThings] Initializing platform accessory 'Hall way Bulb'...
[SmartThings] Initializing platform accessory 'Kitchen Bulb1'...
[SmartThings] Initializing platform accessory 'Living Bulb Back Left'...
[SmartThings] Initializing platform accessory 'Living Bulb Back Right'...
[SmartThings] Initializing platform accessory 'Thermostat'...

Update readme

This is easy to miss, but would be helpful for newbies to update the very beginning of the readme where it says: "ETA on first npm release is 02/06/2016. Usuable code should be on here this weekend." Since that already happened. Makes it sound like it's coming in the future.

Although homebridge runs without error... do NOT see any smart devices appearing.

Although homebridge runs without error... do NOT see any smart devices appearing.
Using ios app MyTouchHome and all devices are greyed out.

Was working fine yesterday... and i did not make any changes.
Was any new code pushed out to Smartthings via repository integration with github ?

Don't know why else it would no longer work.
Rebooted raspberrypi no improvement.

In homebridge startup i see that it identifies all my smartthing connected devices.... but its like homebridge doesn't completely start up (and gives no errors).

Error after upgrading to 0.4.0 SmartApp

Getting "physicalgraph.exception.NotFoundException: Page Not Found" when trying to install in the simulator and the smartapp will no longer open in the IOS app to configure after upgrading to 0.4.0.

Updating code from repo

When there are updates to the code, and I update the code from the repo, and publish those changes...do I need to do anything else?

Thanks

Zigbee Valve Device use Open/Close as Main capability

When I add the zigbee valve device it shows battery first, and has an on/off called Power State. Can we have the primary capability be Open/Close?

[SmartThings] Device Added - Group switch, Name Main Water Valve, ID , JSON: {"name":"Main Water Valve","deviceid":"","capabilities":{"Switch":1,"Battery":1,"Configuration":1,"Refresh":1,"Valve":1},"commands":{"on":[],"off":[],"configure":[],"refresh":[],"open":[],"close":[]},"attributes":{"switch":"on","battery":null,"contact":null}}

Homebridge-Smartthings Error

nodejs -v
v0.6.19

"platform": "homebridge-smartthings.SmartThings",
"name": "SmartThings",
"app_url": "https://graph.api.smartthings.com:443/api/smartapps/installations/",
"app_id": "xxxx",
"access_token": "xxxx",
"polling_seconds": 60,
"update_seconds":1

I get the following error

[Sat Mar 12 2016 07:22:34 GMT+0000 (UTC)] ====================
[Sat Mar 12 2016 07:22:34 GMT+0000 (UTC)] ERROR LOADING PLUGIN homebridge-smartthings:
[Sat Mar 12 2016 07:22:34 GMT+0000 (UTC)] /usr/local/lib/node_modules/homebridge-smartthings/index.js:109
addAttributeUsage(attribute, deviceid, mycharacteristic) {
^
SyntaxError: Unexpected token (
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
at Server. (/usr/local/lib/node_modules/homebridge/lib/server.js:112:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:108:22)
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:43:24)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
[Sat Mar 12 2016 07:22:34 GMT+0000 (UTC)] ====================

Fans Are Only Accessible as Lights

Great work by the way (just to throw that in 👍).

I have been seeing an interesting phenomenon (bug) since I started using this. After looking around, I figure it must in the JSON side. I have a wide variety of lights, switches and bulbs throughout my house. I also have three ceiling fans on GE Ceiling Fan Zwave switches. Everything works fine (using the Eve app) EXCEPT the app will only let me define my ceiling fans as lights. The dimmable switches in my system can be defined as lights, fans, heater, anything. Is this a bug? Or is it in the Eve app?

Thanks

Duplicate instances of SmartApp and no "Remove" button

Hi, I installed the SmartApp and after installing I'm seeing many instances of it (17 by my count. I thought this may correlate with the number of devices I added, but that was 20, so they don't match). You can see this in the attached screenshot. Also, there is no way to remove any of these instances. When I tap on it, there is no "Remove" button like all of the other SmartApps I have installed (second screenshot).

Many instances of "JSON Complete API"
img_4100

No "Remove" button:
img_4101

Issues with settings on the Smart App

The following doesn't really work/make sense:
Click on Settings and add the repository with Owner of "pdlove" and name of "homebridge-smartthings" and branch of "master" and then click save.
Click "Update From Repo" and select "homebridge-smartthings"

There is no option for the repository or any of this on the Smart app. I'm not sure how to get this.

Cannot read property 'location' of undefined

Getting the following error, which is preventing Homebridge for launching. Any ideas?:

TypeError: Cannot read property 'location' of undefined
at /usr/local/lib/node_modules/homebridge-smartthings/index.js:59:14
at /usr/local/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:96:5
at IncomingMessage. (/usr/local/lib/node_modules/homebridge-smartthings/lib/smartthingsapi.js:46:21)
at emitNone (events.js:72:20)
at IncomingMessage.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)

platform name conflicts with SmartThings plugin in the homebridge-legacy-plugins package

HomeBridge fails at start when homebridge-legacy-plugins is installed with homebridge-smartthings, and the config stanza in the homebridge-smartthings README.md is used as the basis for configuration. No stanza remained in my config.json for the legacy plugin.

Both plugins will consume the stanza for platform "SmartThings," though so HomeBridge startup fails.

The solution is just a small change in config that should be reflected in the instructions. Doing this will not hurt even if you don't have homebridge-legacy-plugins installed.

Instead of

{
    "platform": "SmartThings",

preface it with the plugin name to disambiguate the namespace:

{
    "platform": "homebridge-smartthings.SmartThings",

and you're good! No changes needed to either plugin package.

Add SmartSense Moisture with "Water Sensor" Capability

Add SmartSense Moisture Sensor or other flood sensors that use "Water Sensor" Capability.

[SmartThings] Device Added - Group sensor, Name Laundry Room Moisture, ID <ID), JSON: {"name":"Laundry Room Moisture","deviceid":"","capabilities":{"Temperature Measurement":1,"Battery":1,"Water Sensor":1,"Configuration":1,"Refresh":1},"commands":{"configure":[],"refresh":[],"enrollResponse":[]},"attributes":{"temperature":23,"battery":77,"water":"dry"}}

Add support for First Alert Smoke / Carbon Monoxide Detector

[SmartThings] Device Skipped - Group unknown, Name 1st Floor Smoke Alarm, ID , JSON: {"name":"1st Floor Smoke Alarm","deviceid":"","capabilities":{"Battery":1,"Smoke Detector":1,"Carbon Monoxide Detector":1,"Sensor":1},"commands":{},"attributes":{"battery":100,"smoke":"clear","carbonMonoxide":null,"alarmState":"clear"}}

ghost device showing up in HomeBridge

this is a weird error, and totally understandable if it's too much of an edge case to fix.

I have a Aeon Labs z-wave plug-in outlet that quit working reliably, so I unplugged it for a couple of days. Prior to that, it was selected in the JSON Complete app and usable through Homebridge. While it was unplugged, it disappeared from SmartThings, and it didn't come back when I plugged it back in. I mainly use it on a schedule, which SmartThings can't handle right now, so I just excluded it using my other system (openHAB with a Z-stick) and re-included it there, where it's working fine.

The problem is, the homebridge-smartthings plugin is still exporting it to HomeKit, where it is reporting its last known status and appears to be accepting on/off commands. I can't delete it from iDevices app, and it no longer appears in the list of devices under the JSON app to unselect it.

Short of wiping out my JSON app and re-installing it, is there anyway to remove this ghost device?

Devices not being added

I'm really having issues with the new update. I'm only seeing some of my devices even if I select them in 2 or more lists. I'm not seeing any errors on either logs

Smart app broken with the new update

I just updated my smart app and it looks like it is broken, I wasn't able to open the app and it is creating multiple instances. I deleted it and now I am using old version.

Can only add capability.Refresh Devices

The plugin itself works great. Excellent work..
Using devices that support local execution like aeon multi-sensors don't have the refresh capability.
I think it would be useful to split up the inputs for different devices.

Home bridge Stops Working Every Few Hours, Has To Be Reset To Recover, Errors Included

Posting over here too as realized this was probably the best place for this issue,

@pdlove / All
Seeing a new issue pop up and was wondering if others have seen something similar or had any ideas on how to fix:

error at req: { [Error: connect EHOSTUNREACH 107.20.201.51:443 - Local (removed by me from this thread)]
code: 'EHOSTUNREACH',
errno: 'EHOSTUNREACH',
syscall: 'connect',
address: '107.20.201.51',
port: 443 }

then I also see this

error at req: { [Error: getaddrinfo ENOTFOUND graph.api.smartthings.com graph.api.smartthings.com:443]
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'graph.api.smartthings.com',
host: 'graph.api.smartthings.com',
port: '443' }

I see this happen after x number of hours of running and at that time is when I also lose access to the SmartThings devices in HomeKit (running through Homebridge). Restart Homebridge and everything works again but wondering what is causing the issues above.

It certainly is strange because Homebridge won't last even 24 hours before I start seeing those issues and although I still am able to access my Nest through it (through the KraigM port) everything else disappears that was brought in via the JSON complete API. It never recovers from the errors I posted until I stop the script and start fresh, then it runs fine again for a few hours before hitting the same problem.

Thanks as always for the help

For reference running on OS X 10.11.4 beta 5 and testing against iOS 9.3 beta 5

WC

Input for all types

Does anyone know how to do a single input that covers all types in the groovy file? Even better would be one to automatically install on new devices.

Minor Issues

I installed the current version tonight and thought I'd pass along a few things I ran into along the way.

  1. I got hung up on adding the repository to MySmartApps because there was no Settings option on the page. It turns out that I needed to add a new (empty) repository to my GitHub account named SmartThingsPublic. Once I did that, the Settings option appeared and I could complete the process. Maybe this could be made explicit in the README.md?

  2. Running "homebridge" threw the following error:

Loaded plugin: homebridge-smartthings

Registering platform 'homebridge-smartthings.SmartThings'

Loaded config.json with 15 accessories and 2 platforms.

Loading 2 platforms...
/usr/lib/node_modules/homebridge/lib/api.js:85
throw new Error("The requested platform '" + name + "' has been registered multiple times. Please be more specific by writing one of: " + found.join(", "));
^

Error: The requested platform 'SmartThings' has been registered multiple times. Please be more specific by writing one of: homebridge-legacy-plugins.SmartThings, homebridge-smartthings.SmartThings
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:85:13)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:194:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:35:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:23:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:140:18)
at node.js:1001:3

I'd been running the original smarthings plugin which apparently caused a conflict. I temporarily resolved it by updating config.json to point to homebridge-smartthings-SmartThings. I suspect I need to update homebridge to a newer version but my knowledge of npm is limited so I need to set aside some time to figure out if it's as simple as re-running npm install or if I need to remove packages first.

  1. I've got my iPhone and my wife's iPhone configured as Presence Sensors. Although both phones were present, in HomeKit (Eve, Home) mine showed as "present" while her's showed "not present". I double-checked SmartThings and her's also showed as not present there so I went to her phone, ran Smartthings and enabled background processing. Her status turned to "present" in SmartThings but it stubbornly shows as "not present" in HomeKit. The polling_seconds option is set to 10. They looks identical in Device Results. Are they supposed to get polled?

  2. In JSON Complete API, I have three device sections: 1) Most Devices, 2) Sensor Devices, and 3) All Switched. Some devices (the JASCO Lamp Module that came with the SmartThings hub for example) show uo in all three sections? Should I select it in all three sections?

Overall, it's a great step forward from the older plug-in. Thanks!

Thermostat - Current Temperature not being refreshed

Same issue as #35. The current temperature is not being updated as part of the polling process. I am presently watching the temperature as reported in Smartthings decline, and the temperature in the HomeKit App remain constant.

homebridge.err contains the following entries (homebridge.log only has initialisation messages):
Sun, 06 Mar 2016 10:13:05 GMT Accessory [bridge] Getting value for Characteristic "Current Temperature"
Sun, 06 Mar 2016 10:13:05 GMT Accessory [bridge] Got Characteristic "Current Temperature" value: 24.7
Sun, 06 Mar 2016 10:25:25 GMT Accessory [bridge] Getting value for Characteristic "Current Temperature"
Sun, 06 Mar 2016 10:25:25 GMT Accessory [bridge] Got Characteristic "Current Temperature" value: 24.7
Sun, 06 Mar 2016 10:25:38 GMT Accessory [bridge] Getting value for Characteristic "Current Temperature"
Sun, 06 Mar 2016 10:25:38 GMT Accessory [bridge] Got Characteristic "Current Temperature" value: 24.7
Sun, 06 Mar 2016 10:25:44 GMT Accessory [bridge] Getting value for Characteristic "Current Temperature"
Sun, 06 Mar 2016 10:25:44 GMT Accessory [bridge] Got Characteristic "Current Temperature" value: 24.7

During this same window of time, according to the Smartthings Event Log, the temperature declined from 24.4 to 24.3, and it hadn't been 24.7 for at least 90 minutes.

Environment:

  • Homebridge-Smartthings: 0.4.3
  • Homebridge-Smartthings SmartApp: 0.4.1
  • HomeKit App: Eve
  • polling_seconds: 60

Smartsense Multi Missing Capabilities

The SmartSense multi just shows up with Temp, Contact and Battery.

[SmartThings] Device Added - Group sensor, Name Basement Window 1, ID , JSON: {"name":"Basement Window 1","deviceid":"","capabilities":{"Temperature Measurement":1,"Battery":1,"Contact Sensor":1,"Three Axis":1,"Acceleration Sensor":1,"Signal Strength":1,"Sensor":1},"commands":{},"attributes":{"temperature":11,"battery":13,"contact":"closed","threeAxis":{"x":0,"y":1055,"z":10},"acceleration":"inactive","lqi":100,"rssi":-48}}

Control not working- log location?

Weird issue- when I ask siri to turn on a light, I can see the homekit getting the command (via app: Home), it toggles "on" but smartthings does not turn the light on. After 10 seconds, homekit reverts back to "off" on the app.

If i turn on the light via smartthings or manually, the homekit status (via app Home) reports the correct value (on).

So it seems to be able to get the values, but not send commands. Does that make sense? Are there any logs I can get to help?

Locks not responding or reporting accurate status

I'm not sure what locks are supposed to be able to do at this point, but they're not working for me. I was able to select my locks in the JSON app, and they appear in HomeKit, Siri is happy to tell me their state and try to control them, but the state is not accurate and the control commands do nothing. I don't see anything appear in the live log in the IDE or the log on my homebridge server when I try to interact with the locks.
They're Yale touchscreen deadbolts on Z-wave, if that matters

Error after update

I did an $npm -g update homebridge-smartthings and now...

====================
ERROR LOADING PLUGIN homebridge-smartthings:
SyntaxError: Unexpected token (
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Plugin.load (/usr/lib/node_modules/homebridge/lib/plugin.js:65:22)
    at Server.<anonymous> (/usr/lib/node_modules/homebridge/lib/server.js:70:14)
    at Array.forEach (native)
    at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:66:22)
====================
No plugins found. See the README for information on installing plugins.
Loaded config.json with 0 accessories and 1 platforms.

---
Loading 1 platforms...
Error: The requested platform 'homebridge-smartthings.SmartThings' was not registered by any plugin.
    at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:94:13)
    at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:194:45)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:35:36)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:23:16)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.