项目 / klaasnicolaas/home-assistant-glow

klaasnicolaas/home-assistant-glow

行业推荐
语言 —标签 energyhome-assistantesphomehacktoberfestiotelectricityesp32glowsmartmeteresp8266数据更新 2026-11-23 06:44:28 · 仓库 2026-11-22

一段话介绍

在没有智能电表或 P1 口时,通过读取电表上常见的脉冲指示灯,把用电数据送进 Home Assistant 的能源看板。它基于 [ESPHome](https://esphome.io/),并提供可自行 3D 打印的外壳。完整硬件清单、固件安装和接入步骤见[文档站点](https://glow-energy.io/docs/introduction);源文建议用[网站上的固件安装说明](https://glow-energy.io/docs/getting-started#step-2---install-firmware)把最新固件刷到 ESP,复制 YAML 时请使用[发行分支](https://github.com/klaasnicolaas/home-assistant-glow/releases/latest),不要直接复制默认开发分支中的代码。

本站整理,非 GitHub 官方 description。

官方 description(GitHub API 原样)
⚡ The power of energy measurements in your house
1,280累计星
179Fork
—峰值日增
0上榜次数
总榜
暂未入榜
日榜
暂未入榜
周榜
暂未入榜
月榜
暂未入榜

官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。

行业与场景

按行业选型 →

能耗监测与能效优化

适配系统:能源管理系统、能耗监测平台 · 得分 2.8

面向能耗采集与负荷分析建模,可用于园区/楼宇能效诊断与用能优化建议。

设备物联接入与边缘采集

适配系统:物联网平台、边缘计算网关 · 得分 1.4

实现工业协议解析与设备接入管理,可作为物联网平台的设备接入层与数据采集前置。

更多信息

以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。

我的用法
文档网站提供完整安装流程:所需硬件、用 esp web tools 为 ESP 刷固件以及接入 Home Assistant;复制 YAML 代码应使用最新 release 分支,默认分支为开发版。
特点或设计要点
使用前需在电表上查找 `imp/kWh` 数值,配置设备时可能用到。微控制器可选 ESP32(源文推荐)、ESP32-C3 或 ESP8266,并配合杜邦线和外壳。产品介绍见 [glow-energy.io](https://glow-energy.io/)。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
首次发现 — · 最近在榜 2026-11-23 · 语言 — · 贡献者 —
—

GitHub 项目主页介绍

来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 8,361 字节。

# Home Assistant Glow 🌟

<!-- PROJECT SHIELDS -->
![Project Maintenance][maintenance-shield]
[![License][license-shield]](LICENSE)
[![Forks][forks-shield]][forks-url]
[![Stargazers][stars-shield]][stars-url]
[![Issues][issues-shield]][issues-url]

[![GitHub Activity][commits-shield]][commits]
[![GitHub Last Commit][last-commit-shield]][commits]
[![Contributors][contributors-shield]][contributors-url]

During my internship at [Nabu Casa][nc] in the first half of 2021, I focused on energy management for your house, how to collect all energy data and display it on a dashboard. Since Home Assistant release **2021.8** it's possible to use the [Home Assistant Energy][energy] dashboard to display your energy usage. Unfortunately, not everyone has a smart meter and/or is equipped with a P1 port. This is where the Home Assistant Glow comes in!

<p align="center">
  <img width="80%" src="docs/static/img/home-assistant-glow.jpg">
</p>

<details>
  <summary>CLICK HERE! To see the Home Assistant Glow in action.</summary>

  <p align="center">
    <img src="assets/images/glow_sensor_testing.gif" alt="Glow testing" width="40%"/><img src="assets/images/glow_in_action.gif" alt="Glow in action" width="40%"/>
  </p>
</details>

Home Assistant Glow makes a *(not so)* smart meter without a P1 port easily readable, reading the pulse LED that is always present in most cases and it works with [ESPHome][esphome]! To neatly hide it all in your meter cupboard, a case has been designed that you can 3D print yourself.

### How do I know if my meter is supported?

To make sure your meter will work with the Home Assistant Glow, you have to look for the `imp/kWh` rate on your meter (see picture). Make a note of this value because you may need it later when configuring your device.

<p align="center">
  <img width="60%" src="docs/static/img/pulse_rate.png">
</p>

## Getting Started

> [!IMPORTANT]
> Please note, the default branch shows development and may be ahead of the released version. For copying YAML code, use the [release branch](https://github.com/klaasnicolaas/home-assistant-glow/releases/latest). It's best to use the [website](https://glow-energy.io/docs/getting-started#step-2---install-firmware) to install the latest firmware on your ESP.

On the [documentation website](https://glow-energy.io/docs/introduction) you will find a complete walkthrough with which hardware you need, how to install the correct firmware on your ESP (using esp web tools) and how to add it to Home Assistant.

## Hardware

First, fill your 🛒 or see if you already have the components below.

Choose one of the listed microcontrollers, but keep in mind that the ESP32 is recommended.

  - ESP32 (recommended) - [AliExpress](https://s.click.aliexpress.com/e/_DdAe4Fl) or [Banggood][esp32-bg-shop] or [AliExpress][esp32-ali-shop]
  - ESP32-C3 - [AliExpress](https://s.click.aliexpress.com/e/_DFNCxYn) or [AliExpress][esp32c3-ali-shop]
  - ESP8266 - [AliExpress](https://s.click.aliexpress.com/e/_omR3PTr) or [Banggood][esp8266-bg-shop] or [AliExpress][esp8266-ali-shop]
- Dupont Jumpers (female to female) - [AliExpress](https://s.click.aliexpress.com/e/_DmbrJsj) or [Banggood][dupont-jumpers-shop]
- 3D-printed case (see the [case](https://glow-energy.io/docs/resources/cases) folder)
- LM393 Photodiode: [AliExpress](https://s.click.aliexpress.com/e/_c3utxSRp) or [Banggood][photodiode-bg-shop] or [AliExpress][photodiode-ali-shop] (please note that you will not receive an LDR)
- LED RGB 5mm 4 pin - kathode: [AliExpress](https://s.click.aliexpress.com/e/_c3H3JVT9) or [Banggood][rgbled-bg-shop] or [AliExpress][rgbled-ali-shop]

## Contributing

We welcome contributions! Please read the [contribution guidelines](CONTRIBUTING.md) before submitting PRs.

Thanks to everyone who already contributed! ❤️

<a href="https://github.com/klaasnicolaas/home-assistant-glow/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=klaasnicolaas/home-assistant-glow" />
</a>

For a full list of all authors and contributors, check [the contributor's page][contributors-url].

## Disclamer

Affiliate links are used on this repository to support the Home Assistant Glow 🌟 project. Some Ad-blockers might block these links and thus they seem to appear broken. You will have to temporarily disable ad-blocker to open these links.

## License

MIT License

Copyright (c) 2021-2026 Klaas Schoute

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<!-- MARKDOWN LINKS & IMAGES -->
[esphome]: https://esphome.io
[nc]: https://www.nabucasa.com
[energy]: https://www.home-assistant.io/home-energy-management

<!-- Shields -->
[maintenance-shield]: https://img.shields.io/maintenance/yes/2026.svg
[contributors-shield]: https://img.shields.io/github/contributors/klaasnicolaas/home-assistant-glow.svg
[contributors-url]: https://github.com/klaasnicolaas/home-assistant-glow/graphs/contributors
[forks-shield]: https://img.shields.io/github/forks/klaasnicolaas/home-assistant-glow.svg
[forks-url]: https://github.com/klaasnicolaas/home-assistant-glow/network/members
[stars-shield]: https://img.shields.io/github/stars/klaasnicolaas/home-assistant-glow.svg
[stars-url]: https://github.com/klaasnicolaas/home-assistant-glow/stargazers
[issues-shield]: https://img.shields.io/github/issues/klaasnicolaas/home-assistant-glow.svg
[issues-url]: https://github.com/klaasnicolaas/home-assistant-glow/issues
[license-shield]: https://img.shields.io/github/license/klaasnicolaas/home-assistant-glow.svg
[commits-shield]: https://img.shields.io/github/commit-activity/y/klaasnicolaas/home-assistant-glow.svg
[commits]: https://github.com/klaasnicolaas/home-assistant-glow/commits/main
[last-commit-shield]: https://img.shields.io/github/last-commit/klaasnicolaas/home-assistant-glow.svg

<!-- Hardware -->
[esp32-bg-shop]: https://www.banggood.com/bang/?tt=16956_12_417111_&r=https%3A%2F%2Fnl.banggood.com%2FGeekcreit-ESP32-WiFi%2Bbluetooth-Development-Board-Ultra-Low-Power-Consumption-Dual-Cores-Pins-Unsoldered-p-1214159.html
[esp32-ali-shop]: https://tc.tradetracker.net/?c=15640&m=12&a=417111&r=&u=https%3A%2F%2Faliexpress.com%2Fitem%2F1005005970816555.html
[esp32c3-ali-shop]: https://tc.tradetracker.net/?c=15640&m=12&a=417111&r=&u=%2Fitem%2F1005006391993583.html
[esp8266-bg-shop]: https://www.banggood.com/bang/?tt=16956_12_417111_&r=%2Fnl%2FGeekcreit-NodeMcu-Lua-ESP8266-ESP-12F-WIFI-Development-Board-p-985891.html
[esp8266-ali-shop]: https://tc.tradetracker.net/?c=15640&m=12&a=417111&r=&u=https%3A%2F%2Faliexpress.com%2Fitem%2F1005005977505151.html
[dupont-jumpers-shop]: https://www.banggood.com/bang/?tt=16956_12_417111_&r=https%3A%2F%2Fwww.banggood.com%2Fnl%2F120pcs-40PIN-20CM-Dupont-Line-Male-to-Male-%2B-Male-to-Female-%2B-Female-to-Female-Jumper-Dupont-Wire-Cable-for-DIY-KIT-p-1817209.html
[photodiode-bg-shop]: https://www.banggood.com/bang/?tt=16956_12_417111_&r=https%3A%2F%2Fnl.banggood.com%2F4Pin-Photodiode-Sensor-Controller-Module-Measure-Module-p-1416445.html
[photodiode-ali-shop]: https://tc.tradetracker.net/?c=15640&m=12&a=417111&r=&u=https%3A%2F%2Faliexpress.com%2Fitem%2F1005003302215339.html
[rgbled-bg-shop]: https://www.banggood.com/bang/?tt=16956_12_417111_&r=https%3A%2F%2Fnl.banggood.com%2F50pcs-LED-RGB-Common-Cathode-4-Pin-F5-5MM-Diode-p-1016398.html
[rgbled-ali-shop]: https://tc.tradetracker.net/?c=15640&m=12&a=417111&r=&u=%2Fitem%2F4000225253691.html
↑