Yup - it’s hard coded in the SmartThings model. To fix the issue, I updated the password, deleted the smartthings app from the “My Locations --> List SmartApps” section, Clicked Install SmartApp in the web application. That corrected the password setting.
The sentence comes up after you install the SmartApp. Not in your documentation.
If you want to get this automatically starting in Windows, I used Task Scheduler with a bat file to run the command that starts the application. Just make sure you run it under your ID when Windows Starts whether you are logged in or not. One other idea is to create a wrapper in ASP so that you can start this as a service. I found some example code, but I don’t have time to try it out.
Yes, that password change is on my list to fix.
@joe64 Hey man I literally cant get any of it working again. I went back to manually entering everything with the dnu restore, then the dnu build, and every time I try to run dnu build it says “Unable to locate project .json.”
Is this because I am redoing the build? Thats the only thing I can think of that I am doing different than when I originally installed it. The script for .cmd you wrote me only restores and doesnt build, right?
Again if I am asking too many questions please feel free to tell me and Ill quit bothering you.
If you are getting this message then it most likely means you are not sitting in the right directory when you run that command.
You don’t really have to run that dnu build command, i just do it because sometimes it gives a little more info about the problem. You definitely need to run the dnu restore if anything has changed though. I added that command to the script i sent you because if you were setting up from scratch you would have to run that the very first time.
If you have not changed anything in the files you downloaded you should be able to change directory to src/j64.Harmony.WebApi and then run “dnx web”. That should start it up every time.
PM me if you want to debug this over the phone, it might be quicker/easier to get it running that way.
I sent you a PM and again Im sorry for being such a pain in the rear.
I had multiple issues when executing Alarmserver running on Python 3.5.1 (Windows 10).
First I got:
File “C:\alarmserver\alarmserver.py”, line 722
print 'Usage: ’ + sys.argv[0] + ’ -c '
^
SyntaxError: Missing parentheses in call to ‘print’
I did a search and found out that the error was due to the version of Python that I am using. I corrected the print commands to include parenthesis - but then I get this:
Traceback (most recent call last):
File “C:\alarmserver\alarmserver.py”, line 16, in
import urlparse
ImportError: No module named ‘urlparse’
A Google search explained that urlparse is named differently in Python 3. So, I started over again by downgrading Python to version 2.
After going through the install process again, I executed Alarmserver and this time got an error about a module Twisted.Internet. I Googled the error and determined I had to install Twisted, but when I did I got another error stating that the C++ Compiler Package for Python was required. I installed the package and Alarmserver is running and reporting back on the status of my system. Finally.
Unfortunately, when at the browser I get “No Such Resource no such child resource”. I see this http://stackoverflow.com/questions/22929920/no-such-resource-404-error but don’t know how to fix the error.
Any ideas?
To update my above post, I was able to get Alarmserver running successfully. I went through the entire install a second time after deleting all the code, devices and app… I still could not get a browser response, but continued through the installation and the second time everything else worked! My trouble I believe is mostly due to me not knowing a thing about Python (as of 24 hours ago anyway).
I do have an issue now with zone reporting, but that is one of the reported bugs with the HoneyAlarmServer. Panel status is quick and accurate, but zone status incorrectly changes to closed after being open for a few seconds and most times two zones report opened when only one is actually open.
Thanks everyone for their work on this. It is greatly appreciated. Even with the zone reporting bugs, this is extremely useful. Especially for setting up my Routines using Arm/Disarm commands via @Big_Webstas Smartapp for Honeywell.
i am having some problems seeing anything in the app
form live logging i see the following
1ec21077-4a26-4163-a841-9a4baf1f56c4 4:02:54 PM: debug getChildDevices(false), children=0
1ec21077-4a26-4163-a841-9a4baf1f56c4 4:02:54 PM: debug getChildDevices(false), children=0
1ec21077-4a26-4163-a841-9a4baf1f56c4 4:02:54 PM: debug getChildDevices(false), children=0
1ec21077-4a26-4163-a841-9a4baf1f56c4 4:02:54 PM: debug getChildDevices(false), children=0
1ec21077-4a26-4163-a841-9a4baf1f56c4 4:02:53 PM: debug getChildDevices(false), children=0
when i check the ip address from My Locations -> List SmartApps -> j64 Alarm, i can see that it is 127.0.0.1. (this seams incorrect)
Application State
Name Value
j64Password Admin_01
j64Port 2064
j64Server 127.0.1.1
j64User admin
any suggestions ?
looks like it was my host file. once updated everything started working
was
@alarmserver:~$ cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 alarmserver
updated to
@alarmserver:~$ cat /etc/hosts
127.0.0.1 localhost
192.168.7.72 alarmserver
Thats great, sounds like you solved it. When it is installing the app it will try to determine the IP of the machine running the j64AlarmServer so it can tell the smart app who to talk with on the local lan. So that must have been having an issue until you added that hosts entry.
Can you please post the full instructions to install DSC Alarm server, I was unable to find clear instruction to install it on Rasberry pi or windows computer.
I have gone through all the steps but I can’t seem to find the devices on my smartthings apps.
On the local host I can see that I am connected and getting the status of my zones. I installed the smart app from the local host, put in the authorization codes, went to my smarthings smart apps/my apps on mobile, saw the j64 alarm, assigned a name and modes. I don’t see any of the alarm items under my home/things settings. What step did I miss? I am using my envialink address internal ip address if that makes a difference as the host name.
Hi @kaczmarczy, Whenever you use the configuration page to add a zone, change a name or something else a request is sent to the j64AlarmSmartApp. The smart app will then make a request to the j64 alarm server asking for all of the configuration information. That information is used to create a devices for each zone you have defined.
So… Based on your description it sounds like that call back to j64 alarm server to get the zone info is not working properly. Typically this is because the hub cannot connect to the j64 alarm server for some reason. You should want to the log in the IDE https://graph.api.smartthings.com/ide/logs to see if any messages come up giving a clue what happend. The IP address that it uses to communicate with the j64 alarm server should be displayed so you can check that. Also, there is a bug in j64 alarm server that requires the admin password on that web site to be the default value so you should set it back to the default if you have changed it.
Joe, I’m not seeing anything in the logs. My host name I am using the IP address of my computer running the web app now. What port should I have that set to now? Also, the user and pasword is that to by envisalink or the j64 web app?
Go to the j64 alarm web app configure menu option. Then click the save button. You should see activity in the log file. I think i added an extra display in my copy of the smart app to log that an extra message. You may want to add this extra log.debug statement into your copy also so you can see what address it is calling back to.
/* *********************************** */
/* Install or update the child devices */
/* *********************************** */
def installDevices() {
state.j64Server = params.j64Server
state.j64Port = params.j64Port
state.j64User = params.j64UserName
state.j64Password = params.j64Password
log.debug "installDevices started - will call back to ${j64AlarmServerAddress()} with user ${state.j64User}"
hubApiGet("/api/AlarmSystem")
}
The user I was referring to was the Admin user on the j64 web app (not envisalink). It has to be the default value when you installed - yes, this is a bug i need to fix
Joe where would I add this code? I assume at the end of j64 Alarm code that I previously copied and published on my IDE?
When i try to install smartapp I see this message after: Your app was successfully authorized and an access token has been saved to your SmartThing.json config file. Your security system will not start synchronizing with the smart thing devices.
Any reason it says it will not start?
By the way I should have said that I am not technical and had to look up how to even operate in the terminal
Has anyone had this issue? everything was working fine for months now im getting this constantly and my panel device wont update its status correctly.
the Eyezon website is showing the correct panel status
Tue, 17 May 2016 10:38:38 DEBUG <root smartthings partitionStatus> Partition or
status was empty, skipping this event. NOTE: This may be an error, if so we nee
to get a proper status for whatever even this is to fix it
THIS IS WAAAAY OLD but i recently had to redo alot of my oath crap and ran into this issue, i figured out why you were getting that message “authorizing the selected device failed” its because of what was in the installed object in the smartapp code,
if you remove the below from your smart app it will allow you to get it authorized
def installed() {
initialize()
}
and change
def updated() {
log.debug “Updated!”
unsubscribe()
unschedule()
initialize()
}
to
def updated() {
log.debug “Updated!”
initialize()
}