2020-11-15 19:08:40 +01:00
|
|
|
Teleinformation from Linky electrical counter.
|
|
|
|
==============================================
|
|
|
|
|
|
|
|
.. seo::
|
|
|
|
:description: Instructions for setting up French Teleinformation
|
|
|
|
:image: teleinfo.jpg
|
|
|
|
:keywords: teleinfo
|
|
|
|
|
2021-08-04 14:35:19 +02:00
|
|
|
Component/Hub
|
|
|
|
-------------
|
|
|
|
|
|
|
|
The ``teleinfo`` component allows you to retrieve data from a
|
2023-12-05 01:32:02 +01:00
|
|
|
French electrical counter using Teleinformation (`datasheet <https://www.enedis.fr/media/2035/download>`__). It works with Linky electrical
|
2020-11-15 19:08:40 +01:00
|
|
|
counter but also legacy EDF electrical counter.
|
|
|
|
|
|
|
|
.. figure:: images/teleinfo-full.jpg
|
|
|
|
:align: center
|
|
|
|
:width: 50.0%
|
|
|
|
|
|
|
|
Linky 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 :ref:`UART bus <uart>` 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.
|
|
|
|
|
|
|
|
.. figure:: images/teleinfo-standard.jpg
|
|
|
|
:align: center
|
|
|
|
:width: 50.0%
|
|
|
|
|
|
|
|
Linky electrical counter configured in standard mode.
|
|
|
|
|
|
|
|
..
|
|
|
|
|
|
|
|
.. figure:: images/teleinfo-historical.jpg
|
|
|
|
:align: center
|
|
|
|
:width: 50.0%
|
|
|
|
|
|
|
|
Linky electrical counter configured in historical mode.
|
|
|
|
|
|
|
|
..
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
# Example configuration entry
|
2021-06-01 03:32:33 +02:00
|
|
|
teleinfo:
|
|
|
|
id: myteleinfo
|
|
|
|
|
2020-11-15 19:08:40 +01:00
|
|
|
|
|
|
|
Configuration variables:
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
|
2021-06-01 03:32:33 +02:00
|
|
|
In teleinfo platform:
|
2020-11-15 19:08:40 +01:00
|
|
|
|
2021-07-22 23:38:38 +02:00
|
|
|
- **historical_mode** (*Optional*): Whether to use historical mode or standard mode.
|
2020-11-15 19:08:40 +01:00
|
|
|
With historical mode, baudrate of 1200 must be used whereas 9600 must be used in
|
2021-07-28 23:56:11 +02:00
|
|
|
standard mode. Defaults to ``false``.
|
2020-11-15 19:08:40 +01:00
|
|
|
|
|
|
|
- **update_interval** (*Optional*, :ref:`config-time`): The interval to check the
|
|
|
|
sensor. Defaults to ``60s``.
|
|
|
|
|
|
|
|
- **uart_id** (*Optional*, :ref:`config-id`): Manually specify the ID of the :ref:`UART Component <uart>` if you want
|
|
|
|
to use multiple UART buses.
|
|
|
|
|
2022-10-05 03:31:51 +02:00
|
|
|
- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation or multiple hubs.
|
|
|
|
|
2021-06-01 03:32:33 +02:00
|
|
|
Sensor
|
|
|
|
******
|
|
|
|
|
2024-05-07 07:40:12 +02:00
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-06-01 03:32:33 +02:00
|
|
|
- **tag_name** (**Required**, string): Specify the tag you want to retrieve from the Teleinformation.
|
2022-10-05 03:31:51 +02:00
|
|
|
- **teleinfo_id** (*Optional*, :ref:`config-id`): Specify the ID of used hub.
|
2021-06-01 03:32:33 +02:00
|
|
|
- All other options from :ref:`Sensor <config-sensor>`.
|
|
|
|
|
|
|
|
Text Sensor
|
|
|
|
***********
|
|
|
|
|
2024-05-07 07:40:12 +02:00
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
text_sensor:
|
|
|
|
- platform: teleinfo
|
|
|
|
tag_name: "OPTARIF"
|
|
|
|
name: "optarif"
|
|
|
|
teleinfo_id: myteleinfo
|
|
|
|
|
2021-06-01 03:32:33 +02:00
|
|
|
- **tag_name** (**Required**, string): Specify the tag you want to retrieve from the Teleinformation.
|
2022-10-05 03:31:51 +02:00
|
|
|
- **teleinfo_id** (*Optional*, :ref:`config-id`): Specify the ID of used hub.
|
2021-06-01 03:32:33 +02:00
|
|
|
- All other options from :ref:`Text Sensor <config-text_sensor>`.
|
|
|
|
|
|
|
|
|
2020-11-15 19:08:40 +01:00
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
|
|
|
- :apiref:`teleinfo/teleinfo.h`
|
|
|
|
- :ghedit:`Edit`
|