Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for disarming #479

Open
lucky5822 opened this issue Jun 30, 2024 · 19 comments
Open

Code for disarming #479

lucky5822 opened this issue Jun 30, 2024 · 19 comments
Labels
question Further information is requested

Comments

@lucky5822
Copy link

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 lucky5822 added the question Further information is requested label Jun 30, 2024
@lucky5822
Copy link
Author

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

@yozik04
Copy link
Collaborator

yozik04 commented Jul 4, 2024

Tried this? MQTT_HOMEASSISTANT_CODE?

@lucky5822
Copy link
Author

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
Copy link
Collaborator

yozik04 commented Jul 4, 2024

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

@lucky5822
Copy link
Author

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

Yes 3.5.0

@yozik04
Copy link
Collaborator

yozik04 commented Jul 4, 2024

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
Copy link
Author

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
Copy link

fdcastel commented Jul 8, 2024

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

Using PAI 3.4.1

@lucky5822
Copy link
Author

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
Copy link

fdcastel commented Jul 8, 2024

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
Copy link
Collaborator

yozik04 commented Jul 8, 2024

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
Copy link
Author

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
Copy link
Collaborator

yozik04 commented Jul 9, 2024

Yes. I do not set default code.

@fdcastel
Copy link

fdcastel commented Jul 9, 2024

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
Copy link
Collaborator

yozik04 commented Jul 10, 2024

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

@fdcastel
Copy link

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
Copy link

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
Copy link
Collaborator

yozik04 commented Aug 3, 2024

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
Copy link

CookeryTech commented Aug 5, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants