Is there a way to use this integration so that when the UPS attached to Unraid cleanly shuts the server down and then normal power is restored to the UPS and not using the battery Home Assistant can turn the Unraid server back on using something like wake on lan?
For example; automation that checks if UPS is using the battery, if yes don't use wake-on-lan integration to wake up Unraid, if it's using mains power, send a magic packet using wake-on-lan integration.
Edit: I just realised this probably isn't going to work as HA isn't going to know the status off the UPS (battery or mains power) if Unraid is off. I only want to turn Unraid on if the UPS is using mains and no longer using battery.