Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add power_generation sensor #105

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions 15-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,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"
Comment on lines +833 to +834
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We removed mW since it doesn't make sense to have it, since 1e-3W are equal to 1mW. VA on the other hand has a slightly different meaning since it is used for Apparent power.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll remove it from other sensors as well.

]
},
"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
Loading