GithubHelp home page GithubHelp logo

giefca / sensor.rpi_power Goto Github PK

View Code? Open in Web Editor NEW

This project forked from custom-components/sensor.rpi_power

0.0 2.0 0.0 54 KB

A Custom component for Home-Assistant that checks if your Raspberry Pi power supply is giving enough voltage from the kernel.

License: Other

Python 100.00%

sensor.rpi_power's Introduction

Raspberry Pi Power Supply Checker

Version mantained maintainer forum
A sensor that checks your Raspberry Pi charger so its not giving you undervoltage.

To get started put /custom_components/sensor/rpi_power.py here:
<config directory>/custom_components/rpi_power/ and rename it to sensor.py

Example configuration.yaml:

sensor:
  platform: rpi_power

Optional config options:

key required default description
text_state no false Sets the description as the state if true.

โš ๏ธ This requires Kernel 4.14 or higher.

Here is some more information about how to improve your Raspberry Pi power situation.

https://github.com/superjamie/lazyweb/wiki/Raspberry-Pi-Power

Here is a simple automation example that will notify you if the psu is failing

- id: 'rpi_power_issue'
  alias: Power Problem Notification
  trigger:
  - platform: numeric_state
    entity_id: sensor.rpi_power_status
    above: 0
    for:
      minutes: 1
  condition:
  action:
    service: persistent_notification.create
    data:
      message: "Charger reported {{ states.sensor.rpi_power_status.state }}"
      title: "RPI Power Issue"

Due to how custom_components are loaded, it is normal to see a ModuleNotFoundError error on first boot after adding this, to resolve it, restart Home-Assistant.

Licensed under: Creative Commons Attribution-ShareAlike 4.0 International License

sensor.rpi_power's People

Contributors

swetoast avatar ludeeus avatar tjorim avatar rdbahm avatar ikifar2012 avatar narfel avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.