pai icon indicating copy to clipboard operation
pai copied to clipboard

Code for disarm not working

Open mrbrdo opened this issue 1 year ago • 9 comments

The wiki describes it is possible to require a code for disarming through HA: https://github.com/ParadoxAlarmInterface/pai/wiki/Home-Assistant-integration#make-home-assistant-to-ask-for-a-code-to-armdisarm-dev-branch

First of all it mentions dev branch, but at the moment the dev branch is only 2 commits behind master (I assume that's stable), and those commits are unrelated to this. So the wiki should be updated.

In any case, adding the MQTT_HOMEASSISTANT_CODE in PAI config, and adding the customize code in my HA configuration.yaml doesn't change anything. Disarm still works and doesn't ask for a code.

PS: I also tried the development version of this HA addon, but with that one, arming/disarming doesn't work at all for me. The logs don't show any obvious errors.

Related: https://github.com/ParadoxAlarmInterface/pai/issues/194 https://github.com/ParadoxAlarmInterface/pai/issues/318

CC @yozik04

mrbrdo avatar Jan 30 '24 23:01 mrbrdo

Interesting. It used to work. Can you try one more time? Code on HomeAssistant side still expects same data that I am sending: https://github.com/home-assistant/core/blob/dev/homeassistant/components/mqtt/alarm_control_panel.py

yozik04 avatar Mar 28 '24 11:03 yozik04

More interesting that they started to suppport remote command. So I'd be able to send code to the PAI and validate there. From the code I'd be able to figure out the user who did the action and somehow use that info. But it all requires development.

yozik04 avatar Mar 28 '24 12:03 yozik04

I need to spend some time to debug it. Maybe, I will implement code checking on the PAI side. For EVO I am able to get user codes to match against, not sure if MG panels support that.

yozik04 avatar Apr 08 '24 12:04 yozik04

I need to spend some time to debug it. Maybe, I will implement code checking on the PAI side, for EVO I am able to get user codes to match against, not sure if MG panels support that. @jpbarraca is it possible to get user codes from MG panels?

yozik04 avatar Apr 08 '24 12:04 yozik04

@yozik04 it should be possible, as Babyware does show the codes, and I'm using PAI to connect to the panel from Babyware.

mrbrdo avatar Apr 29 '24 08:04 mrbrdo

@yozik04 I want to remind about this, now that changes have been made in HA https://github.com/ParadoxAlarmInterface/pai/issues/466

I'm not sure how the new functionality in HA is related to actual code checking/sending by PAI to the actual control unit.

mrbrdo avatar Jun 10 '24 23:06 mrbrdo

I will wait till HA 2024.6.2 at least to see of it was not a bug.

yozik04 avatar Jun 11 '24 07:06 yozik04