From 5e781525511291f56823748e501fad2ca2f46ac0 Mon Sep 17 00:00:00 2001 From: LiShuzhen Date: Tue, 16 Dec 2025 10:24:34 +0800 Subject: [PATCH] feat: add tv-bov device as television --- .../xiaomi_home/miot/specs/specv2entity.py | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/custom_components/xiaomi_home/miot/specs/specv2entity.py b/custom_components/xiaomi_home/miot/specs/specv2entity.py index c824ecd..1c8016b 100644 --- a/custom_components/xiaomi_home/miot/specs/specv2entity.py +++ b/custom_components/xiaomi_home/miot/specs/specv2entity.py @@ -371,6 +371,42 @@ SPEC_DEVICE_TRANS_MAP: dict = { }, 'entity': 'television' }, + 'tv-box':{ + 'required': { + 'speaker': { + 'required': { + 'properties': { + 'volume': {'read', 'write'} + } + }, + 'optional': { + 'properties': {'mute'} + } + }, + 'tv-box': { + 'required': { + 'actions': {'turn-off'} + }, + 'optional': { + 'properties': {'mode'}, + 'actions': {'turn-on'} + } + } + }, + 'optional': { + 'play-control': { + 'required': { + 'properties': { + 'playing-state': {'read', 'write'} + } + }, + 'optional': { + 'actions': {'play', 'pause', 'stop', 'next', 'previous'} + } + } + }, + 'entity': 'television' + }, 'watch': { 'required': { 'watch': {