From 152d73e9f9ae222f4ddba0a3ae19afbbc4dd5e37 Mon Sep 17 00:00:00 2001 From: watsonb8 Date: Wed, 31 Jul 2019 17:34:23 -0400 Subject: [PATCH] Fixed UseMatrix being a string instead of boolean. This fixed listen to music activity. --- config.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.json b/config.json index b43a32e..8e0df6f 100644 --- a/config.json +++ b/config.json @@ -142,7 +142,7 @@ "DeviceSetupList": [ { "DeviceName": "JVC AV Receiver", - "Input": "Dvd" + "Input": "CD" } ], "VolumeDevice": "JVC AV Receiver", diff --git a/src/index.ts b/src/index.ts index 313dd6a..14b2cb7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -133,7 +133,7 @@ class HarmonyMatrixPlatform { controlDeviceId: configActivity["ControlDevice"], outputDeviceId: configActivity["OutputDevice"], displayName: configActivity["DisplayName"], - useMatrix: configActivity["UseMatrix"], + useMatrix: configActivity["UseMatrix"] === "true" ? true : false, deviceList: devices })); this.log(`INFO - Added activity '${configActivity["DisplayName"]}'`);