pai
pai copied to clipboard
PGM status
Hi! I have latest paradox alarm interface for home assistant installed (2.2.5) The probleme is the same as it was in 2.2.4, it wont show correct PGM status. It always show OFF. If i turn home assistant switch - it switches on and after ~2sec it bounces back to off. If i press fast ON/OFF - the i cant turn off PGM If i press ON - it turns on PGM, but status drops back to OFF. Function works, but status/state visually - dont.
Control Panel: SP65,
Output status is currently not retrieved from the panel as this information is not present in the documentation. Will need to find if the status is actually exposed.
I confirm the same behaviors on MG5050.
PAI switches works in terms of functionality but the status is not show correct.
The big pain on this is that PGM is in reality in state ON but the PAI switch is shows OFF. Then, to switch the PGM from ON to OFF you have to change the PAI switch OFF>ON>OFF and then the PGM is turned OFF.
This is happening on auto-imported PGMs switches. I also defined MQTT switches in configuration.yaml file. These switches remains in last set status and let say, in terms of visualization, seems much more closer to PGMs reality.
switch:
- platform: mqtt
name: pai_PGM01
state_topic: "paradox/control/outputs/1"
command_topic: "paradox/control/outputs/1"
payload_on: "on"
payload_off: "off"
Can you please try latest dev branch. I think I have found the right place.
Old thread I know, but I experience this exact issue. I am on 3.1.0
Unfortunately no documentation on the protocol so we can not implement it currently.
I don't know if can help, this is the log (setting debug) when i press panic button (Pippo = user):
2023-09-14 08:55:06,015 - DEBUG - MainThread - PAI.paradox.paradox - Message received: Container:
fields = Container:
data = b'\xe2\x14\x17\t\x0e\n6(\x00\x00\x02\x00\x00\x00\x01R'... (truncated, total 36)
value = Container:
po = Container:
command = 14
status = Container:
reserved = False
alarm_reporting_pending = False
Winload_connected = True
NeWare_connected = False
time = 2023-09-14 10:54:00
event = Container:
major = 40
minor = 0
partition = 1
module_serial = u'0x1a' (total 4)
unknown0 = b'\x01' (total 1)
label = b'Pippo\x00\x00\x00\x00\x00\x00\x00\x00\x00' (total 16)
unknown1 = b'\x0c' (total 1)
reserved0 = b'\x00\x00\x00\x00' (total 4)
offset1 = 0
offset2 = 36
length = 36
checksum = b'q' (total 1)
2023-09-14 08:55:06,018 - DEBUG - MainThread - PAI.paradox.paradox - Missing element ID in special/Pippo, m/m: 40/0, message: Special alarm: Panic non-medical emergency
2023-09-14 08:55:06,019 - DEBUG - MainThread - PAI.paradox.paradox - LiveEvent: <class 'paradox.event.LiveEvent'>
timestamp = 2023-09-14 10:54:00
level = CRITICAL
type = special
change = {}
tags = ['alarm', 'trigger']
additional_data = {}
hook_fn = None
label_provider = <bound method Paradox.get_label of <paradox.paradox.Paradox object at 0xb5e3dbc8>>
major = 40
minor = 0
id = None
partition = 1
module = 0x1a
label_type = None
label = Pippo
message = Special alarm: Panic non-medical emergency
2023-09-14 08:55:06,022 - DEBUG - BasicMQTTInterface - PAI.paradox.interfaces.mqtt.core - MQTT: paradox/events/raw={"additional_data": {}, "change": {}, "id": null, "key": "special,Pippo,", "label": "Pippo", "label_type": null, "level": "CRITICAL", "major": 40, "message": "Special alarm: Panic non-medical emergency", "minor": 0, "module": "0x1a", "name": "-", "partition": 1, "tags": ["alarm", "trigger"], "timestamp": "2023-09-14T10:54:00", "type": "special"}