# RaPi UPS for HAOS (HASS)

**URL:** <https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919>\
**Category:** Raspberry Pi\
**Created:** [31 August 2023 06:14 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919 "2023-08-31T06:14:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ADC](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/adc/32/8839_2.png) [@ADC](https://forum.core-electronics.com.au/u/ADC)\
**Post date:** [31 August 2023 06:14 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919/1 "2023-08-31T06:14:40Z")

</div>

Novice here so excuse any ignorance in what I’m asking. I purchased the RaPi starter kit with: [Raspberry Pi 4 Case, Red/White (Official) | Core Electronics Australia](https://core-electronics.com.au/raspberry-pi-4-case-red-white.html). I’ve used it to setup a HA instance and have no become quite reliant on it so am looking into connecting a UPS.

Some little reading and I liked the simplicity and functionality of the PiJuice. After a chat with a staff member, we’re pretty sure the case won’t support this so considering a case with more vertical space. Unless there’s a non-HAT UPS that will do the job?

Given I do go down the PiJuice path - I’m presuming it will work as PnP but I won’t be able to customise anything given the OS I’m running?

---

<div class="post-metadata">

**Author:** ![James](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/james/32/4400_2.png) [@James](https://forum.core-electronics.com.au/u/James)\
**Post date:** [4 September 2023 01:40 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919/2 "2023-09-04T01:40:03Z")

</div>

Hi ADC, welcome to the forum!

I second the recommendation of the Pijuice. The software that runs on it will do smart stuff like shut down the Pi gracefully if the battery runs out during an outage. As for appropriate cases, something like this should work well:

> **[HighPi Raspberry Pi 4 Model B Case](https://core-electronics.com.au/highpi-raspberry-pi-4-model-b-case.html)**
>
> Updated for the Raspberry Pi 4, the very popular HighPi case defines ease of use and versatility. Tall enough to host a wide range of add-on boards, and slim enough to look cool. Use it with a Pi 4 alone, or with popular add-ons like the PoE, Serial,...

You will need to install the pijuice CLI, as described here: [https://github.com/PiSupply/PiJuice/blob/master/Software/README.md](https://github.com/PiSupply/PiJuice/blob/master/Software/README.md)

---

<div class="post-metadata">

**Author:** ![ADC](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/adc/32/8839_2.png) [@ADC](https://forum.core-electronics.com.au/u/ADC)\
**Post date:** [4 September 2023 04:57 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919/3 "2023-09-04T04:57:32Z")

</div>

Thanks for the reply James. That was the same case recommendation I got from another person so I think I’ll go ahead with that if I do get the PiJuice.  
From what I understood before, I would’ve needed to install the PiJuice software via the Rasbian OS. Or will it work on any Linux based OS?

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [5 September 2023 23:47 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919/4 "2023-09-05T23:47:05Z")

</div>

Hi Alex,

There’s actually an integration for HA directly!  
You can read more on this Repo: [GitHub - Racailloux/home-assistant-pijuice: Home Assistant integration to support PiJuice UPS Hat and retrieve values to sensors.](https://github.com/Racailloux/home-assistant-pijuice)

Liam

---

<div class="post-metadata">

**Author:** ![ADC](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/adc/32/8839_2.png) [@ADC](https://forum.core-electronics.com.au/u/ADC)\
**Post date:** [6 September 2023 07:08 UTC](https://forum.core-electronics.com.au/t/rapi-ups-for-haos-hass/17919/5 "2023-09-06T07:08:27Z")

</div>

Awesome thank you!  
Looks doable, even for me 🙂

Hypothetically, if I were to just install the hardware (HAT) onto my RaPi and boot it up, would it work without any modifications? I’m not 100%, but from the reading I’ve done, it seems like the software provides the ability to modify the config.  
So I’m wondering if it would work out of the box? As in, provide UPS to the RaPi, presumably until it run sout of battery if the mains were to be down for \>6 hours.
