securitasdirect icon indicating copy to clipboard operation
securitasdirect copied to clipboard

HA Italy

Open furetto72 opened this issue 5 years ago • 11 comments

in the "alarm_control_panel.py" file SECURITAS_STATUS = {      '0': STATE_ALARM_DISARMED,      'P': STATE_ALARM_ARMED_HOME,      'Q': STATE_ALARM_ARMED_NIGHT,      '1': STATE_ALARM_ARMED_AWAY } at least for Italy it appears to me: SECURITAS_STATUS = {      '0': STATE_ALARM_DISARMED,      'Q': STATE_ALARM_ARMED_HOME,      'C': STATE_ALARM_ARMED_NIGHT,      'A': STATE_ALARM_ARMED_AWAY }

furetto72 avatar Nov 07 '19 17:11 furetto72

Thanks. I will add 'A' and 'C' states. Problem is 'Q' state that reports ARMED_NIGHT in spain and ARMED_HOME in Italy. Please can you confirm?

segalion avatar Nov 08 '19 10:11 segalion

yes, I confirm 'Q': STATE_ALARM_ARMED_HOME, I add the perimeter:  '3': STATE_ALARM_ARMED_PERI

furetto72 avatar Nov 08 '19 14:11 furetto72

Hi @furetto72 Last version include state '3' as STATE_ALARM_ARMED_CUSTOM_BYPASS (the standar state in HA that we can asume as PERI) Could you test it enabling this state in lovelace as documentation

type: alarm-panel
entity: alarm_control_panel.securitas_xxxxxxx
name: Alarma Securitas
states:
  - arm_away
  - arm_home
  - arm_night
  - arm_custom_bypass

SECURITAS_STATUS = { STATE_ALARM_DISARMED: ['0',("1","32")], STATE_ALARM_ARMED_HOME: ['P',("311","202")], STATE_ALARM_ARMED_NIGHT: [('Q','C'),("46",)], STATE_ALARM_ARMED_AWAY: [('1','A'),("2","31")], STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3',('???',)], STATE_ALARM_TRIGGERED: ['???',('13','24')], }

segalion avatar Nov 11 '19 09:11 segalion

I'm sorry for my english. I tested the changes and found problems:

  • if I try to disarm the panel it remains on I am disarming.
  • STATE_ALARM_ARMED_NIGHT arms as STATE_ALARM_ARMED_HOME
  • STATE_ALARM_ARMED_CUSTOM_BYPASS arms the perimeter but the panel does not display it and remains DISARMATED. I changed your code like this: SECURITAS_STATUS = {      STATE_ALARM_DISARMED: ['0', ("1", "32")],      STATE_ALARM_ARMED_HOME: ['Q', ("311", "202")],      STATE_ALARM_ARMED_NIGHT: ['C', ("46",)],      STATE_ALARM_ARMED_AWAY: ['A', ("2", "31")],      STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('???',)],      STATE_ALARM_TRIGGERED: ['???', ('13', '24')], } everything works except STATE_ALARM_ARMED_CUSTOM_BYPASS as mentioned above (disarmed state)

furetto72 avatar Nov 12 '19 10:11 furetto72

log status PERI : STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)]

furetto72 avatar Nov 12 '19 10:11 furetto72

Thanks @furetto72 Updated on code.

segalion avatar Nov 18 '19 12:11 segalion

Hi,

Where are you looking to get these code ? I'm in France and somtimes the status is not well reported.

Vartkat avatar Jan 04 '20 16:01 Vartkat

Hi,

Where are you looking to get these code ? I'm in France and somtimes the status is not well reported.

https://github.com/Cebeerre/VerisureAPIClient - ACT -> LOG ACTIVITY

furetto72 avatar Jan 17 '20 10:01 furetto72

log status PERI : STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)]

Hello @furetto72 @segalion , I've modified the code as follow but I'm not able to activate perimetral: SECURITAS_STATUS = { STATE_ALARM_DISARMED: ['0', ("1", "32")], STATE_ALARM_ARMED_HOME: ['P', ("311", "202")], STATE_ALARM_ARMED_NIGHT: [('Q', 'C'), ("46",)], STATE_ALARM_ARMED_AWAY: [('1', 'A'), ("2", "31")], STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)], STATE_ALARM_TRIGGERED: ['???', ('13', '24')], }

Do you know if there is something not correct in the code? Thanks

meazzaflavio avatar Nov 22 '20 12:11 meazzaflavio

Ciao, io per ora ho abbandonato questo script in quanto ho riscontrato dei seri problemi di loop nelle chiamate api al server di verisure, con conseguente blocco dell'intero sistema di allarme. Se vuoi ti invio gli ultimi codici che sono riuscito a recuperare.

Il dom 22 nov 2020, 13:10 meazzaflavio [email protected] ha scritto:

log status PERI : STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)]

Hello @furetto72 https://github.com/furetto72 @segalion https://github.com/segalion , I've modified the code as follow but I'm not able to activate perimetral: SECURITAS_STATUS = { STATE_ALARM_DISARMED: ['0', ("1", "32")], STATE_ALARM_ARMED_HOME: ['P', ("311", "202")], STATE_ALARM_ARMED_NIGHT: [('Q', 'C'), ("46",)], STATE_ALARM_ARMED_AWAY: [('1', 'A'), ("2", "31")], STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)], STATE_ALARM_TRIGGERED: ['???', ('13', '24')], }

Do you know if there is something not correct in the code? Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/segalion/securitasdirect/issues/7#issuecomment-731738121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSJYPQPSI6YNWKHGGWSDBTSRD5TVANCNFSM4JKKPPDQ .

furetto72 avatar Nov 22 '20 12:11 furetto72

eccoli: STATE_ALARM_DISARMED: ['0',("1","32")], STATE_ALARM_ARMED_HOME: ['P',("311","202", "203")], STATE_ALARM_ARMED_NIGHT: [('Q','C'),("46")], STATE_ALARM_ARMED_AWAY: [('1','A'),("2","31")], STATE_ALARM_ARMED_CUSTOM_BYPASS: [('3','C'),('204')], STATE_ALARM_TRIGGERED: ['???',('13','24')],

per ora io uso questo: https://github.com/Cebeerre/VerisureAPIClient

Il giorno dom 22 nov 2020 alle ore 13:10 meazzaflavio < [email protected]> ha scritto:

log status PERI : STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)]

Hello @furetto72 https://github.com/furetto72 @segalion https://github.com/segalion , I've modified the code as follow but I'm not able to activate perimetral: SECURITAS_STATUS = { STATE_ALARM_DISARMED: ['0', ("1", "32")], STATE_ALARM_ARMED_HOME: ['P', ("311", "202")], STATE_ALARM_ARMED_NIGHT: [('Q', 'C'), ("46",)], STATE_ALARM_ARMED_AWAY: [('1', 'A'), ("2", "31")], STATE_ALARM_ARMED_CUSTOM_BYPASS: ['3', ('204',)], STATE_ALARM_TRIGGERED: ['???', ('13', '24')], }

Do you know if there is something not correct in the code? Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/segalion/securitasdirect/issues/7#issuecomment-731738121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHSJYPQPSI6YNWKHGGWSDBTSRD5TVANCNFSM4JKKPPDQ .

furetto72 avatar Nov 22 '20 12:11 furetto72