-
Notifications
You must be signed in to change notification settings - Fork 16
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit more explanation and an example of such a sensor would be appreciated 🙂
15-draft.json
Outdated
"type": "number" | ||
}, | ||
"unit": { | ||
"description": "The unit of the sensor value. You should always define the unit though if the sensor is a flag of a boolean type then you can of course omit it.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The description does seem a bit off? How can the sensor be of boolean type? Also since it is a required field one can't omit it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I copy&pasted from power consumption
and did not have a close enough look at it.
So anything that you might request here is probably also wrong at power_consumption
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have remove the misleading part of the description in 961e696.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks we'll fix this for the other sensor.
@rnestler Please review again. |
"W", | ||
"VA" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
EDIT: We have a solar panel near our space. So far, spaceapi only allowed for
power_consumption
, butpower_generation
was still missing.This PR intends to change that.
An example can be found at: https://spaceapi.ccc-p.org/