This looks like my Xmas present I have had the Envisalink installed for a while but just didnât have the time or patience to muddle my way through figuring out an install with arm/disarm.
Maybe I will finally be able to open the garage door without making the mad dash to the alarm panel before it goes off.
Before I begin digging into the code. Where do the differences lie? Does the alarmserver.py script needs changing or something has to happen on the ST App as well? I am mainly talking about for arming and disarming.
Also, I am still having issues with the ARM/DISARM showing. My panel is disarmed and I see it in the activity that the panel is disarmed. However the icon still shows ARMED. Thats weird. Any idea why ?
make sure you can reach your alarm server from publicip:httpsport, ie http://207.41.20.10:8111 and that it shows your alarm system.
use ethomasiiâs two switches for away/stay in device types and then devices.
2.5 create your own devicetypes for open/close contact sensors, or use the code from smartapp forum that was posted today by ethomas
create a smartapp and register it with oauth following kents guide called restapisetup. if you look in smartapp forum youâll see thomas posted his smartapp. when you do the oauth, make sure you choose auth both switches. if you created contact sensors, you can auth them also.
once you can arm/disarm your system, you need to get the urlâs for the zones to report back to ST. it will be appID, switchID, and arm/stay/disarm and your token code. the url will look like this
Alarm Stay and Alarm Away activation URLS. This is for two switches, one for stay/disarm and away/disarm. Use the devicetypes provided. Use âstay/awayâ as the command, not âonâ. The smartthings UI uses âonâ to send commands to alarmserver.
Alarm Stay and Alarm Away disarm URLS. When we disarm, we tell both switches to disarm (because we do not track smartthings state). Use the devicetypes provided. Use âdisarmâ as the command, not âoffâ. The smartthings UI uses âoffâ to send commands to alarmserver.
what took me so long was first getting a smartapp that recognized my device-types (switches, contacts), then setting up oauth with it. once i completed that, use the url above or click on your actual devices to get the idâs. when you put them in the config.cfg and start alarmserver youâll see it actually say callback to ST with the url you put in. then you can see it hit ST in the logs. iâll start typing this all up better.
also the following edits need to be made to alarm arm, which i renamed and made alarm away, since the other was alarm stay.
command âalarmâ should be command "away"
label: âArmâ should be label: "Away Arm"
log.debug âExecuting âstayââ should be log.debug "Executing âawayâ"
log.debug âExecuting âarmââ should be log.debug âExecuting âawayââ
mobile app -> ST cloud -> your home router -> alarmserver -> evl-3 -> dsc
thats what took me the longest to understand about the whole project. https looks like its disabled on ethomasiiâs code, so even though the config says httpsport its actually just http.
get a dynamic dns, point it to your home ip, and use a custom port for https. thats all i did.
I dont know if I am ready for all that, I think for now, I can arm and disarm through EVL3. At the end of the day thats a web request, may be I can figure out how to do that directly from a ST app.
I would love to get st to talk directly to evl3 but evl3 only allows 1 connection and drops after time. There is an android app called dscserver that Iâd like to use instead of alarmserver maybe ethomasii could figure it out.
Here is another thing I figured out. May be Kent can explain further. So if you move the âReadyâ state to the top of the list it will show it as âreadyâ by default instead of armed, but then when I have it armed, it goes red for 1 second and then goes back to ready. May be thats why he had it ARMED by default. Anyone have any idea with that ?
if you click on the device in IDE it should show you the current state like on/off or open/closed. see what it shows for dscpanel, maybe that is the issue.
If I go to the device under things and look at activity it shows me the device is armed, when I click back it shows the device red for 1 second and then goes green again. Very weird. I dont know the language Smart Things uses or else I would try to figure it out.
the problem is none of this is ready for the mainstream average user. i wanted something that was plug and play because i didnt have time to deal with all this, but here i am neck deep now.
@adwaitjoshi@isriam it doesnât have to be that way, ST Hub can talk to devices on your internal network but only over HTTP. So there is NO requirement that you make your AlarmServer publicly available unless thatâs how you want to set it up.
Also if you do have AlarmServer exposed to the internet then ST Cloud can talk directly to it over HTTPS, itâs only the hub that canât do HTTPS internally on your network.
I would NEVER expose my AlarmServer setup to the internet and I certainly would never expose it via HTTP over the internet.
I just replied to your PM, I donât have any issues with the state of my panel device in the ST app, it works perfectly and always reflects the current state of my alarm panel. I think you and @isriam are using @ethomasii AlarmServer code which is not what I use so I donât know what that code is doing for the panel states but the panel device I provided works fine with the original AlarmServer project (Juggieâs original version with my patches on the Smartthings branch) and HoneyAlarmServer which is a fork that supports the vista panels.