From 922ee685f19e706362526efa759ad38ce275e208 Mon Sep 17 00:00:00 2001 From: Stafford Brunk Date: Wed, 17 Jun 2026 09:13:39 -0400 Subject: [PATCH] Add AirPlayEnable characteristic + service for SmartSpeakers --- pyhap/resources/characteristics.json | 11 +++++++++++ pyhap/resources/services.json | 14 ++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/pyhap/resources/characteristics.json b/pyhap/resources/characteristics.json index b14dc654..e37818f1 100644 --- a/pyhap/resources/characteristics.json +++ b/pyhap/resources/characteristics.json @@ -72,6 +72,17 @@ "2.5\u03bcm": 0 } }, + "AirPlayEnable": { + "Format": "uint8", + "Permissions": [ + "pr", + "pw", + "ev" + ], + "UUID": "0000025B-0000-1000-8000-0026BB765291", + "maxValue": 1, + "minValue": 0 + }, "AirQuality": { "Format": "uint8", "Permissions": [ diff --git a/pyhap/resources/services.json b/pyhap/resources/services.json index 7c386279..c7cd0128 100644 --- a/pyhap/resources/services.json +++ b/pyhap/resources/services.json @@ -428,6 +428,20 @@ ], "UUID": "000000B9-0000-1000-8000-0026BB765291" }, + "SmartSpeaker": { + "OptionalCharacteristics": [ + "Name", + "ConfiguredName", + "AirPlayEnable", + "Volume", + "Mute" + ], + "RequiredCharacteristics": [ + "CurrentMediaState", + "TargetMediaState" + ], + "UUID": "00000228-0000-1000-8000-0026BB765291" + }, "SmokeSensor": { "OptionalCharacteristics": [ "StatusActive",