gawindx / homebridge-risco-platform

RiscoAlarm Platform for Homebridge - Originally based on the 'szlaskidaniel / homebridge-risco-alarm' project
5 stars 1 forks source link

Error 422 #35

Closed gnoto closed 3 years ago

gnoto commented 3 years ago

At start-up I receive the following messages:

[26/12/2020, 16:08:23] [Beethoven Alarm] Accessories Init Phase Started [26/12/2020, 16:08:23] [Beethoven Alarm] Discovering Phase Started [26/12/2020, 16:08:24] [Beethoven Alarm] Cloud Authentication Successfull [26/12/2020, 16:08:24] [Beethoven Alarm] Error 422 null [26/12/2020, 16:08:24] [Beethoven Alarm] Discovering Phase Ended [26/12/2020, 16:08:24] [Beethoven Alarm] Error on Discovery Phase : No Accessory Discovered [26/12/2020, 16:08:24] [Beethoven Alarm] PreConf Phase Started [26/12/2020, 16:08:24] [Beethoven Alarm] PreConf Phase Ended [26/12/2020, 16:08:24] [Beethoven Alarm] Create Accessory Phase Started [26/12/2020, 16:08:24] [Beethoven Alarm] Accessories Init Phase Ended

My config is the following:

{ "platform": "RiscoAlarm", "name": "Beethoven Alarm", "riscoUsername": "xxxx", "riscoPassword": "xxxx", "riscoSiteId": xxxx, "riscoPIN": "xxxx" }

Any idea?

gawindx commented 3 years ago

for the error 422, I do not see, I did not have the right to it yet during the development.

for the fact that it does not find anything, try by defining at least in element (partitions / groups / outputs / detector) if you just want to arm / disarm, try with: "Partition": "system" to manage all partitions as a single entity or "Partition": "all" to recover each partition independently

gawindx commented 3 years ago

I took note of your message but for security concerns I deleted it.

Even edited, it is possible to go back to the original message and I don't know if I am the only one able to do it in this repository so in doubt ...

be more vigilant when posting sensitive information.

gnoto commented 3 years ago

You are right! I’m very sorry and grateful to you.

Tnx

On 26 Dec 2020, at 18:58, Decaux Nicolas notifications@github.com wrote:

I took note of your message but for security concerns I deleted it.

Even edited, it is possible to go back to the original message and I don't know if I am the only one able to do it in this repository so in doubt ...

be more vigilant when posting sensitive information.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gawindx/homebridge-risco-platform/issues/35#issuecomment-751380281, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBCWZVE66KCYUBR54A3VALSWYP4XANCNFSM4VJ7OT2A.

gnoto commented 3 years ago

Solved. I had a wrong digit in the riscoSiteId

gawindx commented 3 years ago

it's interesting I will have to test this, it will add a more explicit error message in this case.

I leave the issue open until this improvement is addressed.

baz18 commented 3 years ago

Hi, I have the same problem described by gnoto [3/19/2021, 5:30:09 PM] [RiscoAlarm] Accessories Init Phase Started [3/19/2021, 5:30:09 PM] [RiscoAlarm] Discovering Phase Started [3/19/2021, 5:30:10 PM] [RiscoAlarm] Cloud Authentication Successfull [3/19/2021, 5:30:10 PM] [RiscoAlarm] Error 422 null [3/19/2021, 5:30:10 PM] [RiscoAlarm] Discovering Phase Ended [3/19/2021, 5:30:10 PM] [RiscoAlarm] Error on Discovery Phase : No Accessory Discovered [3/19/2021, 5:30:10 PM] [RiscoAlarm] PreConf Phase Started [3/19/2021, 5:30:10 PM] [RiscoAlarm] PreConf Phase Ended [3/19/2021, 5:30:10 PM] [RiscoAlarm] Create Accessory Phase Started [3/19/2021, 5:30:10 PM] [RiscoAlarm] Accessories Init Phase Ended

here is my config, btw it worked ok on a previous hoobs configuration, but now I switched to homebridge and I get error 422

{ "platform": "RiscoAlarm", "name": "RiscoAlarm", "polling": true, "pollInterval": 15000, "riscoUsername": "xxxx", "riscoPassword": "xxxx", "riscoSiteId": xxxx, "riscoPIN": "xxxx", "OccupancyPreventArming": true, "armCommand": "armed", "partialCommand": "partially", "homeCommand": "disarmed", "disarmCommand": "disarmed", "Partition": "system" }

thanks in advance for your help

gawindx commented 3 years ago

it is an identification error during the second connection phase to RiscoCloud.

At this stage, only 2 pieces of information are exchanged:

so it is most likely an error on one of these two values.

The last version should have given more precise information but it seems that I left an error in the handling of this error code and therefore it is not clearly indicated in the logs.

baz18 commented 3 years ago

it is an identification error during the second connection phase to RiscoCloud.

At this stage, only 2 pieces of information are exchanged:

  • The SiteID
  • The pin code

so it is most likely an error on one of these two values.

The last version should have given more precise information but it seems that I left an error in the handling of this error code and therefore it is not clearly indicated in the logs.

Thank you, I manually typed the siteId again and it is working correctly now

gawindx commented 3 years ago

Problem corrected in version 1.2.4 (1.2.5 for the wrong error code) to take into account error 422 and display an appropriate error code.