dchesterton/texecom2mqtt-hassio

Prox Tag Info

Opened this issue · 1 comments

Not sure if this is a Bug report but more of a feature request maybe!

Application version
Current version: 1.2.3

Texecom alarm type
Premier Elite 48

Home Assistant version
2022.7

I note the log is populated under "UserCode" with "user_id" and "user_name" which is great, however we have multiple users and they all use prox tags to arm and disarm the system (so much so that if I asked them to use the keypad I would be surprised if any of them even remembered their user codes).

However there appears to be know way (there might be but I haven't found it after several hours of playing) of knowing what prox tag was used as all I can see is this:

{
  "type": "ProxTag",
  "description": "Prox Tag",
  "timestamp": "2022-08-05T07:54:24Z",
  "areas": [
    "A"
  ],
  "parameter": 1,
  "groupType": 0
}

The texecom emails that are also send via a separate ComiP module do include the user regardless of the method used.

Can this info be added in any way?

I've had a look at the MQTT data and you're correct :

{"type":"ProxTag","description":"Prox Tag","timestamp":"2023-06-14T21:53:50Z","areas":["A"],"parameter":2,"groupType":0}
vs
{"type":"UserCode","description":"User Code","timestamp":"2023-06-14T21:53:10Z","areas":["A"],"parameter":2,"groupType":0,"entity":{"user_id":2,"user_name":"Mr K."}}

Wonder how hard it would be to add this into the code - might take a look and see if it's easy or not.