Linky 电表 Teleinformation
组件/集线器
Section titled “组件/集线器”teleinfo 组件允许您使用 Teleinformation 从法国电表获取数据
(数据手册)。
它适用于 Linky 电表以及旧版 EDF 电表。
..
通过一个简单的电子电路(包括光耦和电阻),您可以获取详细的用电量或发电量数据。 网上有很多示例。
由于与 Teleinformation 的通信是通过 UART 进行的,您需要在配置中设置
UART 总线,并将 rx_pin 连接到光耦组件的输出端。
此外,如果电表配置为标准模式,需要将波特率设置为 9600bps;
如果是历史模式,则设置为 1200bps。要确定您使用的模式,
只需按电表上的 -/+ 按钮并查找如下所示的 Standard mode 或 Historical mode。
..
..
# 示例配置项teleinfo: id: myteleinfo在 teleinfo 平台中:
-
historical_mode (可选): 是否使用历史模式或标准模式。 历史模式需要使用 1200 波特率,而标准模式需要使用 9600 波特率。 默认为
false。 -
update_interval (可选, 时间): 检查传感器的时间间隔。 默认为
60s。 -
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: myteleinfotext_sensor: - platform: teleinfo tag_name: "OPTARIF" name: "optarif" teleinfo_id: myteleinfo