[OBSOLETE] DSC -> EVL-3(4) -> Alarmserver -> Smartthings

@lifeisfun
You’ll have to modify alarmserver.py to add the commands you need and the alarm panel to add the xtra buttons. What do you use PGMs for?

1 Like

Garage door opener is my PGM

Python installed without problems but not working for me on Windows 10 :frowning:

@lifeisfun
Python for windows https://www.python.org/downloads/windows/
and follow this http://www.howtogeek.com/197947/how-to-install-python-on-windows/
or this https://docs.python.org/3/using/windows.html

1 Like

Python installed fine, perhaps the configuration needs some tune up, I’ll try again

It’s either PATH or path length. Check second link

1 Like

installed the 3.6 version instead
, since the 2.7.3 didn’t have those options in the installer as it was pictured in the guide.

3.6 starts the python alarmserver.py but I get another error

EDIT:

OK got it, the key was to install version 2.7.13 (not 2.7.3 or 3.6)

Got it working on windows as well, just wondering how to autostart it on boot…
Can you give me idea?
I suspect you would know since you did such a great job on the Raspberry installation :slight_smile:

Thanks

I assume that’s what you’re looking for

Thanks for reply again,
I did know about the Start up folder but how do start the alarmserver.py in that folder?
Do I have to create some kind of bat file?
Also noticed that today in the middle of the day it stopped working when testing on the W10 machine. On RPi it was without problems for 48hrs. It would be nice if it restarts when it crashes as well.
I guess I have to look in to it when I get home :slight_smile:

I’ve had mines up on the RPi for months and it just works. I also have Host Pinger hosted on RPi and a couple of scripts for Harmony Remote, Find My iPhone and a couple of relays.

Gave up on the autostart although someone did post instructions here for Linux but I never got it working.

Why not host it on the RPi?

One thing to note, If you name your Devices, (I have 28) in the cfg file and then change them in ST, when you finally do restart the Alarm Server, it will generate new devices with what you have named in the cfg file. Learned this the hard way!

Good Luck!

I got the autostart working thanks to Daniel perfectly on the Raspberry, I just wanted to try on windows since I have one low power W10 box running 24/7

Without going through all of this thread, could you share your autostart process on the RPi.

Have to build a low power w10 box for Blue Iris server here soon. Do you have a PSU suggestion?

Here is copy of Daniels post
Make sure you read the last line, I was stuck there :slight_smile:

In \home/pi create a directory alarmserver. Copy there all files from https://github.com/LXXero/DSCAlarm/tree/master/alarmserver, except screen@user.service that goes to /lib/systemd/system. If you didn.t change default user, change name to screen@pi.server.
Edit file and replace After=network.target with After=multi-user.target network-online.target
Also change Type=simple with Type=idle
Run sudo apt-get install screen to install the aplication.
To have it start automatically when Pi starts,
Run sudo systemctl enable screen@pi.service, then sudo systemctl start screen@pi.service.
Run sudo systemctl status screen@pi.service. Should see loade and active. Restart Pi sudo reboot.
Go back to terminal and verify again that it automaticaly starts sudo systemctl status screen@pi.service.
Edit: My bad this is wrong. If you didn.t change default user, change name to screen@pi.server. It is service, not server

By w10 box I mean stick like this http://www.intel.com/content/www/us/en/compute-stick/intel-compute-stick.html

1 Like

Not directly. I would (in the startup directory) create a batchfile that calls python with whatever options you need and python will start alarmserver.
But I would be careful with having 2 alarmservers running concurently as EVL only allows ONE connection at a time only.
Once that coonnection is on it will refuse any other. If you just want to play, try connecting through the alarmserver on the Pi. I never looked into it. I’d rather stick with Pi for this, as any windows machine has it’s quirks.
You might also want to look at https://sites.google.com/site/mppsuite/android-apps/watches as it’s very informative when you go through the links. You could get the app from play store and run it in an Android emulator on your windows stick. Also, there’s more than the one you linked to Best PC sticks 2023: Great picks for gaming, media server | Windows Central

I did not run the server on the RPi when testing the windows option, I just thought why use another hardware when windows box is already running.
Too bad the guy who posted the windows server option didn’t go in to more details about how to autostart and restart if the service goes down. Perhaps he didn’t have that part done.

hi friends, i got the alarmserver working without any troubles and i can see status changing in the console, however i am yet not able to get the appid sorted out. the url https://graph.api.smartthings.com/api/smartapps/installations doesn’t seem to work for me, it either doesn’t return anything or tells me that “full authentication is required”. what could i be doing wrong?

i know that my alarmserver is running absolutely fine because i am using the proxy service with my home-assistant to access my dsc alarm panel. i think the problem i have is the application id. i access my application at this url https://graph-na02-useast1.api.smartthings.com/location/installedSmartApps/redacted-deviceid . it shows my application and when i click it, i see that my application state is “none”. by the way, i copied myapp id from the bottom of this page where it says local child discovery app.

between the appid’s which one should be used? installedSmartAppId or smartAppId in the alarmserver.cfg file?

This URL https://graph.api.smartthings.com/api/smartapps/installations/$appID/panel/609/1?access_token=$access_token returns “Access Denied”. What am I doing wrong with the appID?

nevermind, i found out the problem, my apps are on this URL https://graph-na02-useast1.api.smartthings.com/api/smartapps/installations. everything sorted now

Looks like my problem on windows was caused by ST hub upgrading the firmware and rebooting, that caused the server on my windows to stop.

Got it working on windows as Scheduled Task on boot with the option that when it dies it restarts
"C:\Python27\pythonw.exe alarmserver.py