From 47255cc57e564b8bba2d7d1bd8ef73aaa8e86338 Mon Sep 17 00:00:00 2001 From: rido-min Date: Mon, 2 Oct 2023 21:25:44 -0700 Subject: [PATCH] adds lightbulb 2 --- dtmi/demo/smartlightbulb-1.json | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 dtmi/demo/smartlightbulb-1.json diff --git a/dtmi/demo/smartlightbulb-1.json b/dtmi/demo/smartlightbulb-1.json new file mode 100644 index 0000000..46d79e8 --- /dev/null +++ b/dtmi/demo/smartlightbulb-1.json @@ -0,0 +1,45 @@ +{ + "@context": "dtmi:dtdl:context;2", + "@id": "dtmi:demo:smartlightbulb;1", + "@type": "Interface", + "displayName": "smartlightbulb", + "contents": [ + { + "@type": "Telemetry", + "name": "batteryLife", + "schema": "integer" + }, + { + "@type": "Command", + "name": "blink", + "request": { + "name": "blinkTimes", + "schema": "integer" + } + }, + { + "@type": "Property", + "name": "lastBatteryReplacement", + "schema": "dateTime" + }, + { + "@type": "Property", + "name": "lightState", + "writable": true, + "schema": { + "@type": "Enum", + "valueSchema": "integer", + "enumValues": [ + { + "name": "On", + "enumValue": 1 + }, + { + "name": "Off", + "enumValue": 0 + } + ] + } + } + ] +} \ No newline at end of file