Set device connection status via API?

Hi there,
would there be a way to force set the device connectivity status?
I have a set of devices that are connected to another system and I can check via their API whether is online or offline.
Ideally I don’t want to create a separate attribute for that, because it would be nice to see the device Connection Status in the dashboard panel.



Note, it will only work on device classes that can connect to our MQTT broker (so, not systems or peripherals).

1 Like

That worked just fine!