Skip to content

Commit

Permalink
Add power_generation sensor (#105)
Browse files Browse the repository at this point in the history
* add power_generation

* remove misleading description

* remove `mW`

---------

Co-authored-by: Timm <gidsi@users.noreply.github.com>
  • Loading branch information
cyroxx and gidsi authored Apr 11, 2024
1 parent e780433 commit ffd90f2
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions 15-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,52 @@
]
}
},
"power_generation": {
"description": "The power generation of a specific device or of your whole space",
"type": "array",
"items": {
"type": "object",
"properties": {
"value": {
"description": "The sensor value",
"type": "number"
},
"unit": {
"description": "The unit of the sensor value.",
"type": "string",
"enum": [
"W",
"VA"
]
},
"location": {
"description": "The location of your sensor",
"type": "string",
"examples": [
"Room 1",
"Lab"
]
},
"name": {
"description": "This field is an additional field to give your sensor a name. This can be useful if you have multiple sensors in the same location.",
"type": "string"
},
"description": {
"description": "An extra field that you can use to attach some additional information to this sensor instance",
"type": "string"
},
"lastchange": {
"description": "The Unix timestamp (in seconds) when the sensor value changed most recently",
"type": "number"
}
},
"required": [
"value",
"unit",
"location"
]
}
},
"wind": {
"description": "Your wind sensor",
"type": "array",
Expand Down

0 comments on commit ffd90f2

Please sign in to comment.