On my devices that have no integration, I put on power metering plugs to know if the device is using any electricity - then I can derive the status of it from that. If you have a streaming device attached, like Apple TV, you can use the state of the Apple TV to help too (i.e., suspend = TV off, playing = TV on).
Unfortunately, the support here is very limited. However, I managed to resolve the issue with the help of ChatGPT. If you’re curious, here’s how I did it: