The teleinfo component allows you to retrieve data from a
French electrical counter using Teleinformation (datasheet). It works with Linky electrical
counter but also legacy EDF electrical counter.
A simple electronic assembly with an optocoupler and a resistor could
let you retrieve detailed power consumption or power production.
There is plenty of example on the web.
As the communication with the Teleinformation is done using UART, you need to
have an UART bus in your configuration with the rx_pin
connected to the output of the optocoupler component. Additionally, you need to
set the baud rate to 9600bps if counter is configured to work in standard
mode or 1200bps in historical mode. To find out which mode you are using,
simply press -/+ buttons on the counter and look for Standard mode or
Historical mode as below.
# Example configuration entryuart:id:uart_busrx_pin:GPIO3tx_pin:GPIO1baud_rate:1200parity:EVENdata_bits:7sensor:-platform:teleinfotags:-name:"HCHC"sensor:name:"hchc"unit_of_measurement:"Wh"icon:mdi:flash-name:"HCHP"sensor:name:"hchp"unit_of_measurement:"Wh"icon:mdi:flash-name:"PAPP"sensor:name:"papp"unit_of_measurement:"VA"icon:mdi:flashupdate_interval:60shistorical_mode:true