I have tested the API
"181": {
"config": {
"battery": 100,
"on": true,
"reachable": true,
"temperature": 2400
},
"ep": 1,
"etag": "xxxxxxxxxxxxxxxxxx",
"lastannounced": "2023-09-16T08:15:25Z",
"lastseen": "2023-09-17T13:41Z",
"manufacturername": "LUMI",
"modelid": "lumi.sensor_magnet.aq2",
"name": "Main Bathroom Door",
"state": {
"lastupdated": "2023-09-17T13:41:08.653",
"open": true
},
"swversion": "0.0.0_0003",
"type": "ZHAOpenClose",
"uniqueid": "xxxxxxxxxxxxxxxxxx:02-01-0006"
}
This is an older
"18": {
"config": {
"battery": 100,
"on": true,
"reachable": true,
"temperature": 2100
},
"ep": 1,
"etag": "xxxxxxxxxxxxxxxxxxxxxxxx",
"lastannounced": null,
"lastseen": "2023-09-17T13:04Z",
"manufacturername": "LUMI",
"modelid": "lumi.sensor_magnet.aq2",
"name": "Back Door",
"state": {
"lastupdated": "2023-06-27T17:56:57.622",
"open": true
},
"swversion": "0.0.0_0003",
"type": "ZHAOpenClose",
"uniqueid": "xxxxxxxxxxxxxc2-01-0006"
}
The only difference I see is that the for sensors that are visible in HA
“lastannounced”: null
Does this ring any bells?