Skip to content

rocob/hassio-ups

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 

Repository files navigation

hassio-ups

this manual is how to ups board SKU: EP-0118 in home assistant and rpi4

1. step

enable i2c:
https://www.home-assistant.io/hassio/enable_i2c/

2. step

in config folder download files and build docker image:

# git clone https://github.com/rocob/hassio-ups.git
# cd hassio-ups
# docker build -t hassio-ups .

this build cca 25 minutes

start docker container:

# docker run -d --privileged --restart=always -v /mnt/date/supervisor/homeassistant:/root/config:rw --name ups hassio-ups

after docker container every 1 minute update file with name ina219.txt with this content:

Date: 2021-01-01
Time: 17:22
Voltage: 5.148 V
Current: 778.561 mA
Power: 4103.902 mW
Shunt: 39.450 mV

3. step

create sensors in configuration.yaml file:

sensor:
  - platform: command_line
    name: UPS Voltage
    command: "cat /config/hassio_ups/ina219.txt | grep Voltage | cut -d ' ' -f2"
    unit_of_measurement: "V"
    #value_template: '{{ value | multiply(0.001) | round(1) }}'

ups board home page:
https://wiki.52pi.com/index.php/UPS_(With_RTC_%26_Coulometer)_For_Raspberry_Pi_SKU:_EP-0118

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published