From d20d1bbe844ead0eaeef2521371a7ac09caa1bff Mon Sep 17 00:00:00 2001 From: Trudge <1592178+Trudge@users.noreply.github.com> Date: Sun, 6 Sep 2026 07:37:17 +0800 Subject: [PATCH] feat: include modern device attributes in the /zones response Add the AirPlay, microphone, wifi, HDMI CEC and Trueplay attributes exposed by the sonos-discovery Player model to each coordinator and member in /zones. Note: the fields resolve to undefined until node-sonos-discovery is updated to a version that exposes them (see the matching change there). --- lib/actions/zones.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/actions/zones.js b/lib/actions/zones.js index 56e94a2e..8563f2ea 100644 --- a/lib/actions/zones.js +++ b/lib/actions/zones.js @@ -7,7 +7,13 @@ function simplifyPlayer(player) { playMode: player.currentPlayMode, roomName: player.roomName, coordinator: player.coordinator.uuid, - groupState: player.groupState + groupState: player.groupState, + airPlayEnabled: player.airPlayEnabled, + micEnabled: player.micEnabled, + wifiEnabled: player.wifiEnabled, + wirelessMode: player.wirelessMode, + roomCalibrationState: player.roomCalibrationState, + hdmiCecAvailable: player.hdmiCecAvailable }; }