segalion / securitasdirect

Home Assistant integration with Securitas Direct (AKA Verisure EU) and command line tool to interact with.
40 stars 17 forks source link

HA Italy #7

Open furetto72 opened 4 years ago

furetto72 commented 4 years ago

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 }

segalion commented 4 years ago

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?

furetto72 commented 4 years ago

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

segalion commented 4 years ago

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')], }

furetto72 commented 4 years ago

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

furetto72 commented 4 years ago

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

segalion commented 4 years ago

Thanks @furetto72 Updated on code.

Vartkat commented 4 years ago

Hi,

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

furetto72 commented 4 years ago

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

meazzaflavio commented 3 years ago

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

furetto72 commented 3 years ago

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 notifications@github.com 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 commented 3 years ago

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 < notifications@github.com> 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 .