This is a custom integration for Home Assistant to control and monitor CozyLife / Hepway portable batteries.
- AC Power Switch: Turn the AC output on and off.
- Battery Level Sensor: Monitor the battery charge percentage.
- Output Watts Sensor: Monitor the current power output.
- Incoming Watts Sensor: Monitor incoming power (charging).
- Minutes Remaining Sensor: Estimate the remaining battery life.
- Ensure HACS is installed in your Home Assistant instance.
- Go to HACS > Integrations.
- Click the three dots in the top right corner and select Custom repositories.
- In the Repository field, enter the URL of this repository.
- In the Category dropdown, select Integration.
- Click Add.
- Close the modal, find "CozyLife Battery" in the list, and install it.
- Restart Home Assistant.
- Copy the
custom_components/cozylife_batterydirectory to your Home Assistantcustom_componentsdirectory. - Restart Home Assistant.
- Go to Settings > Devices & Services.
- Click Add Integration.
- Search for CozyLife Battery.
- Enter the IP Address (Host) of your battery device.
- Click Submit.
Once configured, the following entities will be available:
switch.cozylife_battery_ac_power: Controls the AC power outlet.sensor.cozylife_battery_battery_level: Shows the battery charge percentage.sensor.cozylife_battery_output_watts: Shows the current output in Watts.sensor.cozylife_battery_incoming_watts: Shows the incoming power in Watts (charging).sensor.cozylife_battery_minutes_remaining: Shows the estimated runtime in minutes.
If the device does not connect, ensure that:
- The IP address is correct and static (recommended).
- The device is on the same network as Home Assistant.