From 72afe2b4975db925c10ccd67f20076ce0335c701 Mon Sep 17 00:00:00 2001 From: Mahda Noura Date: Mon, 18 Nov 2024 12:31:08 +0100 Subject: [PATCH 1/2] Create Siemens TargetV TM --- .../TDs/Siemens/targetV.tm.jsonld | 86 +++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld diff --git a/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld b/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld new file mode 100644 index 00000000..8d0677c5 --- /dev/null +++ b/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld @@ -0,0 +1,86 @@ +{ + "@context": [ + "https://www.w3.org/2022/wot/td/v1.1", + { + "brick": "https://brickschema.org/schema/1.0.3/BrickFrame#", + "mcep": "http://mcep/shared" + } + ], + "id": "urn:node:targetV", + "title": "Siemens TargetV device", + "version" : {"model": "1.0.0"}, + "@type": [ + "tm:ThingModel", + "brick:Thermostat" + ], + "base": "{{MQTT_IoT_DEMO_BROKER_ADDRESS}}:{{MQTT_BROKER_PORT}}", + "description": "Siemens TargetV device that integrates CO2, temperature, and humidity, and occupancy sensors", + "securityDefinitions": { + "nosec_sc": { + "scheme": "nosec" + } + }, + "security": "nosec_sc", + "properties": { + "co2": { + "title": "Reads the CO2 value from the sensor connected to the TargetV device", + "type": "string", + "writeOnly":false, + "observable":true, + "forms": [ + { + "href": "/co2", + "op": [ + "readproperty", + "observeproperty" + ] + } + ] + }, + "temperature": { + "title": "Reads the temperature value from the sensor connected to a TargetV device", + "type": "string", + "writeOnly":false, + "observable":true, + "forms": [ + { + "href": "/temperature", + "op": [ + "readproperty", + "observeproperty" + ] + } + ] + }, + "humidity": { + "title": "Reads the humidity value from the sensor connected to a TargetV device", + "type": "string", + "writeOnly":false, + "observable":true, + "forms": [ + { + "href": "/humidity", + "op": [ + "readproperty", + "observeproperty" + ] + } + ] + }, + "occupancy": { + "title": "Reads the occupancy value from the sensor connected to a TargetV device", + "type": "string", + "writeOnly":false, + "observable":true, + "forms": [ + { + "href": "/occupancy", + "op": [ + "readproperty", + "observeproperty" + ] + } + ] + } + } +} From 898b70957a64db4b8818ce5e402962485034982f Mon Sep 17 00:00:00 2001 From: Mahda Noura Date: Mon, 18 Nov 2024 12:36:01 +0100 Subject: [PATCH 2/2] Update targetV.tm.jsonld --- events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld b/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld index 8d0677c5..8ed339d8 100644 --- a/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld +++ b/events/2024.11.Munich/TDs/Siemens/targetV.tm.jsonld @@ -11,6 +11,7 @@ "version" : {"model": "1.0.0"}, "@type": [ "tm:ThingModel", + "mcep:Device", "brick:Thermostat" ], "base": "{{MQTT_IoT_DEMO_BROKER_ADDRESS}}:{{MQTT_BROKER_PORT}}", @@ -24,6 +25,7 @@ "properties": { "co2": { "title": "Reads the CO2 value from the sensor connected to the TargetV device", + "@type": "brick:co2", "type": "string", "writeOnly":false, "observable":true, @@ -39,6 +41,7 @@ }, "temperature": { "title": "Reads the temperature value from the sensor connected to a TargetV device", + "@type": "brick:temperature", "type": "string", "writeOnly":false, "observable":true, @@ -54,6 +57,7 @@ }, "humidity": { "title": "Reads the humidity value from the sensor connected to a TargetV device", + "@type": "brick:humidity", "type": "string", "writeOnly":false, "observable":true, @@ -69,6 +73,7 @@ }, "occupancy": { "title": "Reads the occupancy value from the sensor connected to a TargetV device", + "@type": "brick:occupancy", "type": "string", "writeOnly":false, "observable":true,