From 2da416a65fe8f29df19dab18cd010b37dc37870c Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Fri, 20 Sep 2024 09:42:45 +0100 Subject: [PATCH 1/2] Add Sensors/Electrical_Energy-v1 --- Sensors/Electrical_Energy-v1.json | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Sensors/Electrical_Energy-v1.json diff --git a/Sensors/Electrical_Energy-v1.json b/Sensors/Electrical_Energy-v1.json new file mode 100644 index 0000000..32aafd1 --- /dev/null +++ b/Sensors/Electrical_Energy-v1.json @@ -0,0 +1,44 @@ +{ + "$id": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Sensors\\Electrical_Energy-v1.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "Schema_UUID": { + "const": "093c0186-f4ee-479a-b00b-c849b152b33e" + }, + "Instance_UUID": { + "description": "The unique identifier for this object. (A UUID specified by RFC4122).", + "type": "string", + "format": "uuid" + }, + "Electrical_Energy": { + "allOf": [ + { + "$ref": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Common/Metric-v1.json" + }, + { + "properties": { + "Documentation": { + "default": "" + }, + "Sparkplug_Type": { + "enum": [ + "FloatLE", + "FloatBE", + "DoubleLE", + "DoubleBE" + ] + }, + "Eng_Unit": { + "default": "kWh" + } + } + } + ] + } + }, + "required": [ + "Schema_UUID", + "Instance_UUID" + ] +} \ No newline at end of file From 8e68ba1471f69049c4ae80cd4f66a3a992550773 Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Fri, 20 Sep 2024 09:43:41 +0100 Subject: [PATCH 2/2] Fix slash --- Sensors/Electrical_Energy-v1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sensors/Electrical_Energy-v1.json b/Sensors/Electrical_Energy-v1.json index 32aafd1..74179b3 100644 --- a/Sensors/Electrical_Energy-v1.json +++ b/Sensors/Electrical_Energy-v1.json @@ -1,5 +1,5 @@ { - "$id": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Sensors\\Electrical_Energy-v1.json", + "$id": "https://raw.githubusercontent.com/AMRC-FactoryPlus/schemas/main/Sensors/Electrical_Energy-v1.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": {