petrleocompel / hikaxpro_hacs

HACS repository of Hikvision Ax Pro integration for home assistant
MIT License
46 stars 5 forks source link

Start Sirene or Alarm in an Automation ? #44

Open mced76 opened 1 year ago

mced76 commented 1 year ago

Is it possible to launch alarm "exemple intrusion alarm" or "Panic Alarm" from HomeAssistant. It will be cool if we can detect event with other sensor than AX-Pro and launch Alarm. Exemple High temperature, camera, weak sensor or button... Thans a lot

petrleocompel commented 1 year ago

This will depend really on device you have. I am sure this will not be implemented in AXHub. But could be possible for AXPro devices. I will take a look in API if any method is available.

DejanBukovec commented 1 year ago

Siren(Internal which I have home) have "test volume sound" option in HIK aplication so maybe this can be used also by ISAPI... Maybe SDK function can trigger it: /ISAPI/SecurityCP/control/siren/<ID>?format=json

petrleocompel commented 1 year ago

Well I can implement that as test next beta. Sadly I cannot test it since I dont have any siren.. I will take a look on it.

r0bb10 commented 1 year ago

i have 3 siren DS-PS1-E-WE if some test are needed :)

petrleocompel commented 1 year ago

Relays been implemented. Tomorrow starting implementation of sirens. Later tests will be needed.

stickmanbrad commented 1 year ago

Just wondered if there had been any further development on this? Would really like to be able to toggle my outdoor siren as a panic button in home assistant. Kind regards

petrleocompel commented 1 year ago

I am currently still finishing stuff at my work. From thursday I will have more time. Just reminder, this is opensource project. I work on it in my free time.

I will see on progress need to confirm some things with my installation. Sadly I do not own a siren.

stickmanbrad commented 1 year ago

I am currently still finishing stuff at my work. From thursday I will have more time. Just reminder, this is opensource project. I work on it in my free time.

I will see on progress need to confirm some things with my installation. Sadly I do not own a siren.

Thank you ever so much for the reply. I’m grateful for your time on this extremely valuable project, and appreciate your time. I know on a personal note I would be quite stuck without this integration. This additional feature would personally complete the alarm system for me, as Im sure it would for many others.

I have a siren for my AX Pro system, so happy to assist with testing where I can.

Looking forward to the future of the project. Bradley

rydikov commented 4 months ago

I used this entrypoint (/ISAPI/SecurityCP/Configuration/wirelessSiren/{}/ctrl) for test volume sound.

https://github.com/rydikov/ax-pro/commit/c5bd14283053d1acae641c751732b0a1a4e2635f

petrleocompel commented 4 months ago

@rydikov you created separated python lib for AX pro for just ISAPI ??

there is -> https://github.com/petrleocompel/hikaxpro (not hacs)

petrleocompel commented 4 months ago

Anyway mentioned above /ISAPI/SecurityCP/control/siren/<ID>?format=json seems to be better endpoint. I just do not have a siren to test it on. I will try to implement it in wrapper lib and pass it to HACS in this month.

rydikov commented 4 months ago

@rydikov you created separated python lib for AX pro for just ISAPI ??

there is -> https://github.com/petrleocompel/hikaxpro (not hacs)

Yes, before I found your repository without hacs :)

petrleocompel commented 4 months ago

😅 feel free to open pull request for missing stuff on the Lib repository. Any help is welcome.