REST API - get device name?

Firstly thanks to everyone for an amazing program!

I’m writing a Windows Service to send an email alert when a device disconnects. This is working great and I’m using the Event API to monitor when this happens and which device has disconnected.

The problem is that the Event API doesn’t return the device name which makes it slightly complicated when looking at the dashboard to see which device has just disconnected, especially when you already have several disconnected devices.

Is there a way for me to get the device name from the device id or address? I’ve looked at the GET /rest/system/discovery but that only returns the address and last seen date for each device id.

Apologies if this has already been asked/documented or if the solution is right in front of me. (I have looked!)



These are in the config

1 Like

Oops I clearly didn’t look hard enough. Thanks for your help!