集成您的电网
能源管理就是要了解您消耗了多少能源,它来自哪里以及去向何处。
几乎所有的房屋都连接到电网,以提供您家所需的能源。能源使用情况由您的电表跟踪,并由您的能源供应商收费。能源价格可能会根据时间表而有所不同,或根据市场价格变化。

价格表
能源公司将能源价格根据一天中的时间进行划分已变得流行;这样做是为了激励消费者将其用电需求转向电网负荷较低的时段。这些时段通常被称为高峰期和非高峰期,正是因为它们对应着大家都在消耗能源的时间(高峰期)和能源丰富但无人使用的时间(非高峰期)。因此,高峰期的能源比非高峰期的能源更昂贵。
如果您想将能源使用分为多个价格区间,请阅读此文。
硬件
Home Assistant需要知道通过您的电表流动的能源量。可以通过多种方式跟踪此数据。
连接到您的电表
获得此数据的最佳方式是直接从位于您家与电网之间的电表获取。在某些国家,这些电表具有本地读取信息的标准化方式。
使用P1端口连接
P1端口是荷兰、比利时和卢森堡的标准化端口。P1读数器可以连接到此端口并接收实时信息。
我们与创作者Marcel Zuidwijk
通过Zigbee能源配置文件连接
Zigbee能源配置文件是一种无线能源标准,可以提供关于电力使用的实时信息。此标准在一些美国、英国和澳大利亚的电表中可用。这不是Home Assistant所实现的“普通”Zigbee,而是需要特殊认证的硬件。
我们目前不知道支持本地API并兼容Home Assistant的设备。
通过脉冲计数器读取电表
许多电表,包括较旧的电表,具有一个LED灯,每当能量通过时它会闪烁。例如,每次闪烁表示1/1000千瓦时。通过监测闪烁之间的时间,可以确定能源消耗。
我们开发了Home Assistant Glow
通过IEC62056-21读取电表
IEC62056-21是一个常用的协议,不仅适用于电表。它使用红外端口读取数据。
Aquaticus
使用智能消息语言接口
在德国等国家,通常使用SML(智能消息语言)。ESPHome的SML(智能消息语言)
使用边缘设备读取电表
边缘设备
使用CT夹传感器
Current transformer (CT) clamp sensors measure your energy usage by looking at the current passing through an electrical wire. This makes it possible to calculate the energy usage. In Home Assistant we have support for off-the-shelf CT clamp sensors or you can build your own.
- The off-the-shelf solution that we advise is the Shelly EM
. The device has a local API, updates are pushed to Home Assistant and it has a high quality integration. - You can build your own using ESPHome’s CT Clamp Current sensor
or energy meter sensors like the ATM90E32 . For the DIY route, check out this video by digiblur to get started.
Attention! Installing CT clamp sensor devices requires opening your electrical cabinet. This work should be done by someone familiar with electrical wiring and may require a licensed professional in some regions. Your qualified installer will know how to do this.
Disclaimer: Some links in this section are affiliate links.
您的能源供应商提供的数据
一些能源供应商会提供您使用的实时信息,并将这些数据集成到Home Assistant中。
手动集成
如果您手动集成传感器,例如,使用MQTT或模板集成:确保为这些传感器设置并提供device_class
,state_class
和unit_of_measurement
。
故障排除
如果您无法在电网消耗下拉列表中选择您的能源传感器,请确保在记录器设置中记录其值。
免责声明:此页面上的一些链接是会员链接,帮助支持Home Assistant项目。