Skip to content

pipoe2h/python3-energenie-socketcontrol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Energenie SocketControl

This python script allows you to configure and operate the Energenie remote control sockets through a Raspberry Pi with the Energenie Pi-mote control board.

The python script has been only tested with Raspbian OS.

alt tag

Requirements

An Energenie Pi-mote control board and at least one remote control socket are required.

Python3 and elevated privileges (sudo) are required.

Arguments

The arguments to be passed to this python program are:

  • Socket (1-4). Type the desired socket number to control
  • State (on/off). Type the desired action to perform

Dependencies

This python scripts requires of the following Debian packages:

  • build-essential
  • python3-dev
  • python3-gpiozero
  • python3-pkg-resources

Example

To run the python program the socket number and state must be introduced.

  • Help
# sudo python3 socketcontrol.py -h
usage: socketcontrol.py [-h] socket status

positional arguments:
  socket      socket number to control (1-4)
  status      turn on/off the socket (on/off)

optional arguments:
  -h, --help  show this help message and exit

  • Configure or Power on socket 1
# sudo python3 socketcontrol.py 1 on
Turning on socket: 1

  • Power off socket 1
# sudo python3 socketcontrol.py 1 off
Turning off socket: 1

License

MIT

Author Information

About

Configure and operate the Energenie remote control sockets through a Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages