|
esphome: |
|
name: linky |
|
|
|
# https://esphome.io/components/esp8266.html |
|
esp8266: |
|
board: d1_mini |
|
|
|
# https://esphome.io/components/esp32.html |
|
#esp32: |
|
# board: lolin_s2_mini |
|
# variant: esp32s2 |
|
|
|
# WiFi Component: https://esphome.io/components/wifi.html |
|
wifi: |
|
ssid: !secret esphome_wifi_ssid |
|
password: !secret esphome_wifi_password |
|
manual_ip: |
|
static_ip: 192.168.125.84 |
|
gateway: 192.168.125.1 |
|
subnet: 255.255.255.0 |
|
dns1: 192.168.125.1 |
|
ap: |
|
ssid: Linky |
|
password: !secret esphome_wifi_password |
|
|
|
# OTA Update Component: https://esphome.io/components/ota.html |
|
ota: |
|
password: !secret esphome_ota_password |
|
|
|
# Logger Component: https://esphome.io/components/logger.html |
|
logger: |
|
baud_rate: 0 # disable logging via UART, help to avoid numerous crash with ESP_LOGD |
|
hardware_uart : UART1 |
|
level: info |
|
esp8266_store_log_strings_in_flash: false |
|
|
|
# Native API Component: https://esphome.io/components/api.html |
|
api: |
|
encryption: |
|
key: imB+N0VsxE6Ape4RhsxuyDLjCkeDIHl0GNyj1Gm3ylU= |
|
|
|
# Captive Portal: https://esphome.io/components/captive_portal.html |
|
captive_portal: |
|
|
|
# Web Server: https://esphome.io/components/web_server.html |
|
web_server: |
|
local: true |
|
port: 80 |
|
auth: |
|
username: !secret esphome_web_server_username |
|
password: !secret esphome_web_server_password |
|
|
|
# Time: https://esphome.io/components/time.html |
|
time: |
|
- platform: homeassistant |
|
timezone: "Europe/Paris" |
|
id: homeassistant_time |
|
|
|
# Status Binary Sensor: https://esphome.io/components/binary_sensor/status.html |
|
binary_sensor: |
|
- platform: status |
|
name: "Linky Status" |
|
|
|
#-------------- |
|
# MODE STANDARD (Registre de Statuts) |
|
#-------------- |
|
# - platform: template |
|
# name: Contact sec |
|
# id: cs |
|
# # 0 = fermé |
|
# # 1 = ouvert |
|
# |
|
# - platform: template |
|
# name: État du cache-bornes distributeur |
|
# id: Ecbd |
|
# # 0 = fermé |
|
# # 1 = ouvert |
|
# |
|
# - platform: template |
|
# name: Surtension sur une des phases |
|
# id: Sp |
|
# # 0 = pas de surtension |
|
# # 1 = surtension |
|
# # La mise à 1 de ce bit peut provoquer une alarme à destination du concentrateur en fonction du registre « AlarmFilter » |
|
# |
|
# - platform: template |
|
# name: Dépassement de la puissance de référence |
|
# id: Dpr |
|
# # 0 = pas de dépassement |
|
# # 1 = dépassement en cours |
|
# |
|
# - platform: template |
|
# name: Fonctionnement producteur/consommateur |
|
# id: Fpc |
|
# # 0 = consommateur |
|
# # 1 = producteur |
|
# |
|
# - platform: template |
|
# name: Sens de l'énergie active |
|
# id: Sea |
|
# # 0 = énergie active positive |
|
# # 1 = énergie active négative |
|
# |
|
# - platform: template |
|
# name: Mode dégradée de l'horloge |
|
# id: Hd |
|
# # 0 = horloge correcte |
|
# # 1 = horloge en mode dégradée |
|
# |
|
# - platform: template |
|
# name: État de la sortie télé-information |
|
# id: Sti |
|
# # 0 = mode historique |
|
# # 1 = mode standard |
|
# |
|
# - platform: template |
|
# name: Synchronisation CPL |
|
# id: SyC |
|
# # 0= compteur non synchronisé |
|
# # 1 = compteur synchronisé |
|
# |
|
|
|
# Restart Button: https://esphome.io/components/button/restart.html |
|
button: |
|
- platform: restart |
|
name: "Linky Restart" |
|
|
|
# https://esphome.io/custom/uart.html |
|
uart: |
|
id: uart_bus |
|
rx_pin: GPIO3 |
|
baud_rate: 9600 # 9600 == mode standard, 1200 == mode historique |
|
parity: EVEN |
|
data_bits: 7 |
|
stop_bits: 1 |
|
|
|
# https://esphome.io/components/sensor/teleinfo.html |
|
teleinfo: |
|
update_interval: 5s |
|
historical_mode: false # false == mode standard, true == mode historique |
|
|
|
# https://esphome.io/components/sensor/index.html |
|
sensor: |
|
# WiFi |
|
- platform: wifi_signal |
|
name: "Linky WiFi Signal" |
|
unit_of_measurement: dB |
|
device_class: signal_strength |
|
accuracy_decimals: 0 |
|
update_interval: 60s |
|
# Uptime |
|
- platform: uptime |
|
name: "Linky Uptime" |
|
unit_of_measurement: s |
|
device_class: duration |
|
accuracy_decimals: 0 |
|
update_interval: 60s |
|
#-------------- |
|
# MODE STANDARD |
|
#-------------- |
|
# Énergie active soutirée totale |
|
- platform: teleinfo |
|
tag_name: "EAST" |
|
name: "Linky Energie Soutirée" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 01 |
|
- platform: teleinfo |
|
tag_name: "EASF01" |
|
name: "Linky Energie Soutirée Tempo Bleu HC" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 02 |
|
- platform: teleinfo |
|
tag_name: "EASF02" |
|
name: "Linky Energie Soutirée Tempo Bleu HP" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 03 |
|
- platform: teleinfo |
|
tag_name: "EASF03" |
|
name: "Linky Energie Soutirée Tempo Blanc HC" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 04 |
|
- platform: teleinfo |
|
tag_name: "EASF04" |
|
name: "Linky Energie Soutirée Tempo Blanc HP" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 05 |
|
- platform: teleinfo |
|
tag_name: "EASF05" |
|
name: "Linky Energie Soutirée Tempo Rouge HC" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# Energie active soutirée Fournisseur, index 06 |
|
- platform: teleinfo |
|
tag_name: "EASF06" |
|
name: "Linky Energie Soutirée Tempo Rouge HP" |
|
unit_of_measurement: kWh |
|
device_class: energy |
|
state_class: total_increasing |
|
accuracy_decimals: 3 |
|
filters: |
|
- multiply: 0.001 |
|
# # Energie active soutirée Fournisseur, index 07 |
|
# - platform: teleinfo |
|
# tag_name: "EASF07" |
|
# name: "Linky Energie Soutirée F07" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Fournisseur, index 08 |
|
# - platform: teleinfo |
|
# tag_name: "EASF08" |
|
# name: "Linky Energie Soutirée F08" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Fournisseur, index 09 |
|
# - platform: teleinfo |
|
# tag_name: "EASF09" |
|
# name: "Linky Energie Soutirée F09" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Fournisseur, index 10 |
|
# - platform: teleinfo |
|
# tag_name: "EASF10" |
|
# name: "Linky Energie Soutirée F10" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Distributeur, index 01 |
|
# - platform: teleinfo |
|
# tag_name: "EASD01" |
|
# name: "Linky Energie Soutirée D01" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Distributeur, index 02 |
|
# - platform: teleinfo |
|
# tag_name: "EASD02" |
|
# name: "Linky Energie Soutirée D02" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Distributeur, index 03 |
|
# - platform: teleinfo |
|
# tag_name: "EASD03" |
|
# name: "Linky Energie Soutirée D03" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Energie active soutirée Distributeur, index 04 |
|
# - platform: teleinfo |
|
# tag_name: "EASD04" |
|
# name: "Linky Energie Soutirée D04" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# Courant Efficace, phase 1 |
|
- platform: teleinfo |
|
tag_name: "IRMS1" |
|
name: "Linky Courant Efficace" |
|
unit_of_measurement: A |
|
device_class: current |
|
state_class: measurement |
|
# Tension Efficace, phase 1 |
|
- platform: teleinfo |
|
tag_name: "URMS1" |
|
name: "Linky Tension Efficace" |
|
unit_of_measurement: V |
|
device_class: voltage |
|
state_class: measurement |
|
# Puissance app. de référence |
|
# - platform: teleinfo |
|
# tag_name: "PREF" |
|
# name: "Linky Puissance Apparente Référence" |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# unit_of_measurement: VA |
|
# filters: |
|
# - multiply: 1000 |
|
# Puissance app. de coupure |
|
- platform: teleinfo |
|
tag_name: "PCOUP" |
|
name: "Linky Puissance Apparente Coupure" |
|
state_class: measurement |
|
device_class: apparent_power |
|
unit_of_measurement: VA |
|
filters: |
|
- multiply: 1000 |
|
# Puissance app. Instantanée Soutirée |
|
- platform: teleinfo |
|
tag_name: "SINSTS" |
|
name: "Linky Puissance Apparente Instantanée Soutirée" |
|
unit_of_measurement: VA |
|
state_class: measurement |
|
device_class: apparent_power |
|
# Puissance app. max. soutirée |
|
# - platform: teleinfo |
|
# tag_name: "SMAXSN" |
|
# name: "Linky Puissance Apparente Maximale Soutirée" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# Point n de la courbe de charge active soutirée |
|
- platform: teleinfo |
|
tag_name: "CCASN" |
|
name: "Linky Puissance Active Soutirée" |
|
unit_of_measurement: W |
|
state_class: measurement |
|
device_class: power |
|
# Point n-1 de la courbe de charge active soutirée |
|
- platform: teleinfo |
|
tag_name: "CCASN-1" |
|
name: "Linky Puissance Active Soutirée N-1" |
|
unit_of_measurement: W |
|
state_class: measurement |
|
device_class: power |
|
# Tension Moyenne, phase 1 |
|
# - platform: teleinfo |
|
# tag_name: "UMOY1" |
|
# name: "Linky Tension Moyenne" |
|
# unit_of_measurement: V |
|
# device_class: voltage |
|
# state_class: measurement |
|
#------------------------- |
|
# MODE STANDARD - TRIPHASÉ |
|
#------------------------- |
|
# # Courant Efficace, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "IRMS2" |
|
# name: "Linky Courant Efficace Phase 2" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Courant Efficace, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "IRMS3" |
|
# name: "Linky Courant Efficace Phase 3" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Tension Efficace, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "URMS2" |
|
# name: "Linky Tension Efficace Phase 2" |
|
# unit_of_measurement: V |
|
# device_class: voltage |
|
# state_class: measurement |
|
# # Tension Efficace, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "URMS3" |
|
# name: "Linky Tension Efficace Phase 3" |
|
# unit_of_measurement: V |
|
# device_class: voltage |
|
# state_class: measurement |
|
# # Puissance app. Instantanée Soutirée, phase 1 |
|
# - platform: teleinfo |
|
# tag_name: "SINSTS1" |
|
# name: "Linky Puissance Apparente Instantanée Soutirée Phase 1" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. Instantanée Soutirée, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "SINSTS2" |
|
# name: "Linky Puissance Apparente Instantanée Soutirée Phase 2" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. Instantanée Soutirée, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "SINSTS3" |
|
# name: "Linky Puissance Apparente Instantanée Soutirée Phase 3" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. max. Soutirée, phase 1 |
|
# - platform: teleinfo |
|
# tag_name: "SMAXSN1" |
|
# name: "Linky Puissance Apparente Maximale Soutirée Phase 1" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. max. Soutirée, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "SMAXSN2" |
|
# name: "Linky Puissance Apparente Maximale Soutirée Phase 2" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. max. Soutirée, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "SMAXSN3" |
|
# name: "Linky Puissance Apparente Maximale Soutirée Phase 3" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Tension Moyenne, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "UMOY2" |
|
# name: "Linky Tension Moyenne Phase 2" |
|
# unit_of_measurement: V |
|
# device_class: voltage |
|
# state_class: measurement |
|
# # Tension Moyenne, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "UMOY3" |
|
# name: "Linky Tension Moyenne Phase 3" |
|
# unit_of_measurement: V |
|
# device_class: voltage |
|
# state_class: measurement |
|
#---------------------------- |
|
# MODE STANDARD - PRODUCTEURS |
|
#---------------------------- |
|
# # Energie active injectée totale |
|
# - platform: teleinfo |
|
# tag_name: "EAIT" |
|
# name: "Linky Energie Injectée" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Puissance app. Instantanée Injectée |
|
# - platform: teleinfo |
|
# tag_name: "SINSTI" |
|
# name: "Linky Puissance Apparente Instantanée Injectée" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Puissance app. Maximale Injectée |
|
# - platform: teleinfo |
|
# tag_name: "SMAXIN" |
|
# name: "Linky Puissance Apparente Maximale Injectée" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
# # Point n de la courbe de charge active injectée |
|
# - platform: teleinfo |
|
# tag_name: "CCAIN" |
|
# name: "Linky Puissance Active Injectée" |
|
# unit_of_measurement: W |
|
# state_class: measurement |
|
# device_class: power |
|
# # Point n-1 de la courbe de charge active injectée |
|
# - platform: teleinfo |
|
# tag_name: "CCAIN-1" |
|
# name: "Linky Puissance Active Injectée N-1" |
|
# unit_of_measurement: W |
|
# state_class: measurement |
|
# device_class: power |
|
#---------------- |
|
# MODE HISTORIQUE |
|
#---------------- |
|
# # Intensité souscrite |
|
# - platform: teleinfo |
|
# tag_name: "ISOUSC" |
|
# name: "Linky Intensité souscrite" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Index option Base |
|
# - platform: teleinfo |
|
# tag_name: "BASE" |
|
# name: "Linky Index Base" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Index option HP/HC |
|
# - platform: teleinfo |
|
# tag_name: "HCHC" |
|
# name: "Linky Index HC" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "HCHP" |
|
# name: "Linky Index HP" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Index option EJP |
|
# - platform: teleinfo |
|
# tag_name: "EJPHN" |
|
# name: "Linky Index EJP Normal" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "EJPHPM" |
|
# name: "Linky Index EJP Pointe" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Index option Tempo |
|
# - platform: teleinfo |
|
# tag_name: "BBRHCJB" |
|
# name: "Linky Index Tempo Bleu HC" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "BBRHPJB" |
|
# name: "Linky Index Tempo Bleu HP" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "BBRHCJW" |
|
# name: "Linky Index Tempo Blanc HC" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "BBRHPJW" |
|
# name: "Linky Index Tempo Blanc HP" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "BBRHCJR" |
|
# name: "Linky Index Tempo Rouge HC" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# - platform: teleinfo |
|
# tag_name: "BBRHPJR" |
|
# name: "Linky Index Tempo Rouge HP" |
|
# unit_of_measurement: kWh |
|
# device_class: energy |
|
# state_class: total_increasing |
|
# accuracy_decimals: 3 |
|
# filters: |
|
# - multiply: 0.001 |
|
# # Intensité Instantanée (monophasé) |
|
# - platform: teleinfo |
|
# tag_name: "IINST" |
|
# name: "Linky Intensité Instantanée" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Avertissement de Dépassement De Puissance Souscrite |
|
# - platform: teleinfo |
|
# tag_name: "ADPS" |
|
# name: "Linky Intensité Instantanée Dépassement" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité maximale appelée (monophasé) |
|
# - platform: teleinfo |
|
# tag_name: "IMAX" |
|
# name: "Linky Intensité Maximale" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Puissance apparente |
|
# - platform: teleinfo |
|
# tag_name: "PAPP" |
|
# name: "Linky Puissance Apparente" |
|
# unit_of_measurement: VA |
|
# state_class: measurement |
|
# device_class: apparent_power |
|
#--------------------------- |
|
# MODE HISTORIQUE - TRIPHASÉ |
|
#--------------------------- |
|
# # Intensité Instantanée, phase 1 |
|
# - platform: teleinfo |
|
# tag_name: "IINST1" |
|
# name: "Linky Intensité Instantanée Phase 1" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité Instantanée, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "IINST2" |
|
# name: "Linky Intensité Instantanée Phase 2" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité Instantanée, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "IINST3" |
|
# name: "Linky Intensité Instantanée Phase 3" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité maximale appelée, phase 1 |
|
# - platform: teleinfo |
|
# tag_name: "IMAX1" |
|
# name: "Linky Intensité Maximale Phase 1" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité maximale appelée, phase 2 |
|
# - platform: teleinfo |
|
# tag_name: "IMAX2" |
|
# name: "Linky Intensité Maximale Phase 2" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Intensité maximale appelée, phase 3 |
|
# - platform: teleinfo |
|
# tag_name: "IMAX3" |
|
# name: "Linky Intensité Maximale Phase 3" |
|
# unit_of_measurement: A |
|
# device_class: current |
|
# state_class: measurement |
|
# # Puissance maximale atteinte |
|
# - platform: teleinfo |
|
# tag_name: "PMAX" |
|
# name: "Linky Puissance Maximale" |
|
# unit_of_measurement: W |
|
# state_class: measurement |
|
# device_class: power |
|
|
|
# https://esphome.io/components/text_sensor/index.html |
|
text_sensor: |
|
- platform: wifi_info |
|
ip_address: |
|
name: Linky IP Address |
|
mac_address: |
|
name: Linky Wifi Mac Address |
|
ssid: |
|
name: Linky Wifi SSID |
|
bssid: |
|
name: Linky Wifi BSSID |
|
#-------------- |
|
# MODE STANDARD |
|
#-------------- |
|
# # Adresse Secondaire du Compteur |
|
# - platform: teleinfo |
|
# tag_name: "ADSC" |
|
# name: "Linky Adresse Secondaire" |
|
# Nom du calendrier tarifaire fournisseur |
|
- platform: teleinfo |
|
tag_name: "NGTF" |
|
name: "Linky Calendrier Tarifaire" |
|
icon: mdi:information |
|
# Libellé tarif fournisseur en cours |
|
- platform: teleinfo |
|
tag_name: "LTARF" |
|
name: "Linky Tarif Actuel" |
|
icon: mdi:information |
|
# Registre de Statuts |
|
# - platform: teleinfo |
|
# tag_name: "STGE" |
|
# id: stge |
|
# name: "Linky Registre de Statuts" |
|
# icon: mdi:information |
|
# internal: True |
|
# on_value: |
|
# then: |
|
# - lambda: |- |
|
# std::bitset<32> stge = std::bitset<32>(strtol(id(STGE).state.c_str(), NULL, 16)); |
|
# id(cs).publish_state(stge[0] == 1); |
|
# switch( stge[3] << 4 | stge[2] << 2 | stge[1]) { |
|
# case 0x0: id(Odc).publish_state("fermé"); break; |
|
# case 0x1: id(Odc).publish_state("ouvert sur surpuissance"); break; |
|
# case 0x2: id(Odc).publish_state("ouvert sur surtension"); break; |
|
# case 0x3: id(Odc).publish_state("ouvert sur délestage"); break; |
|
# case 0x4: id(Odc).publish_state("ouvert sur ordre CPL ou Euridis"); break; |
|
# case 0x5: id(Odc).publish_state("ouvert sur une surchauffe avec une valeur du courant supérieure au courant de commutation maximal"); break; |
|
# case 0x6: id(Odc).publish_state("ouvert sur une surchauffe avec une valeur de courant inférieure au courant de commutation maximal"); break; |
|
# } |
|
# id(Ecbd).publish_state(stge[4] == 1); |
|
# id(Sp).publish_state(stge[6] == 1); |
|
# id(Dpr).publish_state(stge[7] == 1); |
|
# id(Fpc).publish_state(stge[8] == 1); |
|
# id(Sea).publish_state(stge[9] == 1); |
|
# switch( stge[13] << 8 | stge[12] << 4 | stge[11] << 2 | stge[10]) { |
|
# case 0x0: id(Teccf).publish_state("énergie ventilée sur Index 1"); break; |
|
# case 0x1: id(Teccf).publish_state("énergie ventilée sur Index 2"); break; |
|
# case 0x2: id(Teccf).publish_state("énergie ventilée sur Index 3"); break; |
|
# case 0x3: id(Teccf).publish_state("énergie ventilée sur Index 4"); break; |
|
# case 0x4: id(Teccf).publish_state("énergie ventilée sur Index 5"); break; |
|
# case 0x5: id(Teccf).publish_state("énergie ventilée sur Index 6"); break; |
|
# case 0x6: id(Teccf).publish_state("énergie ventilée sur Index 7"); break; |
|
# case 0x7: id(Teccf).publish_state("énergie ventilée sur Index 8"); break; |
|
# case 0x8: id(Teccf).publish_state("énergie ventilée sur Index 9"); break; |
|
# case 0x9: id(Teccf).publish_state("énergie ventilée sur Index 10"); break; |
|
# } |
|
# switch( stge[15] << 2 | stge[14]) { |
|
# case 0x0: id(Teccd).publish_state("énergie ventilée sur Index 1"); break; |
|
# case 0x1: id(Teccd).publish_state("énergie ventilée sur Index 2"); break; |
|
# case 0x2: id(Teccd).publish_state("énergie ventilée sur Index 3"); break; |
|
# case 0x3: id(Teccd).publish_state("énergie ventilée sur Index 4"); break; |
|
# } |
|
# id(Hd).publish_state(stge[16] == 1); |
|
# id(Sti).publish_state(stge[17] == 1); |
|
# switch( stge[20] << 2 | stge[19]) { |
|
# case 0x0: id(ScE).publish_state("désactivée"); break; |
|
# case 0x1: id(ScE).publish_state("activée sans sécurité"); break; |
|
# case 0x3: id(ScE).publish_state("activée avec sécurité"); break; |
|
# } |
|
# switch( stge[22] << 2 | stge[21]) { |
|
# case 0x0: id(SdC).publish_state("New/Unlock"); break; |
|
# case 0x1: id(SdC).publish_state("New/Lock"); break; |
|
# case 0x2: id(SdC).publish_state("Registered"); break; |
|
# } |
|
# id(SyC).publish_state(stge[23] == 1); |
|
# switch( stge[25] << 2 | stge[24]) { |
|
# case 0x0: id(CjT).publish_state("Pas d'annonce"); break; |
|
# case 0x1: id(CjT).publish_state("Bleu"); break; |
|
# case 0x2: id(CjT).publish_state("Blanc"); break; |
|
# case 0x3: id(CjT).publish_state("Rouge"); break; |
|
# } |
|
# switch( stge[27] << 2 | stge[26]) { |
|
# case 0x0: id(ClT).publish_state("Pas d'annonce"); break; |
|
# case 0x1: id(ClT).publish_state("Bleu"); break; |
|
# case 0x2: id(ClT).publish_state("Blanc"); break; |
|
# case 0x3: id(ClT).publish_state("Rouge"); break; |
|
# } |
|
# switch( stge[29] << 2 | stge[28]) { |
|
# case 0x0: id(Ppm).publish_state("pas de préavis en cours"); break; |
|
# case 0x1: id(Ppm).publish_state("préavis PM1 en cours"); break; |
|
# case 0x2: id(Ppm).publish_state("préavis PM2 en cours"); break; |
|
# case 0x3: id(Ppm).publish_state("préavis PM3 en cours"); break; |
|
# } |
|
# switch( stge[31] << 2 | stge[30]) { |
|
# case 0x0: id(Pm).publish_state("Pas de pointe mobile"); break; |
|
# case 0x1: id(Pm).publish_state("PM1 en cours"); break; |
|
# case 0x2: id(Pm).publish_state("PM2 en cours"); break; |
|
# case 0x3: id(Pm).publish_state("PM3 en cours"); break; |
|
# } |
|
# - platform: template |
|
# id: Odc |
|
# name: Organe de coupure |
|
# - platform: template |
|
# id: Teccf |
|
# name: Tarif en cours sur le contrat fourniture |
|
# - platform: template |
|
# id: Teccd |
|
# name: Tarif en cours sur le contrat distributeur |
|
# - platform: template |
|
# id: ScE |
|
# name: État de la sortie communication Enedis |
|
# - platform: template |
|
# name: Statut du CPL |
|
# id: SdC |
|
# - platform: template |
|
# name: Couleur du jour pour le contrat historique tempo |
|
# id: CjT |
|
# - platform: template |
|
# name: Couleur du lendemain pour le contrat historique tempo |
|
# id: ClT |
|
# - platform: template |
|
# name: Préavis pointes mobiles |
|
# id: Ppm |
|
# - platform: template |
|
# name: Pointe mobile (PM) |
|
# id: Pm |
|
# # Message court |
|
# - platform: teleinfo |
|
# tag_name: "MSG1" |
|
# name: "Linky Message court" |
|
# # Message Ultra court |
|
# - platform: teleinfo |
|
# tag_name: "MSG2" |
|
# name: "Linky Message Ultra court" |
|
# # PRM |
|
# - platform: teleinfo |
|
# tag_name: "PRM" |
|
# name: "Linky PRM" |
|
# # Relais |
|
# - platform: teleinfo |
|
# tag_name: "RELAIS" |
|
# name: "Linky Relais" |
|
#---------------- |
|
# MODE HISTORIQUE |
|
#---------------- |
|
# # Adresse du compteur |
|
# - platform: teleinfo |
|
# tag_name: "ADCO" |
|
# name: "Linky Adresse" |
|
# # Option tarifaire choisie |
|
# - platform: teleinfo |
|
# tag_name: "OPTARIF" |
|
# name: "Linky Option Tarifaire" |
|
# # Préavis Début EJP (30 min) |
|
# - platform: teleinfo |
|
# tag_name: "PEJP" |
|
# name: "Linky Préavis EJP" |
|
# # Période Tarifaire en cours |
|
# - platform: teleinfo |
|
# tag_name: "PTEC" |
|
# name: "Linky Période Tarifaire" |
|
# # Couleur du lendemain |
|
# - platform: teleinfo |
|
# tag_name: "DEMAIN" |
|
# name: "Linky Couleur Demain" |
|
# # Horaire Heures Pleines Heures Creuses |
|
# - platform: teleinfo |
|
# tag_name: "HHPHC" |
|
# name: "Linky Horaire HP/HC" |
|
# # Mot d'état du compteur |
|
# - platform: teleinfo |
|
# tag_name: "MOTDETAT" |
|
# name: "Linky Mot d'état" |
|
# # Présence des potentiels |
|
# - platform: teleinfo |
|
# tag_name: "PPOT" |
|
# name: "Linky Présence Potentiels" |