Add Detection Sensor Module (#139)

* detection sensor

* bump version
This commit is contained in:
Ben Lipsey
2023-10-26 08:31:14 +10:00
committed by GitHub
parent aa75389cfe
commit 7256454ea7
5 changed files with 161 additions and 1 deletions
+3
View File
@@ -185,6 +185,9 @@ export const useDeviceStore = create<DeviceState>((set, get) => ({
if (device) {
switch (config.payloadVariant.case) {
case "detectionSensor":
device.moduleConfig.detectionSensor = config.payloadVariant.value;
break;
case "mqtt":
device.moduleConfig.mqtt = config.payloadVariant.value;
break;