Skip to content

Implement alarm trigger (emergency alarm) #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vanheerde opened this issue Feb 28, 2025 · 4 comments
Open

Implement alarm trigger (emergency alarm) #160

vanheerde opened this issue Feb 28, 2025 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@vanheerde
Copy link

Hello! I would like to set off the alarm via an entity via a "button". Does anyone have an idea how to do this? We have an emergency button on the alarm system but it doesn't have an entity for it.

Thank you!

@petrleocompel petrleocompel self-assigned this Mar 2, 2025
@petrleocompel
Copy link
Owner

There is an API for this (i remember about it) and It will need an service to be implemented.
But it was not implemented yet.

@petrleocompel petrleocompel changed the title Activate alarmsound with button Implement alarm trigger (emergency alarm) Mar 2, 2025
@petrleocompel petrleocompel added the enhancement New feature or request label Mar 2, 2025
@uvera
Copy link

uvera commented Mar 16, 2025

There is an API for this (i remember about it) and It will need an service to be implemented. But it was not implemented yet.

Where could one find documentation for such API?

@petrleocompel
Copy link
Owner

Probably siren API will be used. It is not trigger for emergency alarm but we can try to trigger the siren.
Or we can try to admit an system fault.

/ISAPI/SecurityCP/control/siren/<ID>?format=json

Image

JSON_SirenCtrl

{
  "SirenCtrl":{
    "switch":"", 
/*required, string type, switch: "open", "close"*/
    "List":[{
/*this node is only required when controlling multiple sirens*/
      "id": 
/*integer type, siren No., it starts from 1, 0xffffffff-control all sirens*/
    }]
  }
}

To get the sirens

/ISAPI/SecurityCP/status/sirenStatus?format=json

Image

JSON_SirenList

{
  "SirenList":[{
/*optional, siren list*/
    "Siren":{
      "id": , 
/*required, integer type, siren No.*/
      "seq":"", 
/*required, string type, peripheral serial No.*/
      "name":"", 
/*optional, string type, siren name*/
      "status":"", 
/*optional, string type, siren status: "notRelated"-not linked, "on", "off", "offline", "heartbeatAbnormal"-heartbeat exception*/
      "tamperEvident": , 
/*optional, boolean type, tampering status: "true"-tampered, "false"-not tampered*/
      "sirenAttrib":"",
/*string type, siren attribute: "wired", "wireless"*/
      "charge":"", 
/*optional, string type, state of charge: "normal", "lowPower"-low battery*/
      "chargeValue": , 
/*optional, int, battery power value which is between 0 and 100*/
      "signal": ,
/*optional, integer type, signal strength, it is between 0 and 255*/
      "model": "",
/*optional, string, model*/
      "temperature": ,
/*optional, read-only, int, temperature*/
      "subSystemList": [1, 2, 3],  
/*optional, int, list of the linked partitions*/
      "powerSupplyStatus":  "battery",  
/*optional, string, power supply status: "battery", "DC12V"*/
      "sirenColor":  "test",  
/*optional, string, siren color*/
      "isViaRepeater":  true,  
/*optional, boolean, whether the signal is transmitted via the repeater*/
      "repeaterName":  "test",  
/*optional, string, repeater name, this node is valid when isViaRepeater is true*/
      "version":  "test",  
/*optional, string, version No.*/
      "accessModuleType":  "localSiren",  
/*optional, string, access module type: "localSiren", this node should be used together with sirenAttribute (for displaying wireless or wired conditions)*/
      "address":  254,
/*optional, int, (wired) access module address*/
      "deviceNo":  1,  
/*optional, int, device No., range:[1,1000]. After installation, the installer will upload the device No. and the corresponding peripheral/detector information to the ARC for device type recognition*/
      "mainPowerSupply":  true  
/*optional, boolean, main power supply (external power supply is supported for wireless siren): true, false*/
    }
  }]
}

@uvera
Copy link

uvera commented Mar 18, 2025

#164
Implemented here, but it seems siren control isn't supported with my sirens

But in Hikvision app I have this panic alarm button which alarms all the sirens and main unit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants