diff --git a/Sensors/Electrical_Energy-v1.json b/Sensors/Electrical_Energy-v1.json new file mode 100644 index 0000000..74179b3 --- /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