-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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 rpi_power integration #35527
Add rpi_power integration #35527
Conversation
@bdraco Thanks. That's exactly what I was looking for. |
So if you guys are hellbent on adding this there needs to be changes upcoming changes to the kernel needs vcgencmd in order for this to work so hassio wont work cause it doesnt include it. |
@swetoast So currently I use the |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. |
Merged this on my component so that its atleast updated until its merged in the core, would be nice with a credit in the manifest,json for the initial idea. |
Co-authored-by: Toast <swetoast@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
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.
Nice!
@swetoast do you want to be codeowner before we merge here? |
Yeah add me as an additional code owner
…On Mon, 14 Sep 2020, 11:42 Martin Hjelmare, ***@***.***> wrote:
@swetoast <https://github.com/swetoast> do you want to be codeowner
before we merge here?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35527 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATIQ6DJ4IX7NPMN4DLMY5TSFXQP3ANCNFSM4M6NASOQ>
.
|
Proposed change
This PR added the custom component https://github.com/custom-components/sensor.rpi_power into HA. Thanks to @swetoast. I made some changes:
binary_sensor
with device classproblem
.text_state
option is removed.I've tested on a rpi 3b+ with Raspbian Buster and it works great.
Type of change
Example entry for
configuration.yaml
:Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
TODO
Not sure if this is the best way to configure this integration. Should we use config flow or something else?The configuration is now under integration domain key in YAML configuration. Since this integration does not integrate with any device or service, I think config flow is not needed.default_config
so that users can get warnings without extra configuration?Description translation (custom-components/sensor.rpi_power#30)? Not sure how should it be implemented.Description is removed to support the newhwmon
entry.Now both entries are supported./sys/devices/platform/soc/soc:firmware/get_throttled
seems to be marked as deprecated (custom-components/sensor.rpi_power#39, Rpi 4.19.y RFC Enable Raspberry Pi voltage monitor raspberrypi/linux#2706)./sys/class/hwmon/hwmon0/in0_lcrit_alarm
gives boolean so we'll only know we have a problem but not how severe it is. Also, thehwmon
entry seems to be only available after 4.19. I'm not familiar with raspi kernel. Still trying to figure out a better solution.