Feature request: support motion detectors, contact/shock detectors
Hello,
Thanks for this integration. I use it in France without problems.
My alarm system is comprised of motion detectors + shock detectors (sensors on each door and window that will trigger an alarm if someone tries to open) + smoke detectors.
Each of those devices has an integrated thermometer, which is recognized by the integration. The only difficulty is to be able to map the devices in HA (since HA only shows serial numbers, which Sector Alarm app hides), but customer service was helpful.
Beside temperature, I believe the integration would be helpful with the actual motion detectors and shock detectors.
- Motion detectors: trigger an event when movement is detected, and log movement as a binary sensor.
- Shock detectors: log open/close state as a binary sensor
I'm pretty sure the API provides that information, because it's available in the app.
What do you think?
Hi, glad to hear it works for you!
As far as your request goes:
- Motion sensor: this is only active as the system i armed and I’ve yet to see any relevant attribute for it in the API. However you should’ve an entity called ”Alarm” which should trigger should it detect motion as the system is armed.
- Shock sensors will most likely work without a problem, however as I don’t have them myself it’s hard to figure out the potential endpoints. If you could extract a HAR file as you visit the regular webinterface and watch the status of the sensors we should be able to figure out the relevant endpoints.
I've also got the shock and motion sensors. I could help you provide a HAR file if needed. Any specific action on the HA web interface that would help?
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
I've also got the shock and motion sensors. I could help you provide a HAR file if needed. Any specific action on the HA web interface that would help?
Sorry for the delay on replying.
It would suffice if you visit the site where the chock sensors are displaying their current status.
http://login.sectoralarm.com/u/login
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!
I can't login to the URL you mentioned :
How else can we help?
I hooe you can reopen the issue, as it woukd be very useful to be able to take advantage of those sensors.
I was able to log in, @garnser. The URL that worked for me is https://minside.sectoralarm.no/
In the browser's developer console, I can see the following request and response.
Request: POST /api/housecheck/doorsandwindows
{"panelId":"xxxxxxxxx"}
Response (shortened to a few items for brevity):
{
"Floors": [
{
"Name": "Ground floor",
"Key": "GROUND_FLOOR_PLACE",
"Rooms": [
{
"Id": "xxx-GUID-xxx",
"Name": "Kitchen",
"Key": "KITCHEN_PLACE",
"Index": 0,
"Devices": [
{
"Id": "5",
"Name": "chaussée cuisine fenêtre 1",
"Type": 1,
"Closed": true,
"LowBattery": false,
"Alarm": false,
"Serial": xxx,
"SerialString": "xxx",
"LastChanged": null,
"MountIndex": 1,
"MountType": 1,
"ChimeSettings": {
"Status": "Disabled",
"Sound": null
}
}
]
},
{
"Id": "xxx-GUID-xxx",
"Name": "Dining Room",
"Key": "DINING_ROOM_PLACE",
"Index": 0,
"Devices": [
{
"Id": "8",
"Name": "chaussée salle à manger fenêtre 1",
"Type": 1,
"Closed": true,
"LowBattery": false,
"Alarm": false,
"Serial": xxx,
"SerialString": "xxx",
"LastChanged": null,
"MountIndex": 1,
"MountType": 1,
"ChimeSettings": {
"Status": "Disabled",
"Sound": null
}
},
{
"Id": "7",
"Name": "chaussée salle à manger fenêtre 2",
"Type": 1,
"Closed": true,
"LowBattery": false,
"Alarm": false,
"Serial": xxx,
"SerialString": "xxx",
"LastChanged": null,
"MountIndex": 2,
"MountType": 1,
"ChimeSettings": {
"Status": "Disabled",
"Sound": null
}
}
]
}
]
}
]
}
Would you please be so kind as to reopen the issue? I don't have sufficient permissions to do it myself.
Thanks!
I think this is the same request as #137 (just for tracking).
Great, I'll have a look later today and try to add it!
@davux looking at it we're already indexing all devices in /doorsandwindows so these should get picked up already. However the link you're referring to is with the old v1 API rather than v2/doorsandwindows.
Does your alarm panel look like this https://www.sectoralarm.se/media/ykvlfxmn/startpaketnionitti.webp?anchor=center&mode=crop&width=650 or do you have an older version?
The URL I sent is a webapp I found on the internet (minside.sectoralarm.no). I don't know what my own system uses internally.
Here is a picture of my alarm panel:
Another important point: I'm on v0.4.3, which was released in 2023. I installed it from HACS. However, Github says there have been 195 commits since, but no new release. Maybe that's the reason?
Ah yeah, I haven’t package a new release yet, please try the master branch instead of the package
I've never installed an integration from git, I'll try tomorrow. I think HACS lets you publish releases as Beta so people are not prompted to update but they can still find the release in the list if they look.
I can confirm it does work from master branch. Awesome!
So we can close the issue as soon as the functionality is released. I think it's time now. ;)