I’m introducing a new external integration for Gladys 5.1+: Verisure.
It allows you to control your Verisure alarm from Gladys and use it in scenes and the dashboard.
Arm / disarm the alarm from Gladys (disarmed, partial day, partial night, total, and perimeter modes if your installation has them)
Sensors: temperature and humidity
Opening detectors, plugs, and connected locks (depending on the application, see below)
« Cloud » badge on each device: you can immediately see if Verisure is no longer responding
In scenes
Triggers:
The alarm mode has changed (keypad, badge, app, remote control)
A door or window has been opened / closed
The connection to Verisure is lost (useful to be notified)
Actions:
Change the alarm mode (with « force » option if a door is left open)
Read the real status of the alarm immediately
If the alarm refuses to arm (window open), the scene does not crash: it retrieves success = false and the reason, and you can act on it (send me a message, for example).
On the dashboard
A Verisure Alarm widget: current mode (green / orange / red), who changed it and when, open doors and windows, and buttons to arm.
The Disarm button is hidden by default: you need to activate it in the widget settings (be careful if your dashboard is visible to everyone).
Which Verisure application?
There are two different Verisure clouds, the integration manages both:
Application
Country
What Gladys sees
My Verisure
France, Spain, Italy, Portugal, United Kingdom, Ireland, Latin America
Unofficial API: the integration uses the API of Verisure applications (taken from Home Assistant integrations). Verisure can change it without notice.
Refresh every 2 minutes by default: Verisure blocks accounts that query it too often, so I remain cautious.
The password is never written on disk or in logs.
Not yet managed: cameras, locks on My Verisure.
Testers wanted
The integration is covered by many automated tests, but it has not yet been tested on a real alarm. If you have a Verisure subscription, your feedback interests me a lot:
your application (My Verisure or Verisure) and your country
what works / what doesn’t work
the logs of the integration (enable Detailed logs in the configuration; remember to hide address and phone number)
For a security issue, please do not post here: use the private report on GitHub (Security tab of the repository).
It was my fault: the manifest pointed to the cover on the main branch, but the default branch of the repository had a different name. The store therefore received a 404 error and displayed the default image.
I renamed the branch to main, and the cover is now accessible. It should appear at the store’s next update (it updates every hour). Nothing to do on your end.
Hi @spenceur,
Yes, the integration allows it: the application choice does not depend on the country. In Configuration, simply choose « Verisure » instead of « My Verisure » (the country is then not used).
But what matters is the cloud where your account exists. In France, most Verisure (formerly Securitas Direct) subscriptions are on My Verisure: these credentials do not work on the « Verisure » app.
The easiest way: try logging into the Verisure mobile app with your account. If it works, choose « Verisure » in Gladys, otherwise stay on « My Verisure ».
Avoid chaining failed attempts: Verisure locks accounts after several failures.
What exactly are you trying to retrieve? The opening detectors? On My Verisure, the API does not provide them for now.
Today, with My Verisure, Gladys only shows open doors and windows when the alarm refuses to arm (to give the reason for the refusal). There are no opening sensors yet.
The API might return the info in real-time, but I don’t have a My Verisure installation to check. So, I will add to the Detailed Logs what Verisure returns on the zones (just the zone name and its status, nothing sensitive).
When the update is available, could you:
Enable Detailed Logs in the integration configuration
Open a window or a door equipped with a detector, wait ~3 minutes
Close it again, wait another ~3 minutes
Post the logs here (remember to hide your address and phone number)
Why wait 3 minutes?
The integration queries Verisure every 2 minutes by default, to avoid getting the account blocked. So, you need to wait at least one reading between each step.
If the info is indeed there, I will add the opening detectors for My Verisure
Hello! I’ve made the connection and my alarm is perfectly reporting.
Nice, I just have a feedback regarding the “Send a code”.
I currently have 3 numbers registered and it seems like it chose the number for me ^^’
Good catch: with multiple numbers, the integration always took the first one in the list. This is fixed in version 1.2.5, available in the store in about an hour.
Now, with multiple numbers:
Click on Send a code: no SMS is sent. The list of masked numbers appears (1) ******789, 2) ******245…).
Enter the position of your number (2) or its last digits (245) in the Phone field.
Click on Send a code again: the SMS is sent to the correct number.
question if the alarm triggers we have the info in the triggers?
Would it be possible to add a trigger « Verisure alarm triggered »? The current trigger « Alarm mode change » covers arming and disarming. During a break-in, the mode may remain unchanged.
I saw that the community integration Verisure OWA for Home Assistant reads the activity log from My Verisure and reports new entries of category alarm. Since the Gladys integration already uses the OWA API for My Verisure, could this log also serve as a source for a scene trigger?
It’s added in version 1.3.0, available in the store in about an hour.
New trigger: « The Verisure alarm has been triggered »
It reads the My Verisure event log, like the HA integration. It triggers on each new alarm, even if the mode does not change.
Filter on type: intrusion, sabotage (and also fire, SOS, water leak on the « Verisure » app).
Variables for the rest of the scene: kind, zone, label (the Verisure text), time.
To know:
The delay can be up to 2 minutes (default refresh). It does not replace remote monitoring.
An alarm that arrives while Gladys is stopped does not trigger anything on restart.
I only know a few My Verisure alarm codes. If you test an alarm, enable detailed logs: each new line of the log appears there (Event log: <code> "<text>"). Post them here (remember to hide address and phone), and I’ll add the missing codes.
And I remain open to suggestions for opening detectors
Thanks @spenceur for the logs, they helped find the cause.
It’s fixed in version 1.3.1, available in the store in about an hour.
Repeated Codes
Your line Session kept in memory only (EACCES) shows that Gladys created the /data folder for the integration as read-only.
As a result, the session was never saved: with each restart, My Verisure saw a “new device” and asked for a code again.
In this case, 1.3.1 now keeps the session in the Gladys integration configuration. It is never displayed.
You will need to validate one last code after the update, then nothing more on restarts.
In the logs you posted, the integration sent no code between 9:09 PM and 7:02 AM. If you received multiple SMS this morning, is another tool using this account (Home Assistant…)? Or do you have logs from before 9:09 PM?
The List of Numbers
Leave the Phone field empty and click Send a Code.
Nothing is sent: the list of masked numbers appears under the button (1) ******789, 2) ******245…).
Enter 1, 2… or the last digits of your number in Phone, then click Send a Code again.