EasyManua.ls Logo

SunFounder PiPower - Setting up Safe Shutdown

Default Icon
63 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SunFounder PiPower
update.pipower_pro_firmware - Update firmware
switch.pipower_pro_power_switch - Output switch (bool)
sensor.pipower_pro_version - PiPower Pro version (String)
All Services
set_battery_factory_capacity - Modify battery factory nominal capacity (capacity: int, mAh), default 2000
enable_coulomb_count_beta - Enable Coulomb counting algorithm (enable: bool), default false
reset_capacity - Reset current capacity to factory nominal capacity
reset_output_energy - Reset output energy to 0
set_edv2 - Set End of Discharge Voltage 2, voltage for end-of-discharge calibration 2, default 6.8. See
Coulomb count for details
set_edv1 - Set End of Discharge Voltage 1, voltage for end-of-discharge calibration 1, default 6.5. See
Coulomb count for details
set_edv0 - Set End of Discharge Voltage 0, voltage for end-of-discharge calibration 0, default 6.2. See
Coulomb count for details
set_rcv - Set Reset Calibrate Voltage, voltage for reset calibration status, default 8.0. See Coulomb count
for details
simulate_low_power - Simulate low power for testing low power trigger scenarios
The Advanced Usage:
4.6 Setting up Safe Shutdown
PiPower Pro has two pins that are pre-configured to monitor the power status (referred to as sub-devices below) of
connected devices, enabling remote power on, power off, and automatic safe shutdown when the battery is low.
Note: If the host running HassOS is set as a sub-device of PiPower Pro, it will also lose its functionality when the host
shuts down, and remote power-on will not be possible.
Pin 42 and sensor entity binary_sensor.pipower_pro_sub_device_power_state read the current state of
the device.
Pin 41 and entity switch.pipower_pro_sub_device_power control the sub-device power.
For example, let’s use PiPower Pro as a UPS power source for a Raspberry Pi, monitoring its status and automatically
shutting it down safely when external power is lost and the battery level is low.
Step 1
Configure the Raspberry Pi.
Set the two Raspberry Pi pins to the Power Status Signal Pin and Shutdown Signal Pin respectively. This can be
done through devicetree.
Insert the SD card with the Raspberry Pi system into your computer. In the root directory of the boot partition, find
config.txt.
4.6. Setting up Safe Shutdown 45

Other manuals for SunFounder PiPower

Related product manuals