When I look at the Zigbee2MQTT devices in the app UI and a device is offline, it shows the device as offline and when it was last seen which is fine.
I want to see the same information to use in Home Assistant lovelace cards but the issue I find is that the last seen time becomes unavailable when the device is offline (as in the entity sensor.switch_1_last_seen becomes unavailable).
Is there anyway I can get the last seen time in HA when a device is offline?