Homematic.keypress giving inconsistent results

I am running Home Assistant OS 2021.8 with the RaspberryMatic CCU add-in. The CCU is set to generate a short keypress every 60 seconds as a watchdog timer to notify HA if connectivity is lost.
The HA automation listens for the homematic.keypress events and notifies me if it doesn’t see one for more than five minutes. This is what the event looks like:

{
    "event_type": "homematic.keypress",
    "data": {
        "name": "HM-RCV-50 BidCoS-RF",
        "param": "PRESS_SHORT",
        "channel": 1
    },
    "origin": "LOCAL",
    "time_fired": "2021-08-06T16:21:00.942586+00:00",
    "context": {
        "id": "d658fa55b8d60eff3484ca3c38f03dfc",
        "parent_id": null,
        "user_id": null
    }
}

This all works fine until I do a restart of the host system, when the event looks like this:

    "event_type": "homematic.keypress",
    "data": {
        "name": "BidCoS-RF",
        "param": "PRESS_SHORT",
        "channel": 1

Notice that the “name” has changed from “HM-RCV-50 BidCoS-RF” to just “BidCoS-RF”, which of course causes my automation to fail. Restarting the CCU add-in doesn’t fix this, but restarting HA does.

Any ideas?

That seems to be a bug. Can you test if this also happens when you disable the resolvenames option? (given you have it enabled currently)

Hi Daniel,
Yes I have resolvenames: json. I disabled this and restarted HA, and I’m getting “name”: “HMBidCoS-RF”.

I tried several restarts and rebooting the host OS with no change.

Putting back the resolvenames and restarting HA restores the name to “HM-RCV-50 BidCoS-RF”.

So resolvenames seems to make it worse.

Pat

So I managed to get some time to try this again with the latest versions of HA and RaspberryMatic. The results are still the same - a full host system reboot results in the shortened name of HMBidCoS-RF being returned. Then restarting HA corrects the problem, with HM-RCV-50 BidCoS-RF returned.
It would seem like the problem is with HA, but I don’t know how to prove it.