sensor.rpi_power
Version: 0.2.0
一个家庭助理的传感器检查您的电源并将其报告回设置,此简单传感器报告了内核的值,如果它报告了其他任何内容,则为0,则电源有问题。
有关Raspberry Pi电源的更多信息,请检查以下链接。
将组件放在您的设置上:
家庭助理(前Hass.io): /custom_components/rpi_power/binary_sensor.py rpi_power/binary_sensor.py
家庭助理核心/hassbian/其他: <config directory>/custom_components/rpi_power/binary_sensor.py
_ init _.py and astest.json需要在同一文件夹中
然后重新启动家庭助理,以确保组件加载。
这是组件检查的当前值的列表:
| 价值 | 描述 |
|---|---|
| 0 | 一切都按预期工作 |
| 1000* | 检测到电压底电压,考虑为Raspberry Pi获得不间断的电源。 |
| 2000* | 由于电源不良,您的Raspberry Pi受到限制,更换电源。 |
| 3000* | 由于电源不良,您的Raspberry Pi受到限制,更换电源。 |
| 4000* | 由于电源不良,您的Raspberry Pi受到了损坏和不稳定的影响,请更换您的充电器和电缆。 |
| 5000* | 由于电源不良,您的Raspberry Pi受到了损坏和不稳定的影响,请更换您的充电器和电缆。 |
| 8000* | 您的Raspberry Pi过热,考虑获得风扇或散热器。 |
由于如何加载custom_components ,因此在添加此启动后,在第一个引导上看到ModuleNotFoundError错误是正常的,以解决该错误,重新启动Home Assistant。