Skip to content

musoto96/Kasa-Linux-Powermon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kasa-Linux-Powermon

Linux daemon to monitor battery system battery, and toggle Kasa WIFI Smart Plug on and off

Prerequisites

All commands are run on the Kasa-Linux-Powermon directory

  1. Create a virtual environment python -m virtualenv .
  2. Activate the environment source ./bin/activate
  3. Install requirements (tzdata and python-kasa) pip install -r ./requirements.txt

Installation

All commands are run on the Kasa-Linux-Powermon directory

  1. Modify pwmon_conf with the path to your battery .
  2. Run bash install -g to generate a sample config file, edit accordingly.
  3. Install and start the daemon bash install.sh
  4. View help interface bash install.sh -h

Config file

  1. Config file is located in /etc/pwmon/pwmon_conf
  2. Edit this file and restart daemon with systemctl restart pwmon.service to apply changes.

Useful commands

  1. You can view daemon state with
    sudo systemctl status pwmon.service
  2. Or view trailing logs with
    sudo journalctl -u pwmon.service -f

About

Linux daemon to monitor battery system battery, and toggle Kasa WIFI Smart Plug on and off. Tested on the Kasa EP10 model with HW 1.0 FW 1.0.5

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages