@svrooij/sonos
Advanced tools
Comparing version 2.4.1-beta.3 to 2.4.1-beta.4
@@ -5,2 +5,3 @@ export interface ChannelMapSet { | ||
export interface ZoneGroup { | ||
groupId: string; | ||
name: string; | ||
@@ -21,3 +22,7 @@ coordinator: ZoneMember; | ||
SwGen: string; | ||
TVConfigurationError: number; | ||
HdmiCecAvailable: boolean; | ||
HasConfiguredSSID: boolean; | ||
WifiEnabled: boolean; | ||
} | ||
//# sourceMappingURL=zone-group.d.ts.map |
@@ -60,2 +60,6 @@ "use strict"; | ||
SwGen: member.SWGen, | ||
HasConfiguredSSID: member.HasConfiguredSSID === '1' || member.HasConfiguredSSID === 1, | ||
WifiEnabled: member.WifiEnabled === '1' || member.WifiEnabled === 1, | ||
TVConfigurationError: parseInt(member.TVConfigurationError, 10), | ||
HdmiCecAvailable: member.HdmiCecAvailable === '1' || member.HdmiCecAvailable === 1, | ||
}; | ||
@@ -72,2 +76,3 @@ } | ||
return { | ||
groupId: group.ID, | ||
name, | ||
@@ -74,0 +79,0 @@ coordinator, |
@@ -488,2 +488,10 @@ /// <reference types="node" /> | ||
/** | ||
* Set relative group volume, shortcut to .Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment }) | ||
* | ||
* @param {number} volumeAdjustment the adjustment, positive or negative | ||
* @returns {Promise<number>} | ||
* @memberof SonosDevice | ||
*/ | ||
SetRelativeGroupVolume(volumeAdjustment: number): Promise<number>; | ||
/** | ||
* Set relative volume, shortcut to .RenderingControlService.SetRelativeVolume({ InstanceID: 0, Channel: 'Master', Adjustment: volumeAdjustment }) | ||
@@ -490,0 +498,0 @@ * |
@@ -494,3 +494,3 @@ "use strict"; | ||
const notificationOptions = await tts_helper_1.default.TtsOptionsToNotification(options); | ||
return await this.PlayNotification(notificationOptions); | ||
return await this.PlayNotificationTwo(notificationOptions); | ||
} | ||
@@ -944,2 +944,13 @@ async PlayNextNotification(originalState, havePlayed) { | ||
/** | ||
* Set relative group volume, shortcut to .Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment }) | ||
* | ||
* @param {number} volumeAdjustment the adjustment, positive or negative | ||
* @returns {Promise<number>} | ||
* @memberof SonosDevice | ||
*/ | ||
async SetRelativeGroupVolume(volumeAdjustment) { | ||
return await this.Coordinator.GroupRenderingControlService.SetRelativeGroupVolume({ InstanceID: 0, Adjustment: volumeAdjustment }) | ||
.then((response) => response.NewVolume); | ||
} | ||
/** | ||
* Set relative volume, shortcut to .RenderingControlService.SetRelativeVolume({ InstanceID: 0, Channel: 'Master', Adjustment: volumeAdjustment }) | ||
@@ -946,0 +957,0 @@ * |
{ | ||
"name": "@svrooij/sonos", | ||
"version": "2.4.1-beta.3", | ||
"version": "2.4.1-beta.4", | ||
"description": "A node library to control your sonos devices, written in typescript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
436608
10281