fdegier / homebridge-jablotron-alarm

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

Error: Bypass_dialog_timed #83

Closed TarkDetrius closed 1 year ago

TarkDetrius commented 2 years ago

Hello,

couple days ago I am getting an error when trying to do any change via the plugin. I am running a docker version of HB on DS920+. I expect it could have something to do with the change in the application where you need to wait or confirm that you want to proceed with the state change right away.

I am running the latest version 2.5.5

Expected Behavior

To set the arm modes

Steps To Reproduce

Click any arming button in HK

Logs

[4/15/2022, 8:13:50 AM] [Jablotron] Setting section state: section_1 => 1 [4/15/2022, 8:13:50 AM] [Jablotron] Switching section section_1 (using section_1) to new state: set [4/15/2022, 8:13:53 AM] [Jablotron] { status: false, error_status: 'bypass_dialog_timed', checksum: '9f785d19e3d329edfb6ebff755a44f79', server_id: '9016932-1650003233', client_id: null } [4/15/2022, 8:13:53 AM] [Jablotron] Error: bypass_dialog_timed at /homebridge/node_modules/homebridge-jablotron/lib/jablotron-client.js:36:31 at IncomingMessage. (/homebridge/node_modules/homebridge-jablotron/lib/jablotron-client.js:68:21) at IncomingMessage.emit (node:events:532:35) at endReadableNT (node:internal/streams/readable:1346:12) at processTicksAndRejections (node:internal/process/task_queues:83:21) Configuration

{ "name": "Jablotron", "services": [ { "id": xxxx, "name": "Home", "username": "xxxxx", "password": "xxxx", "pincode": "xxxx", "autoRefresh": true, "poolInterval": 60, "refreshOnStateChange": true, "debug": false, "sections": [ { "name": "House", "segment_id": "STATE_1", "segment_key": "section_1", "keyboard_key": "keyboard_2_3", "armedMode": "Away", "partiallyArmedMode": "Night" } ], "switches": [ { "name": "Dům", "segment_id": "STATE_1", "segment_key": "section_1" }, { "name": "Noční režim", "segment_id": "STATE_2", "segment_key": "section_2" }, { "name": "Pohyb", "segment_id": "STATE_3", "segment_key": "section_3" } ] } ], "platform": "Jablotron" } Environment

OS: DS 920+ docker file Software: 2.5.5 Node: npm:

misncz commented 2 years ago

We are not aware of any application changes. My installation can change statuses without issues incl complex scenes/automation Have you agreed Jablotron cloud terms for account used by the plugin on MyJablotron website?

TarkDetrius commented 2 years ago

I did years ago :) nothing there (I would expect some pop up, correct?)

fdegier commented 2 years ago

Hi please see this issue: https://github.com/fdegier/homebridge-jablotron-alarm/issues/37

Bypass always means that you need to confirm it, I think that is something that should be handled on the users side.

TarkDetrius commented 2 years ago

Yeah you are right, the issue is caused by the prompt dialogue and there are ways around that. however it would be good if the plugin could still work with that (it is enough to wait 10s) and not cause errors.

Thank you for your great work!

fdegier commented 2 years ago

Hmm, I might be able to make that an option, however, ideally I would let the HomeKit get a notification of a failed arm. The reason is, if you leave a door open, you get this popup, then you make a deliberate choice, in HomeKit its not possible to make that choice and automating it takes the whole mechanism away.

TarkDetrius commented 2 years ago

that makes sense. however now the behaviour is that nothing gets flagged and only after refresh the switch in HK is turned back to being off. however feel free to close this issue :)

On Wed, Apr 20, 2022 at 3:54 PM Fred de Gier @.***> wrote:

Hmm, I might be able to make that an option, however, ideally I would let the HomeKit get a notification of a failed arm. The reason is, if you leave a door open, you get this popup, than you make a deliberate choice, in HomeKit its not possible to make that choice and automating it takes the whole mechanism away.

— Reply to this email directly, view it on GitHub https://github.com/fdegier/homebridge-jablotron-alarm/issues/83#issuecomment-1103962108, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYXMCGUA3EWEXJYJFTVV47TVGAEC7ANCNFSM5TTM5QMA . You are receiving this because you authored the thread.Message ID: @.***>

fdegier commented 2 years ago

No, you have a valid point, we should do something with this. I'm just not sure how to proceed

cgajdzik commented 2 years ago

Hi @fdegier , do you already have any solution in mind?

fdegier commented 2 years ago

@cgajdzik I've just gotten my sniffing setup in place again, I will setup a scenario to test it and see if we can bypass it.

fdegier commented 2 years ago

So I was finally able to test this, and the good thing is, its an easy fix 😄 will tag you in the PR.

fdegier commented 2 years ago

A new update, I tried adding it to api 1.8 but it does not work, I can only make it work in 1.9 which on itself is a massive upgrade. I started preparing for the upgrade to 1.9 but it will take a while.

fdegier commented 1 year ago

Support added in 3.0.0