Skip to content

remote shutdown #29

@ElektronB

Description

@ElektronB

Hi first of all I'm very happy with your ups, thanks a lot for making it. :)
But I want to ask if it is possible to turn off the ups by a uart cmd?

I'm using your ups to protect my storage from writing errors but if I turn off the power I want to shut down my pi and maybe 10sec later the ups.

At the moment the ups stay active until the battery is completely discharged.

What I need to do is:

  1. AV Power aktiv -> UPS turning on -> Pi turning on

  2. everything is running and the Pi uses the uart to monitor the AC input.

  3. AC input fails, my script will wait 60 sec and then initiate the save shutdown on the pi.

  4. during the shutdown of the pi I would like to add a small script that sends a short cmd to the UPS to completely cut power in X Sec as if the batterie were empty. something like "UPS_Stop,60\n"

4.1 an even better way would be to monitor the output current of the ups and if the output current drops below X mA we know that the pi is powered off and we can power down the UPS until AC Power comes back again.

  1. the UPS should stay in a stop or sleep state until AC power is active again.

If you share your code, I should be able to add this function, so i would love to get in touch with you.

Best Regards,
Sascha

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions