fdegier / homebridge-jablotron-alarm

Homebridge plugin for connecting Jablotron JA-100 alarm systems to Homekit.
The Unlicense
26 stars 5 forks source link

Support triggered alarm #40

Closed fdegier closed 1 year ago

fdegier commented 4 years ago

Homekit supports a triggered alarm (state 4), Jablotron represents this in the API with the following response:

{
    "data":
    {
        "service_data": [
        {
            "service_type": "oasis",
            "service_id": 123456,
            "data_status": "updated",
            "checksum": "c2bcaf44db369aa14238c6f7d992bd19",
            "service_events_type": "alarm",
            "service_events": [
                [1578052916, "Alarm - Section Obyvak"]
            ],

Normally the service_events is just an empty list, signaling its not triggered.

Given that we now know this, we should be able to implement this.

A few concerns / unknowns:

Given that we fetch the status every minute we can just check if the alarm is triggered.

fdegier commented 3 years ago

@grzegorz914 do you think it would be valuable to implement this? I have a few concerns written above, therefor I haven't proceeded with this issue.

grzegorz914 commented 3 years ago

This would be very helpful to represent triggered alarm and send notification if happening. Its no matter for me on which section this happen, in main functionality we know the alarm was triggered