add module ambient lighting (#142)

This commit is contained in:
Ben Lipsey
2023-11-05 18:03:57 +10:00
committed by GitHub
parent 68b207b67f
commit 3ec9f6d322
4 changed files with 101 additions and 3 deletions
+6 -3
View File
@@ -214,11 +214,14 @@ export const useDeviceStore = create<DeviceState>((set, get) => ({
case "audio":
device.moduleConfig.audio = config.payloadVariant.value;
break;
case "neighborInfo":
device.moduleConfig.neighborInfo = config.payloadVariant.value;
break;
case "ambientLighting":
device.moduleConfig.ambientLighting = config.payloadVariant.value;
break;
case "detectionSensor":
device.moduleConfig.detectionSensor = config.payloadVariant.value;
break;
case "neighborInfo":
device.moduleConfig.neighborInfo = config.payloadVariant.value;
}
}
}),