A web connected enocean gateway
Project description
enocean_webthing
A web connected enocean gateway. This project provides a webthing API to an enocean gateway such as the EnOcean USB 300 USB-Gateway
The enocean_webthing package exposes a http webthing endpoint supporting enocean devices.
E.g.
# webthing has been started on host 192.168.0.23
curl http://192.168.1.198:9090/0/properties
{
"eep_id":"F6:10:00",
"enocean_id":"81:00:F0:4E",
"state":3
}
Currently, the devices listed below are supported
- Window Handle such as HOPPE Window Handle ConnectHome (EEP ID: F6:10:00)
To install this software you may use the PIP package manager such as shown below
PIP approach
sudo pip install enocean_webthing
After this installation you may start the webthing http endpoint inside your python code or via command line using
sudo enocean --command listen --port 9090 --path /dev/ttyUSB-enocean --devices 'Office/F6:10:00/81:00:F0:4E, Patiodoor/F6:10:00/01:9A:CC:06'
Here, the webthing API will be bound to the local port 9090 by using the USB-Gateway /dev/ttyUSB-enocean. To list the devices to be supported a comma-separated list is used with the syntax {Device name}/{EEP ID}/{ENOCEAN ID}
Alternatively to the listen command, you can use the register command to register and start the webthing service as systemd unit. By doing this the webthing service will be started automatically on boot. Starting the server manually using the listen command is no longer necessary.
sudo enocean --command register --port 9090 --path /dev/ttyUSB-enocean --devices 'Office/F6:10:00/81:00:F0:4E, Patiodoor/F6:10:00/01:9A:CC:06'
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
Built Distribution
File details
Details for the file enocean_webthing-1.0.1.tar.gz
.
File metadata
- Download URL: enocean_webthing-1.0.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 354b215fe834f84c46b7c570bd223bfc85a68ede6e7dd2df920089dbf94e9e76 |
|
MD5 | 2d0935ea2b1652ceb2ae3540f8eb65bf |
|
BLAKE2b-256 | d23c2b32ed05dfd44b951e8380679e0c6820b76cf3909046121a220a0902dac8 |
File details
Details for the file enocean_webthing-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: enocean_webthing-1.0.1-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3574f98a0e9b8164212558dc813cded79d99863fe09e9e6a48020face0e46206 |
|
MD5 | 06fdc24e5efe7b3618c9c9cdad97d176 |
|
BLAKE2b-256 | 20123ae575002623d738340ca5d87197b187ada681f4376870078a612895017b |