homebridge-yoto 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/playerAccessory.js +6 -6
- package/package.json +1 -1
package/lib/playerAccessory.js
CHANGED
|
@@ -315,7 +315,7 @@ export class YotoPlayerAccessory {
|
|
|
315
315
|
setupAdvancedControlSwitches () {
|
|
316
316
|
// Bluetooth enabled switch
|
|
317
317
|
this.bluetoothSwitch =
|
|
318
|
-
this.accessory.
|
|
318
|
+
this.accessory.getServiceById(this.platform.Service.Switch, 'bluetooth') ||
|
|
319
319
|
this.accessory.addService(this.platform.Service.Switch, `${this.accessory.displayName} Bluetooth`, 'bluetooth')
|
|
320
320
|
|
|
321
321
|
this.bluetoothSwitch.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} Bluetooth`)
|
|
@@ -327,7 +327,7 @@ export class YotoPlayerAccessory {
|
|
|
327
327
|
|
|
328
328
|
// Repeat all switch
|
|
329
329
|
this.repeatSwitch =
|
|
330
|
-
this.accessory.
|
|
330
|
+
this.accessory.getServiceById(this.platform.Service.Switch, 'repeat') ||
|
|
331
331
|
this.accessory.addService(this.platform.Service.Switch, `${this.accessory.displayName} Repeat`, 'repeat')
|
|
332
332
|
|
|
333
333
|
this.repeatSwitch.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} Repeat`)
|
|
@@ -339,7 +339,7 @@ export class YotoPlayerAccessory {
|
|
|
339
339
|
|
|
340
340
|
// Bluetooth headphones switch
|
|
341
341
|
this.btHeadphonesSwitch =
|
|
342
|
-
this.accessory.
|
|
342
|
+
this.accessory.getServiceById(this.platform.Service.Switch, 'bt-headphones') ||
|
|
343
343
|
this.accessory.addService(this.platform.Service.Switch, `${this.accessory.displayName} BT Headphones`, 'bt-headphones')
|
|
344
344
|
|
|
345
345
|
this.btHeadphonesSwitch.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} BT Headphones`)
|
|
@@ -380,7 +380,7 @@ export class YotoPlayerAccessory {
|
|
|
380
380
|
setupVolumeLimitsServices () {
|
|
381
381
|
// Day volume limit
|
|
382
382
|
this.dayVolumeLimitService =
|
|
383
|
-
this.accessory.
|
|
383
|
+
this.accessory.getServiceById(this.platform.Service.Lightbulb, 'day-volume-limit') ||
|
|
384
384
|
this.accessory.addService(this.platform.Service.Lightbulb, `${this.accessory.displayName} Day Volume Limit`, 'day-volume-limit')
|
|
385
385
|
|
|
386
386
|
this.dayVolumeLimitService.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} Day Volume Limit`)
|
|
@@ -398,7 +398,7 @@ export class YotoPlayerAccessory {
|
|
|
398
398
|
|
|
399
399
|
// Night volume limit
|
|
400
400
|
this.nightVolumeLimitService =
|
|
401
|
-
this.accessory.
|
|
401
|
+
this.accessory.getServiceById(this.platform.Service.Lightbulb, 'night-volume-limit') ||
|
|
402
402
|
this.accessory.addService(this.platform.Service.Lightbulb, `${this.accessory.displayName} Night Volume Limit`, 'night-volume-limit')
|
|
403
403
|
|
|
404
404
|
this.nightVolumeLimitService.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} Night Volume Limit`)
|
|
@@ -420,7 +420,7 @@ export class YotoPlayerAccessory {
|
|
|
420
420
|
*/
|
|
421
421
|
setupAmbientLightService () {
|
|
422
422
|
this.ambientLightService =
|
|
423
|
-
this.accessory.
|
|
423
|
+
this.accessory.getServiceById(this.platform.Service.Lightbulb, 'ambient-light') ||
|
|
424
424
|
this.accessory.addService(this.platform.Service.Lightbulb, `${this.accessory.displayName} Ambient Light`, 'ambient-light')
|
|
425
425
|
|
|
426
426
|
this.ambientLightService.setCharacteristic(this.platform.Characteristic.Name, `${this.accessory.displayName} Ambient Light`)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-yoto",
|
|
3
3
|
"description": "Control your Yoto players through Apple HomeKit with real-time MQTT updates",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.24",
|
|
5
5
|
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io)",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/bcomnes/homebridge-yoto/issues"
|