跳转到内容

Linky 电表 Teleinformation

teleinfo 组件允许您使用 Teleinformation 从法国电表获取数据 (数据手册)。 它适用于 Linky 电表以及旧版 EDF 电表。

Linky 电表

..

通过一个简单的电子电路(包括光耦和电阻),您可以获取详细的用电量或发电量数据。 网上有很多示例。

由于与 Teleinformation 的通信是通过 UART 进行的,您需要在配置中设置 UART 总线,并将 rx_pin 连接到光耦组件的输出端。 此外,如果电表配置为标准模式,需要将波特率设置为 9600bps; 如果是历史模式,则设置为 1200bps。要确定您使用的模式, 只需按电表上的 -/+ 按钮并查找如下所示的 Standard modeHistorical mode

配置为标准模式的 Linky 电表。

..

配置为历史模式的 Linky 电表。

..

# 示例配置项
teleinfo:
id: myteleinfo

在 teleinfo 平台中:

  • historical_mode (可选): 是否使用历史模式或标准模式。 历史模式需要使用 1200 波特率,而标准模式需要使用 9600 波特率。 默认为 false

  • update_interval (可选, 时间): 检查传感器的时间间隔。 默认为 60s

  • uart_id (可选, ID): 如果要使用多个 UART 总线, 手动指定 UART 组件的 ID。

  • id (可选, ID): 手动指定用于代码生成或多个集线器的 ID。

sensor:
- platform: teleinfo
tag_name: "HCHC"
name: "hchc"
unit_of_measurement: "Wh"
icon: mdi:flash
teleinfo_id: myteleinfo
- platform: teleinfo
tag_name: "HCHP"
name: "hchp"
unit_of_measurement: "Wh"
icon: mdi:flash
teleinfo_id: myteleinfo
- platform: teleinfo
tag_name: "PAPP"
name: "papp"
unit_of_measurement: "VA"
icon: mdi:flash
teleinfo_id: myteleinfo
  • tag_name (必填, string): 指定要从 Teleinformation 获取的标签。
  • teleinfo_id (可选, ID): 指定使用的集线器 ID。
  • 传感器的所有其他选项。
text_sensor:
- platform: teleinfo
tag_name: "OPTARIF"
name: "optarif"
teleinfo_id: myteleinfo
  • tag_name (必填, string): 指定要从 Teleinformation 获取的标签。
  • teleinfo_id (可选, ID): 指定使用的集线器 ID。
  • 文本传感器的所有其他选项。