Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hisense TV

hacs License: MIT

Control Hisense Google TV devices (TVs and laser projectors) via ADB and AirPlay in Home Assistant.

Status: Early access (0.1.x). Tested on the author's own setup; expect rough edges and occasional breaking changes until 1.0. Please file issues on GitHub if anything is broken.

Tested on: Hisense L9Q Laser TV. Should work on any Hisense Google TV device (L5G, PX1, PX2, PX3, U8N, etc.) since the ADB commands are common across the Hisense Google TV platform. If you test on another model, please open an issue to confirm compatibility.

graph TD
    subgraph "Hisense TV Integration"
        ADB["ADB"] -->|power / input / media| Entity["media_player.hisense_tv"]
        AP["AirPlay"] -->|display info / HDR / firmware| Entity
    end

    Entity -->|"media_dag_*"| MZ["Media Zone"]

    subgraph "Device State via ADB"
        SRC["Input Source<br/>(Google TV / HDMI 1-4)"]
        HDR["HDR Active"]
        EARC["eARC Status"]
        HDMI["HDMI Port Status"]
        BRIGHT["Brightness"]
        MS["Media Session"]
    end

    ADB --> SRC & HDR & EARC & HDMI & BRIGHT & MS

    style Entity fill:#e31937,color:#fff
    style MZ fill:#1a73e8,color:#fff
    style ADB fill:#444,color:#fff
    style AP fill:#444,color:#fff
Loading

Features

  • ADB Control -- Power, input switching, volume, media playback via ADB key events
  • Input Source Detection -- Active input (Google TV, HDMI 1-4) via Hisense current_source setting
  • AirPlay Device Info -- Display resolution, HDR modes, Dolby Vision codecs, firmware version
  • HDR / eARC / HDMI Status -- Live reporting of HDR activity, eARC connection, and per-port HDMI status
  • Media Session Tracking -- Now-playing from any app using Android MediaSession API
  • Device Modes -- Display-only, source via eARC, or both
  • HDMI Input Mapping -- Map HDMI inputs to source device entities
  • Controlled ADB Pairing -- Dedicated pairing step in config flow + re-pair button entity
  • Media DAG Attributes -- Full signal chain data for Media Zone orchestration

Installation

HACS (recommended)

  1. In HACS, open the overflow menu (⋮) → Custom repositories.
  2. Paste https://github.com/ltomes/ha-hisense-tv, pick type Integration, click Add.
  3. Find Hisense TV in the HACS list and click Download.
  4. Restart Home Assistant.
  5. Go to Settings → Devices & Services → Add Integration, search for Hisense TV, and set up the integration (see Configuration).

Manual

Copy custom_components/hisense_tv to your HA config/custom_components/ directory, restart, then add the integration from Settings → Devices & Services.

Configuration

  1. Settings > Devices & Services > Add Integration > "Hisense TV"
  2. Enter the device IP address
  3. Approve the ADB pairing prompt on the TV when asked
  4. Optionally configure device mode, Jellyfin, receiver, power switch

ADB Pairing

ADB is paired during setup via a dedicated config flow step. If you need to re-pair later, use the "Pair ADB" button on the device page in HA.

Requirements: Settings > System > Developer options > ADB debugging enabled on the TV.

Options

  • Device Mode -- Display only, source via eARC, or both
  • HDMI Input Mappings -- Map each HDMI input to a source device entity
  • Jellyfin -- For rich playback metadata when using built-in apps
  • Receiver + Input -- For eARC audio routing coordination
  • Power Switch -- Smart plug for reliable power state

Entities

Entity Type Description
Media Player media_player Main entity with power, input, volume, playback controls
Now Playing sensor Formatted now-playing string from Jellyfin
Display Info sensor Static display capabilities from AirPlay
Pair ADB button Initiate or re-pair ADB connection

Development

Shared ADB helpers live in ha-adb-common and are also used by ha-nvidia-shield. For HACS installs, a copy is vendored at custom_components/hisense_tv/ha_adb_common/ so end users need nothing extra. We plan to publish ha-adb-common to PyPI so it can be declared as a normal manifest.json requirement; until then, the vendored copy is the source consumed at runtime.

To hack on the shared code locally, clone ha-adb-common as a sibling directory and run uv sync --extra dev — the [tool.uv.sources] section in pyproject.toml wires it up editable.

Part of the Media Zone Ecosystem

This integration works standalone, but pairs with ha-media-zone to create a unified zone controller:

License

MIT

About

Home Assistant integration for Hisense Google TV devices via ADB + AirPlay

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages