Provide HDMI CEC devices as objects, especially for use with Home Assistant
Project description
pyCEC
Purpose of this project is to provide object API to libcec for home-assistant hdmi_cec module as primary goal and to make TCP <=> HDMI bridge to control HDMI devices over TCP network as a secondary goal.
libcec dependency [1]
libcec must be installed [2] for this module to work in direct mode. Follow the installation instructions for your environment, provided at the link. libcec installs Python 3 bindings by default as a system Python module. If you are running pyCEC in a Python virtual environment, make sure it can access the system module, by either symlinking it or using the --system-site-packages flag.
running server
You can run pyCEC server which will provide bridge between HDMI CEC port and TCP network by exexcuting python3 -m pycec. Server will bind to default port 9526 on all interfaces.
Then you can connect by client part of pyCEC without need of libcec or HDMI port on client’s machine. Just use TcpAdapter instead of CecAdapter.
You can also connect to 9526 by NetCat and send CEC commands directly.
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 pyCEC-0.5.0.tar.gz
.
File metadata
- Download URL: pyCEC-0.5.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 873a5c4524f4bf74751e84f353dbac4127774440a73ffd6c98b7dbfcfb38358d |
|
MD5 | 70c310f738914ba990b6d69a766f3205 |
|
BLAKE2b-256 | f92f47130a50b6345666cca2d2ddc65af1f41ca7928e05348c0ea35555eba54e |
Provenance
File details
Details for the file pyCEC-0.5.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pyCEC-0.5.0-py2.py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d481ee7075ef36fe1caad5298db516693d4822687443167cd9dfae53a88c76f |
|
MD5 | c6463b83baae4b0c267f58d103c24421 |
|
BLAKE2b-256 | 990c2ae21c6e105de0cb174dd1d4803db96f8622bfc55cf39680116e2184d05d |