Skip to content

Commit

Permalink
feat: Add loudness to sonos state
Browse files Browse the repository at this point in the history
Fixed #199
  • Loading branch information
svrooij committed Mar 30, 2024
1 parent fb2e9bd commit 42b3ff7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/sonos-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface SonosState extends SonosStateBase {
bass: number;
treble: number;
crossfade: string;
loudness: boolean;
shuffle: boolean;
repeat: Repeat;
alarmRunning: boolean;
Expand Down
1 change: 1 addition & 0 deletions src/sonos-to-mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ export class SonosToMqtt {
mute: data.Mute,
bass: data.Bass,
treble: data.Treble,
loudness: data.Loudness === true
} as SonosState)
}

Expand Down

0 comments on commit 42b3ff7

Please sign in to comment.