fdegier / homebridge-jablotron-alarm

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

Jablotron - The service is unavailable #49

Closed Martinx64 closed 4 years ago

Martinx64 commented 4 years ago

Hello, i have installed homebridge to my Raspberry Pi 4 - Ubuntu 18.04. I have installed Jablotron plugin directly from Homebridge UI. I succesfully added bridge to my homekit and accesory is showing in my Home app, but it doesnt working. There is status in homebridge, that Jablotron service is unavailable.

Please could someone help me?

Thank you

fdegier commented 4 years ago

Could you take a look at the homebridge logs and let us know if there are any message regarding Jablotron? Most likely:

  1. You did not activate the account used by Homebridge for Jablotron
  2. Incorrect user, password, pincode
Martinx64 commented 4 years ago

Hello, thank you for your response :)

Could you take a look at the homebridge logs and let us know if there are any message regarding Jablotron? Most likely:

Iam using normal jablotron account, which i am using also for myjablotron application.

  1. You did not activate the account used by Homebridge for Jablotron - How do you mean, that maybe i did not activated account used for homebridge? Do i need somehow activate account?
  2. Incorrect user, password, pincode - User, password, pincode are correct

This is log when i try control jablotron device from my iPhone. Log bellow


[8/9/2020, 11:33:51 AM] [Jablotron] Error: at /usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:25:31 at IncomingMessage. (/usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:57:21) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1244:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) [8/9/2020, 11:33:51 AM] [Jablotron] About to update state for accessory [section_1] : update = true; cachedState = null; newState = null [8/9/2020, 11:33:51 AM] [Jablotron] Refreshing status for Jablotron service 12345 [8/9/2020, 11:33:52 AM] [Jablotron] { status: false, error_status: 'service_unavailable', error_message: 'The service is not available.', checksum: 'ac3c7c2d48dd8e1a4b468d37ea4dcd24', server_id: '5961802-1596965632', client_id: null } [8/9/2020, 11:33:52 AM] [Jablotron] Error: service_unavailable at /usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:25:31 at IncomingMessage. (/usr/lib/node_modules/homebridge-jablotron/lib/jablotron-client.js:57:21) at IncomingMessage.emit (events.js:326:22) at endReadableNT (_stream_readable.js:1244:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) [8/9/2020, 11:33:52 AM] [Jablotron] Status refreshed for Jablotron service 12345


Thank you Martin

ne 9. 8. 2020 o 10:39 Fred de Gier notifications@github.com napísal(a):

Could you take a look at the homebridge logs and let us know if there are any message regarding Jablotron? Most likely:

  1. You did not activate the account used by Homebridge for Jablotron
  2. Incorrect user, password, pincode

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/49#issuecomment-671024804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3OLAFBHMIWDJYBEBS7QG3R7ZOEZANCNFSM4PYTY6DA .

fdegier commented 4 years ago

You're account seems to be fine. How did you receive the service id?

Martinx64 commented 4 years ago

The service id “12345” was predefined in configuration tool. Should i change it?

Dňa ne 9. 8. 2020 o 12:03 Fred de Gier notifications@github.com napísala(a):

You're account seems to be fine. How did you receive the service id?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/49#issuecomment-671032477, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3OLACTN4TWCFAKE2GXYCLR7ZX5JANCNFSM4PYTY6DA .

fdegier commented 4 years ago

Yes, you need to adjust it to your service id, which can be found with the config helper: https://github.com/F4stFr3ddy/homebridge-jablotron-alarm#identify-jablotron-services-and-devices

Martinx64 commented 4 years ago

Great, it is working now, thank you.

Can i ask you something else?

  1. Is there any way to control more sections with, one click? How should i setup “segment id” and “segment key” in config? Maybe “State_1_2_3”?

  2. How can i setup night scene?

Dňa ne 9. 8. 2020 o 12:20 Fred de Gier notifications@github.com napísala(a):

Yes, you need to adjust it to your service id, which can be found with the config helper: https://github.com/F4stFr3ddy/homebridge-jablotron-alarm#identify-jablotron-services-and-devices

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/49#issuecomment-671033981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3OLABFSKM4SIGLWGR74ADR7ZZ5RANCNFSM4PYTY6DA .

misncz commented 4 years ago

You can create automation action in Home that can arm/partially arm/disarm more sections based on your requirements

What do you call night mode?

Martinx64 commented 4 years ago

When i controll accessory and i click “Night” (see picture), there is no response. How can i setup this button in config?

Thank you

Dňa ne 9. 8. 2020 o 13:02 misncz notifications@github.com napísala(a):

You can create automation action in Home that can arm/partially arm/disarm more sections based on your requirements

What do you call night mode?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/49#issuecomment-671037703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3OLAFXPOZ73MZSH5IO5HTR7Z643ANCNFSM4PYTY6DA .

misncz commented 4 years ago

Homekit itself (not the plugin) offers 4 “states” for alarms - Home/Away/Night (all these are for armed/partially armed) and Off (disarmed) The plugin uses Away and Off (alarm on and off) and Home (alarm partially armed - if I remember well this one can be remapped to Night for example, works only if your unit has at least one section configured for partial arming)

Martinx64 commented 4 years ago

Thank you. Is there way to setup in config, that one accessory will arm or disarm all my sections?

Dňa ne 9. 8. 2020 o 13:28 misncz notifications@github.com napísala(a):

Homekit itself (not the plugin) offers 4 “states” for alarms - Home/Away/Night (all these are for armed/partially armed) and Off (disarmed) The plugin uses Away and Off (alarm on and off) and Home (alarm partially armed - if I remember well this one can be remapped to Night for example, works only if your unit has at least one section configured for partial arming)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/F4stFr3ddy/homebridge-jablotron-alarm/issues/49#issuecomment-671040261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AN3OLADXRRPT3ELWKIF2SA3R72B6HANCNFSM4PYTY6DA .

misncz commented 4 years ago

In Home app create new scene Alarm On, add all sections to it with armed state

fdegier commented 4 years ago

Closing as the issue has been resolved.