Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enocean_webthing-1.0.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

enocean_webthing-1.0.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

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

Hashes for enocean_webthing-1.0.1.tar.gz
Algorithm Hash digest
SHA256 354b215fe834f84c46b7c570bd223bfc85a68ede6e7dd2df920089dbf94e9e76
MD5 2d0935ea2b1652ceb2ae3540f8eb65bf
BLAKE2b-256 d23c2b32ed05dfd44b951e8380679e0c6820b76cf3909046121a220a0902dac8

See more details on using hashes here.

File details

Details for the file enocean_webthing-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for enocean_webthing-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3574f98a0e9b8164212558dc813cded79d99863fe09e9e6a48020face0e46206
MD5 06fdc24e5efe7b3618c9c9cdad97d176
BLAKE2b-256 20123ae575002623d738340ca5d87197b187ada681f4376870078a612895017b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page