Skip to main content

uEcho for Python is a portable development framework for ECHONET Lite developers.

Project description

logo

pytest

The uecho-py is a portable and cross platform development framework for creating controller applications and devices of ECHONET Lite for Python developers. ECHONET is an open standard specification for IoT devices in Japan, it specifies more than 100 IoT devices such as crime prevention sensor, air conditioner and refrigerator.

Installation

You can install uecho-py using pip as the following:

 $ pip install uecho

Examples

uechosearch

The uechosearch is a sample controller to search all ECHONET Lite nodes in the same local area network as the following usage.

Usage : uechosearch

The uechosearch searches all ECHONET Lite device and profile objects in the local area network, and prints all found objects with the IP address as the following:

$ uechosearch
192.168.aaa.bbb [0] 05FF01 
192.168.aaa.cc  [0] 0F2001 [1] 029101 

uechopost

The uechopost is a sample controller to post a message to a ECHONET Lite node in the same local network as the following usage.

Usage : uechopost <address> <obj> <esv> <property (code, data) ...>

The uechopost can send any request message of ECHONET Lite to an object in the specified node, and print the response message. The following example controls the power status of a ECHONET Lite standard light device.

$ uechopost 192.168.aaa.bbb 029101 62 8A    --> READ REQ (62) : Manufacture Code (0x8A)
192.168.aaaa.bbb 0EF001 72 8A 00000B        --> READ RES (72) : Panasonic (0x00000B)

$ uechopost 192.168.aaa.bbb 029101 62 80    --> READ REQ (62) : Operation status (0x80)
192.168.aaa.bbb 029101 72 80 31             --> READ RES (72) : OFF (0x31)

$ uechopost 192.168.aaa.bbb 029101 61 80 30 --> WRITE REQ (61) : Operation status (0x80) ON (0x30)
192.168.aaa.bbb 029101 71 80                --> WRITE RES (71) : (No Data)

$ uechopost 192.168.aaa.bbb 029101 62 80    --> READ REQ (62) : Operation status (0x80)
192.168.aaa.bbb 029101 72 80 30             --> READ RES (72) : ON (0x30)

References

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

uecho-0.8.4.tar.gz (33.5 kB view details)

Uploaded Source

Built Distribution

uecho-0.8.4-py3-none-any.whl (53.0 kB view details)

Uploaded Python 3

File details

Details for the file uecho-0.8.4.tar.gz.

File metadata

  • Download URL: uecho-0.8.4.tar.gz
  • Upload date:
  • Size: 33.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for uecho-0.8.4.tar.gz
Algorithm Hash digest
SHA256 68059ec6d407013174d44bda25ece073d4ea3aa6c30b686ad8f2b363a549ad00
MD5 e438daf5ee98cb6690d1ad3f86ab1bd7
BLAKE2b-256 a451ea7cdd22c05328f59c513bfa7cda8b0928e788c4a616a196cf0c7aaffc82

See more details on using hashes here.

File details

Details for the file uecho-0.8.4-py3-none-any.whl.

File metadata

  • Download URL: uecho-0.8.4-py3-none-any.whl
  • Upload date:
  • Size: 53.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for uecho-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b624dd79c9ebd3f30a1f1c5ab834ee4dd23aacd6c5586c9b50caf85069bd7c72
MD5 8c764a72128b69a30203fed5eb2293f6
BLAKE2b-256 2626a278d74abecfb8590fc0ba75f49a785ca124a3a0dbb834dd9884e93d2abb

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