Used to get data from UPS For Raspberry Pi
Description
This is a new version of UPS Board.It not only supports Raspberry Pi 4B but also adds type C output. It provides enough power for the Raspberry Pi to make your Raspberry Pi still work while moving, and its design is so smart that you can get rid of troubled of a mass wire. This UPS can provide you with the operation of replacing the battery yourself. This new UPS not only supports an independent RTC module, but also provides a coulomb counter.
You can obtain battery voltage and current information through I2C in the system. Combined with different programming methods, you can inherit the power information into the system. It is also convenient to detect the state of the battery, which can be detected and warned through the program. It can use most of the 18650 standard batteries and fully comply with the battery characteristics in terms of battery life. In addition, the power display provided on the circuit board is also very user-friendly. The illuminated LED light can quickly show the remain power and support the discharging while charging. You can directly connect to the external power supply for charging. At the same time, the Raspberry Pi will not be turned off.
Manual mode
Place the rups
folder into your custom_components
folder.
Adding custom repository to HACS
Go to the Integrations page in HACS and select the three dots in the top right corner. Select Custom repositories. Add repository url. Category - Integration. Read more on https://hacs.xyz/docs/faq/custom_repositories.
Configuration variables:
key | description | default |
---|---|---|
platform (Required) | The platform name | rups |
name (Optional) | Let you overwrite the name of the sensor | raspberry_ups |
monitored_variables (Optional) | List of exposed variables | - bus_voltage - bus_current - power - shunt_voltage |
The rups
sensor platform allows you to get data from UPS for Raspberry PI.
# Example configuration.yaml entry
sensor:
- platform: rups
name: raspberry_ups
- type: entities
entities:
- sensor.raspberry_ups_bus_current
- sensor.raspberry_ups_bus_voltage
- sensor.raspberry_ups_power
- sensor.raspberry_ups_shunt_voltage