Closed Prindle19 closed 8 years ago
@Prindle19 Glad you got it working... were these the general steps:
Home Data URL: https://graph.api.smartthings.com/api/smartapps/installations/5xxxa7-42da-4xx8-ba9f-fe4xxxxxxxxd6d/data?access_token=08cff65x82ce
That's your app id (the part after /installations/
and before /data
) and access token.
^^^ Will update the README with that if it worked for you that way.
For the other part of your issue... So, SmartThings gets the initial update and then nothing else? Are any errors showing in the Live Logging on the SmartThings page (you'll need to have it open in the background). Check for errors first, then double check the port numbers. In the AlarmThing device the preferences for it need to be set with the right IP address of your node server and the port (8086 by default). If you set a password in your node config you'll need to change it there too.
Since nothing is showing up in your logs for trying to arm/disarm, it's definitely a wrong IP address / port number for that part of it. The lack of updates on zone opening/closing are a different issue. Node may be waiting from a confirmation response from SmartThings that's never getting sent because of the port mismatch
Actually, i installed the AlarmThing Device via the IDE (Publish, then set location).
Ok - I did have the device configured incorrectly; I had it set to the EnvisaLink IP and PORT, not the NodeJS server.
So, now I can at least see some interactivity if I try to arm / disarm. However, zones are still not updating other than when the node app is first started.
I figured out the whole auth process (from the comments in the other issue, not the readme) and I have the demo app talking to smart things.
I can start nodejs app.js and it will update the current state of all zones to smart things just fine.
However, then it just pauses and never triggers on zone openings / closings and never sends anything to smartthings until I kill it with ctrl+c and then restart it.
Also, arming / disarming from app doesn't seem to trigger anything in the logs or actually do anything.
Great work so far!