diff --git a/plugins/core/package-lock.json b/plugins/core/package-lock.json index c5e461f8e..f7dadba8b 100644 --- a/plugins/core/package-lock.json +++ b/plugins/core/package-lock.json @@ -1,12 +1,12 @@ { "name": "@scrypted/core", - "version": "0.0.97", + "version": "0.0.98", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@scrypted/core", - "version": "0.0.97", + "version": "0.0.98", "license": "Apache-2.0", "dependencies": { "@scrypted/sdk": "file:../../sdk", diff --git a/plugins/core/package.json b/plugins/core/package.json index 923bd2574..287d99fcf 100644 --- a/plugins/core/package.json +++ b/plugins/core/package.json @@ -1,6 +1,6 @@ { "name": "@scrypted/core", - "version": "0.0.97", + "version": "0.0.98", "description": "Scrypted Core plugin. Provides the UI, websocket, and engine.io APIs.", "author": "Scrypted", "license": "Apache-2.0", diff --git a/plugins/core/ui/src/components/Device.vue b/plugins/core/ui/src/components/Device.vue index 68c455dac..7b8607b6f 100644 --- a/plugins/core/ui/src/components/Device.vue +++ b/plugins/core/ui/src/components/Device.vue @@ -412,6 +412,7 @@ import Thermometer from "../interfaces/sensors/Thermometer.vue"; import HumiditySensor from "../interfaces/sensors/HumiditySensor.vue"; import EntrySensor from "../interfaces/sensors/EntrySensor.vue"; import MotionSensor from "../interfaces/sensors/MotionSensor.vue"; +import BinarySensor from "../interfaces/sensors/BinarySensor.vue"; import AudioSensor from "../interfaces/sensors/AudioSensor.vue"; import OccupancySensor from "../interfaces/sensors/OccupancySensor.vue"; import Settings from "../interfaces/Settings.vue"; @@ -446,6 +447,7 @@ const cardHeaderInterfaces = [ ScryptedInterface.OccupancySensor, ScryptedInterface.EntrySensor, ScryptedInterface.MotionSensor, + ScryptedInterface.BinarySensor, ScryptedInterface.AudioSensor, ScryptedInterface.HumiditySensor, ScryptedInterface.Thermometer, @@ -540,6 +542,7 @@ export default { HumiditySensor, EntrySensor, MotionSensor, + BinarySensor, AudioSensor, OccupancySensor, diff --git a/plugins/core/ui/src/interfaces/sensors/BinarySensor.vue b/plugins/core/ui/src/interfaces/sensors/BinarySensor.vue new file mode 100644 index 000000000..d4a54dc28 --- /dev/null +++ b/plugins/core/ui/src/interfaces/sensors/BinarySensor.vue @@ -0,0 +1,27 @@ + + +