Skip to content

Commit

Permalink
Merge pull request #321 from akenza-io/sensoterra
Browse files Browse the repository at this point in the history
Added the sensoterra device
  • Loading branch information
J2thatsme authored Jan 10, 2025
2 parents 690873c + 854dd2c commit f10c10f
Show file tree
Hide file tree
Showing 11 changed files with 1,042 additions and 0 deletions.
48 changes: 48 additions & 0 deletions types/sensoterra/sensoterra/calibration.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/calibration.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "calibration",
"title": "Calibration",
"properties": {
"depthCM": {
"title": "Depth",
"type": "number",
"unit": "cm",
"description": "Depth",
"hideFromKpis": true
},
"channelA": {
"title": "Channel A",
"type": "number",
"description": "Channel A configuration",
"hideFromKpis": true
},
"channelB": {
"title": "Channel B",
"type": "number",
"description": "Channel B configuration",
"hideFromKpis": true
},
"channelC": {
"title": "Channel C",
"type": "number",
"description": "Channel C configuration",
"hideFromKpis": true
},
"channelSP": {
"title": "Channel SP",
"type": "number",
"description": "Channel SP configuration",
"hideFromKpis": true
}
},
"required": [
"depthCM",
"channelA",
"channelB",
"channelC",
"channelSP"
]
}
19 changes: 19 additions & 0 deletions types/sensoterra/sensoterra/channel.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/channel.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "channel",
"title": "Channel",
"properties": {
"channelMask": {
"title": "Channel mask",
"type": "array",
"description": "Channel mask",
"hideFromKpis": true
}
},
"required": [
"channelMask"
]
}
23 changes: 23 additions & 0 deletions types/sensoterra/sensoterra/default.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/default.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "default",
"title": "Default",
"properties": {
"moisture": {
"title": "Moisture",
"unit": "%",
"description": "Soil moisture in %",
"type": "number"
},
"temperature": {
"$ref": "https://raw.githubusercontent.com/akenza-io/device-type-library/main/data-models/environment/schema.json#/$defs/temperature/celsius"
}
},
"required": [
"moisture",
"temperature"
]
}
52 changes: 52 additions & 0 deletions types/sensoterra/sensoterra/lifecycle.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/lifecycle.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "lifecycle",
"title": "Lifecycle",
"properties": {
"batteryVoltage": {
"$ref": "https://raw.githubusercontent.com/akenza-io/device-type-library/main/data-models/device/schema.json#/$defs/batteryVoltage/volt"
},
"estimatedSignalPower": {
"title": "Estimated signal power",
"type": "integer",
"description": "Estimated signal power",
"hideFromKpis": true
},
"saturationPointOvershotDepth": {
"title": "Saturation point overshot depth",
"type": "array",
"description": "Saturation point overshot depth",
"hideFromKpis": true
},
"firmwareVersion": {
"title": "Firmware version",
"description": "Firmware version",
"type": "string",
"hideFromKpis": true
},
"reset": {
"title": "Reset reason",
"description": "Reset reason",
"type": "string",
"hideFromKpis": true
},
"uptime": {
"title": "Uptime",
"type": "integer",
"unit": "s",
"description": "Uptime",
"hideFromKpis": true
}
},
"required": [
"batteryVoltage",
"estimatedSignalPower",
"saturationPointOvershotDepth",
"firmwareVersion",
"reset",
"uptime"
]
}
26 changes: 26 additions & 0 deletions types/sensoterra/sensoterra/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "Sensoterra",
"version": "1.0.0",
"manufacturer": "Sensoterra",
"url": "https://www.sensoterra.com/sensors/single-depth-sensor/",
"description": "Sensoterra Soil Moisture Sensors measure volumetric water content of the soil.",
"author": "Akenza AG",
"firmwareVersion": "V1.0.0",
"loraDeviceClass": "A",
"availableSensors": [
"Temperature",
"Humditiy"
],
"outputTopics": [
"calibration",
"channel",
"default",
"lifecycle",
"reset",
"serial",
"system",
"uplink"
],
"encoding": "HEX",
"connectivity": "LORA"
}
40 changes: 40 additions & 0 deletions types/sensoterra/sensoterra/reset.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/reset.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "reset",
"title": "Reset",
"properties": {
"totalNumberResets": {
"title": "Total number of resets",
"type": "integer",
"description": "Total number of resets",
"hideFromKpis": true
},
"totalNumberSuccessfulJoinSessions": {
"title": "Total number successful join sessions",
"type": "integer",
"description": "Total number successful join sessions",
"hideFromKpis": true
},
"totalNumberFailedJoinSessions": {
"title": "Total number failed join sessions",
"type": "integer",
"description": "Total number failed join sessions",
"hideFromKpis": true
},
"totalTimeOnAir": {
"title": "Total time on air",
"type": "integer",
"description": "Total time on air",
"hideFromKpis": true
}
},
"required": [
"totalNumberResets",
"totalNumberSuccessfulJoinSessions",
"totalNumberFailedJoinSessions",
"totalTimeOnAir"
]
}
19 changes: 19 additions & 0 deletions types/sensoterra/sensoterra/serial.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/serial.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "serial",
"title": "Serial",
"properties": {
"serialNumber": {
"title": "Serial number",
"type": "string",
"description": "Serial number",
"hideFromKpis": true
}
},
"required": [
"serialNumber"
]
}
70 changes: 70 additions & 0 deletions types/sensoterra/sensoterra/system.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$id": "https://akenza.io/sensoterra/sensoterra/system.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"processingType": "uplink_decoder",
"topic": "system",
"title": "System",
"properties": {
"historyEnabled": {
"title": "History enabled",
"description": "History enabled",
"type": "boolean",
"hideFromKpis": true
},
"probeMode": {
"title": "Probe mode",
"description": "Probe mode",
"type": "boolean",
"hideFromKpis": true
},
"watchdogEnabled": {
"title": "Watchdog enabled",
"description": "Watchdog enabled",
"type": "boolean",
"hideFromKpis": true
},
"linkCheckMode": {
"title": "Link check mode",
"description": "Link check mode",
"type": "boolean",
"hideFromKpis": true
},
"networkCheckCounterInterval": {
"title": "Network check counter interval",
"type": "integer",
"unit": "s",
"description": "Network check counter interval",
"hideFromKpis": true
},
"networkCheckCounterThreshold": {
"title": "Network check counter threshold",
"type": "integer",
"description": "Network check counter threshold",
"hideFromKpis": true
},
"numberRetransmissions": {
"title": "Number of retransmissions",
"type": "integer",
"description": "Number of retransmissions",
"hideFromKpis": true
},
"sleepInterval": {
"title": "Sleep interval",
"type": "integer",
"unit": "s",
"description": "Sleep interval",
"hideFromKpis": true
}
},
"required": [
"historyEnabled",
"probeMode",
"watchdogEnabled",
"linkCheckMode",
"networkCheckCounterInterval",
"networkCheckCounterThreshold",
"numberRetransmissions",
"sleepInterval"
]
}
Loading

0 comments on commit f10c10f

Please sign in to comment.