pai icon indicating copy to clipboard operation
pai copied to clipboard

Code for disarming

Open lucky5822 opened this issue 1 year ago • 19 comments

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 avatar Jun 30 '24 17:06 lucky5822

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

lucky5822 avatar Jul 03 '24 19:07 lucky5822

Tried this? MQTT_HOMEASSISTANT_CODE?

yozik04 avatar Jul 04 '24 06:07 yozik04

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.

lucky5822 avatar Jul 04 '24 06:07 lucky5822

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

yozik04 avatar Jul 04 '24 07:07 yozik04

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

Yes 3.5.0

lucky5822 avatar Jul 04 '24 07:07 lucky5822

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.

yozik04 avatar Jul 04 '24 08:07 yozik04

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!

lucky5822 avatar Jul 04 '24 09:07 lucky5822

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

Using PAI 3.4.1

fdcastel avatar Jul 08 '24 12:07 fdcastel

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.

lucky5822 avatar Jul 08 '24 12:07 lucky5822

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

fdcastel avatar Jul 08 '24 15:07 fdcastel

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.

yozik04 avatar Jul 08 '24 19:07 yozik04

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!

lucky5822 avatar Jul 08 '24 20:07 lucky5822

Yes. I do not set default code.

yozik04 avatar Jul 09 '24 04:07 yozik04

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".

fdcastel avatar Jul 09 '24 21:07 fdcastel

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

yozik04 avatar Jul 10 '24 06:07 yozik04

Maybe you use some old PAI 2.x.

Using PAI 3.4.1

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

👍🏻

fdcastel avatar Jul 10 '24 23:07 fdcastel

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.

CookeryTech avatar Aug 03 '24 00:08 CookeryTech

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.

yozik04 avatar Aug 03 '24 05:08 yozik04

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: < @.***>

CookeryTech avatar Aug 05 '24 20:08 CookeryTech