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.

  -h, --help     show this help message and exit
  -v, --verbose  output all mandatory read properties of found nodes
  -d, --debug    output raw debug messages

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.5.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

uecho-0.8.5-py3-none-any.whl (65.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uecho-0.8.5.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 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.5.tar.gz
Algorithm Hash digest
SHA256 ceab1f0749838552793afc821d2a24b55569b9a08392834a687b35c39231cd6d
MD5 5255d134906a2a55fdab84e476069f9b
BLAKE2b-256 5ec455c1c1da504c94d65fed600d9a122b3df707575af478bb849794d8c96dc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uecho-0.8.5-py3-none-any.whl
  • Upload date:
  • Size: 65.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30f963eb2a4f10c7c15252b55502e7795ec5cd2f945447860d127e06a26721e2
MD5 1357ba0b9b64d1657649608bd2f7924b
BLAKE2b-256 a22f77b88575f7d3205678a9f5243ce6fede30f78c76fcf98b5edbf17c9a4e89

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