Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Build Status Black PyPi Version docs

A work-in-progress python API for Hisense televisions based off of mqtt-hisensetv.

Installation

Linux

sudo -H python3.8 -m pip install hisensetv

Windows

py -3.8 -m pip install hisensetv

CLI Usage

usage: hisensetv [-h] [--authorize] [--get {sources,volume}]
                 [--key {back,down,exit,left,menu,power,right,up}] [--no-ssl] [-v]
                 hostname

Hisense TV control.

positional arguments:
  hostname              Hostname or IP for the TV.

optional arguments:
  -h, --help            show this help message and exit
  --authorize           Authorize this API to access the TV.
  --get {sources,volume}
                        Gets a value from the TV.
  --key {back,down,exit,left,menu,power,right,up}
                        Sends a keypress to the TV.
  --no-ssl              Do not connect with SSL (required for some models).
  -v, --verbose         Logging verbosity.

One Time Setup

Note: This is not required for all models!

hisensetv 10.0.0.128 --authorize
Please enter the 4-digit code: 7815

Keypresses

hisensetv 10.0.0.28 --key up
[2020-02-29 13:48:52,064] [INFO    ] sending keypress: up

Gets

hisensetv 10.0.0.28 --get volume
[2020-02-29 13:49:00,800] [INFO    ] volume: {
    "volume_type": 0,
    "volume_value": 1
}

No SSL

Some models do not have self-signed certificates and will fail to connect without --no-ssl.

Please open an issue if yours is not listed here!

  • H43A6250UK

Limitations

Concurrency

  • Multiple instances of this class will conflict with one-another.

  • Not thread-safe.

  • This API really should be asyncio in 2020, but asyncio is not yet part of the paho mqtt library (see 455).

Reliability

  • The concurrency issues contribute to reliability issues in general.

  • Unit tests do not exist yet.

Security

  • The self-signed certificates from the TV are completely bypassed.

Metadata

Release files for hisensetv 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hisensetv 0.3.0
File Size Uploaded Provenance
hisensetv-0.3.0.tar.gz 9.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for hisensetv 0.3.0
File Interpreter ABI Platform
hisensetv-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / hisensetv-0.3.0.tar.gz

Download URL hisensetv-0.3.0.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6e16598223a4f8e7cefd50bccef1903b022f14419811bb829edaadc175ba56d3
BLAKE2b-256 checksum
How to use checksums
6a1721655dd826948668e28d6e79fb9f0e8c1908f45ae501f60a80451f46d32f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.10 Linux/5.10.105

Release files / hisensetv-0.3.0-py3-none-any.whl

Download URL hisensetv-0.3.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e7e2ecd2bcc46c7776bf75b82465e23624821cbee527cb24fd7cbaa3eb0a0719
BLAKE2b-256 checksum
How to use checksums
568e1548341aac60330890c6a05c0032b99558345533fe1956fd6c2648a8b3b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.10 Linux/5.10.105

Security for hisensetv 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page