Change Device status from Alerts

anyone knows if it is possible to change the status of a Device(green:ok, orange:warning, red:critial) from an alert.

For example if I have an alert for a temperature of a router and the alert trigger in warning state if the temperature is above 40°C, is there any way to reflect this warning state to the device state in order to display it as an orange icon in the world map for example?