I thought I could use my Verisure alarm to handle presence as we always use it when we leave the house. So I sat down to try and write a Smartapp that could poll the status and use that to set the presence.
So I try to do a:
httpGet(uri: "https://mypage.verisure.com")
But this gives a:
java.lang.SecurityException: Endpoint https://mypage.verisure.com is blacklisted.
What am I stumbling into here? Have Verisure been explicitly blacklisted? Why?
Nothing? Do support interact on these forums or do they only respons directly? Just wondering since I’m new here.
Regardless, I probably won’t spend much more time on this. As it’s not a critical component of my setup I found a work around that depends on some other things. Currently running a setup with Home Assistant -> IFTTT -> Simulated Switch that lets me detect alarm state. Just got it working, but looks like it’s functioning quite nice. Get in touch if you’re interested.
Nope, that still doesn’t work. I did the test in both the US and the EU site to be sure. I’m doing it from the Simulator, does that affect anything? It’ll be a bit hard to develop without the simulator though…
Is the URI you are trying to reach publicly accessible? The example code shows https://mypage.verisure.com, is this just for illustrative purposes? If the URI isn’t publicly accessible you would receive that SecurityException (docs).
In this case, it should be testable from the simulator, but you’re best long-term bet is to self-publish your app and install it on your phone to test.
Come to think of it I’d be interested in changing both the SHM mode and the mode in routines? Is any one or both of them possible to update from a smartapp?
Never mind, think I’ve found what I was looking for.
For anyone else looking: just using the device to show status. Now triggering Routines (which changes mode) from smartapp, and considering updating the status of SHM when the status of the alarm changes.
I’ll post some code when it gets more complete. Let me know if you need it before that.
I was hoping to do that same thing…basically get a light routine to trigger when the verisure alarm changes state?
I also noticed that verisure integrates with NEST already…which i have done…do you think there is anyway of triggering the routine Verisure->NEST->Smartthings?