Controlling Energenie Power Strips with python.
Project description
PyEGPS
Python library for controlling Energenie powerstrips.
This library is meant to be used with Home Assistant components.
Installation:
pip install pyegps
Make sure the user has the necessary rights to access the device. E.g.: find your device with:
lsusb
#e.g.: Bus 001 Device 005: ID 04b4:fd15 Cypress Semiconductor Corp. Energenie EG-PMS2
sudo echo 'SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", MODE="0666"' > /lib/udev/rules.d/60-energenie-usb.rules
sudo udevadm control --reload-rules
sudo udevadm trigger
Command Line Interace (CLI)
For help, see:
python3 -m pyegps --help
Acknowledgment
Thanks go to the author of 'pysispm' for figuring out which HID-Reports are used for communicating with the device: https://github.com/xypron/pysispm
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyEGPS-0.2.5.tar.gz
(15.4 kB
view hashes)
Built Distribution
pyEGPS-0.2.5-py3-none-any.whl
(14.5 kB
view hashes)