ParadoxAlarmInterface / pai

Paradox Magellan, Spectra and EVO, with MQTT, Signal, Pushbullet, Pushover and others
https://gitter.im/paradox-alarm-interface
Eclipse Public License 2.0
347 stars 92 forks source link

Code for disarming #479

Open lucky5822 opened 2 months ago

lucky5822 commented 2 months ago

Alarm system

Evo192

Environment

Windows

Git branch

Question

Hi guys, I installed PAI yesterday and everything works fine. I would like to insert the code when I disarm from the alarm card. I tried different procedures I read on open issues but nothing worked for Me. Now I can arm and disarm from the alarm card but no code is asked. Adding the “default code” parameter does not have any effect. I’m running ha 2024.6.4 Could you please help Me?

Logs (if required)

lucky5822 commented 2 months ago

Anyone can help me? I'm still able to arm/disarm but I would like to insert the code for disarming.

yozik04 commented 2 months ago

Tried this? MQTT_HOMEASSISTANT_CODE?

lucky5822 commented 2 months ago

Tried this? MQTT_HOMEASSISTANT_CODE?

Yes. I tried that yesterday and this is the behavior: if I set `MQTT_HOMEASSISTANT_CODE': "9999" but I don't set the parameter "default code" the keypad appears in the card but returns the error "Validation error: Arming requires a code but none was given ". As soon as I set it everything works but the keypad disappear.

yozik04 commented 2 months ago

and you have the last version of the add-on installed?

lucky5822 commented 2 months ago

and you have the last version of the add-on installed?

Yes 3.5.0

yozik04 commented 2 months ago

I need to check myself as I have no clue what is going on with this new HomeAssistant releases. I am still on 2024.05.x version.

lucky5822 commented 2 months ago

I need to check myself as I have no clue what is going on with this new HomeAssistant releases. I am still on 2024.05.x version.

Thank you!

fdcastel commented 2 months ago

I'm also having this same problem after upgrading to HA 2024.7.1

Using PAI 3.4.1

lucky5822 commented 2 months ago

I'm also having this same problem after upgrading to HA 2024.7.1

Using PAI 3.4.1

For the moment I used alarmo custom card to bypass the problem using an automation that invoke the arm/disarm process on pai. But is a workaround to avoid someone disarm without code which is not safe. I'm waiting @yozik04 to test it on Ha last release. Finger crossed.

fdcastel commented 2 months ago

I believe I found a solution: for each partition, edit the partition entity and insert any value into Default code.

Screenshot_20240708_125616_Home Assistant

yozik04 commented 2 months ago

I have checked myself and I do not see any problems: MQTT_HOMEASSISTANT_CODE = '12345' To arm and disarm it asks for password. Specifying wrong password does not allow to arm or disarm. I need more details what exactly does not work.

lucky5822 commented 2 months ago

I have checked myself and I do not see any problems:

MQTT_HOMEASSISTANT_CODE = '12345'

To arm and disarm it asks for password. Specifying wrong password does not allow to arm or disarm.

I need more details what exactly does not work.

I don't know why but now it works only if I don't fill the option default code: image

MQTT_HOMEASSISTANT_CODE = '12345' is set correctly.

image

Anyway now it works. Thanks for the support!

yozik04 commented 2 months ago

Yes. I do not set default code.

fdcastel commented 2 months ago

MQTT_HOMEASSISTANT_CODE = '12345' To arm and disarm it asks for password. Specifying wrong password does not allow to arm or disarm.

Hm. I do not have this setting in my pai.conf. To arm and disarm any partition, HA doesn't ask me for a code. And it works.

But what I do have is PASSWORD = xxxx set in pai.conf.

The problem appears to be in HomeAssistant and not in PAI. It seems they added a validation to require that "Default code" which (in @lucky5822 case and mine) is actually NOT required.

Simply entering anything in "Default code" fixes the problem. I did not entered my password in that setting. I typed "12345".

yozik04 commented 2 months ago

Maybe you use some old PAI 2.x. You can always add settings in pai.conf if you need.

fdcastel commented 1 month ago

Maybe you use some old PAI 2.x.

Using PAI 3.4.1

You can always add settings in pai.conf if you need.

👍🏻

CookeryTech commented 1 month ago

I am Running Paradox Alarm IP150 Interface (Version 3.50) with MQTT in two locations. Everything has been running fine until I upgraded to HA 20224.6.0 and all subsequent releases. If I downgrade to 2024.5.5 everything returns to normal. In the current version I dont use a code to arm or disarm. As soon as I update HA I get an error saying that no code is provided and it wont arm.
Have tried adding a code into MQTT_HOMEASSISTANT_CODE = but it doesnt show a keypad and nothing I have tried works.

I am happy to use a keypad if required as I probabaly should but anything that would work would be helpful.

yozik04 commented 1 month ago

I don't use code and it works fine. ..._CODE is not defined in settings and no default code in partition settings in HA. I assume you use ..._AUTODISCOVERY If you have same settings and it still does not work. Try deleting all mqtt topics for PAI in autodiscovery. Maybe you have a conflict from previous version (2.x). No other ideas at the moment. It should work.

CookeryTech commented 1 month ago

I tried deleting all the mqtt topics….Yes Auto discovery is on. Works fine on 2024.5.5 but as soon as I upgrade it gives the following error.

Failed to call service alarm_control_panel/alarm_arm_away. Validation error: Arming requires a code but none was given for alarm_control_panel.area_1

Reading on line I see a number of other alarm interfaces are having issues with the current versions so Im not sure the problem is the PAI interface directly but something has changed in HA ?

Alan Swafford

From: Jevgeni Kiski @.> Sent: Saturday, August 3, 2024 5:28 PM To: ParadoxAlarmInterface/pai @.> Cc: CookeryTech @.>; Comment @.

Subject: Re: [ParadoxAlarmInterface/pai] Code for disarming (Issue #479)

I don't use code and it works fine. ..._CODE is not defined in settings and no default code in partition settings in HA. I assume you use ..._AUTODISCOVERY If you have same settings and it still does not work. Try deleting all mqtt topics for PAI in autodiscovery. Maybe you have a conflict from previous version (2.x). No other ideas at the moment. It should work.

— Reply to this email directly, view it on GitHub https://github.com/ParadoxAlarmInterface/pai/issues/479#issuecomment-2266381427, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBO4EO676S7ZSJKRGA5L43LZPRS4RAVCNFSM6AAAAABKEIVQD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRWGM4DCNBSG4 . You are receiving this because you commented.Message ID: < @.***>