Skip to content

Commit

Permalink
Add Sensors/Electrical_Energy-v1 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Sep 20, 2024
1 parent 4fbb574 commit 67c4174
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions Sensors/Electrical_Energy-v1.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit 67c4174

Please sign in to comment.