Je ne suis pas un pro du fichier de configuration, je te conseille de lire le splitting de ta configuration https://www.home-assistant.io/docs/configuration/splitting_configuration/
Pour moi dans tes fichiers tu oublies de déclarer le type (sensor, climate…).
Ce que j’ai fait pour mes entités bsblan.
J’ai créer un dossier « integrations » sous la racine "homeassistant. J’utilise ce dossier pour d’autres configuration.
J’ai rajouté dans mon fichier de configuration ceci
default_config:
# Lien vers le dossier integration script et autres lovelace card
homeassistant:
packages: !include_dir_named integrations
Tu retires évidemment les lignes suivantes de ton fichier
############################################################
## MQTT ##
############################################################
mqtt:
sensor: !include mqtt/mqtt.yaml
button: !include mqtt/boutton.yaml
climate: !include mqtt/climate.yaml
Tu créés un fichier avec le nom que tu veux, moi bsb_lan.yaml.
Voici ce que tu mets dedans, à modifier comme tu veux en respectant sensor, climate, select…
mqtt:
############################################################
## CLIMATE ##
############################################################
climate:
- name: "Thermostat radiateur mode confort"
unique_id: bsb_lan_climate_radiateur_confort
availability_topic: "BSB-LAN/status"
payload_on: "1"
payload_off: "0"
modes:
- auto
- heat
- cool
- "off"
mode_state_topic: "BSB-LAN/700"
mode_state_template: >-
{% set values = { '0 - Mode protection':'off', '1 - Automatique':'auto', '2 - Réduit':'cool', '3 - Confort':'heat'} %}
{{ values[value] if value in values.keys() else 'off' }}
mode_command_topic: "BSB-LAN"
mode_command_template: >-
{% set values = { 'off':'S700=0', 'auto':'S700=1', 'cool':'S700=2', 'heat':'S700=3'} %}
{{ values[value] if value in values.keys() else '0' }}
current_temperature_topic: "BSB-LAN/8740"
min_temp: 18
max_temp: 24
temp_step: 0.5
temperature_state_topic: "BSB-LAN/710"
temperature_command_topic: "BSB-LAN"
temperature_command_template: "{{'S710='+ (value| string)}}"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Thermostat radiateur mode eco"
unique_id: bsb_lan_climate_radiateur_eco
availability_topic: "BSB-LAN/status"
payload_on: "1"
payload_off: "0"
modes:
- auto
- heat
- cool
- "off"
mode_state_topic: "BSB-LAN/700"
mode_state_template: >-
{% set values = { '0 - Mode protection':'off', '1 - Automatique':'auto', '2 - Réduit':'cool', '3 - Confort':'heat'} %}
{{ values[value] if value in values.keys() else 'off' }}
mode_command_topic: "BSB-LAN"
mode_command_template: >-
{% set values = { 'off':'S700=0', 'auto':'S700=1', 'cool':'S700=2', 'heat':'S700=3'} %}
{{ values[value] if value in values.keys() else '0' }}
current_temperature_topic: "BSB-LAN/8740"
min_temp: 16
max_temp: 22
temp_step: 0.5
temperature_state_topic: "BSB-LAN/712"
temperature_command_topic: "BSB-LAN"
temperature_command_template: "{{'S712='+ (value| string)}}"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Thermostat plancher"
unique_id: bsb_lan_climate_plancher
availability_topic: "BSB-LAN/status"
payload_on: "1"
payload_off: "0"
modes:
- auto
- heat
- cool
- "off"
mode_state_topic: "BSB-LAN/1000"
mode_state_template: >-
{% set values = { '0 - Mode protection':'off', '1 - Automatique':'auto', '2 - Réduit':'cool', '3 - Confort':'heat'} %}
{{ values[value] if value in values.keys() else 'off' }}
mode_command_topic: "BSB-LAN"
mode_command_template: >-
{% set values = { 'off':'S1000=0', 'auto':'S1000=1', 'cool':'S1000=2', 'heat':'S1000=3'} %}
{{ values[value] if value in values.keys() else '0' }}
current_temperature_topic: "BSB-LAN/8770"
min_temp: 17
max_temp: 22
temp_step: 0.5
temperature_state_topic: "BSB-LAN/1010"
temperature_command_topic: "BSB-LAN"
temperature_command_template: "{{'S1010='+ (value| string)}}"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## SELECT ##
############################################################
select:
- name: Mode radiateur
unique_id: bsb_lan_select_radiateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/700"
command_topic: "BSB-LAN"
value_template: >
{% set mapping = {0: 'Mode protection', 1: 'Automatique', 2: 'Réduit', 3: 'Confort'} %}
{% set idx = value.split() | first | int %}
{{ mapping[idx] }}
command_template: >
{% set mapping = {'Mode protection': 0, 'Automatique': 1, 'Réduit': 2, 'Confort': 3} %}
S700={{ mapping[value] }}
options:
- Mode protection
- Automatique
- Réduit
- Confort
icon: mdi:list-box
entity_category: "config"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: Mode plancher
unique_id: bsb_lan_select_plancher
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/1000"
command_topic: "BSB-LAN"
value_template: >
{% set mapping = {0: 'Mode protection', 1: 'Automatique', 2: 'Réduit', 3: 'Confort'} %}
{% set idx = value.split() | first | int %}
{{ mapping[idx] }}
command_template: >
{% set mapping = {'Mode protection': 0, 'Automatique': 1, 'Réduit': 2, 'Confort': 3} %}
S1000={{ mapping[value] }}
options:
- Mode protection
- Automatique
- Réduit
- Confort
icon: mdi:list-box
entity_category: "config"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## SWITCH ##
############################################################
switch:
- name: "Activation ECS"
unique_id: bsb_lan_activation_ecs
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/1600"
command_topic: "BSB-LAN"
payload_on: "S1600=1"
payload_off: "S1600=0"
state_on: "1 - Marche"
state_off: "0 - Arrêt"
device:
configuration_url: "http://192.168.1.130"
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## SENSOR RADIATEUR ##
############################################################
sensor:
- name: "Temp thermostat radiateur"
unique_id: bsb_lan_temp_thermostat_radiateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8740"
unit_of_measurement: °C
device_class: temperature
state_class: measurement
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Consigne confort radiateur"
unique_id: bsb_lan_consigne_confort_radiateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/710"
state_class: measurement
device_class: temperature
unit_of_measurement: "°C"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Consigne eco radiateur"
unique_id: bsb_lan_consigne_eco_radiateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/712"
state_class: measurement
device_class: temperature
unit_of_measurement: "°C"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Regime PAC radiateur"
unique_id: bsb_lan_regime_pac_radiateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8000"
icon: mdi:priority-high
value_template: "{{value.split('- ')[1]}}"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## SENSOR PLANCHER ##
############################################################
- name: "Temp thermostat plancher"
unique_id: bsb_lan_temp_thermostat_plancher
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8770"
unit_of_measurement: °C
device_class: temperature
state_class: measurement
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Consigne confort plancher"
unique_id: bsb_lan_consigne_confort_plancher
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/1010"
state_class: measurement
device_class: temperature
unit_of_measurement: "°C"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Consigne eco plancher"
unique_id: bsb_lan_consigne_eco_plancher
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/1012"
state_class: measurement
device_class: temperature
unit_of_measurement: "°C"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Regime PAC plancher"
unique_id: bsb_lan_regime_pac_plancher
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8001"
icon: mdi:priority-high
value_template: "{{value.split('- ')[1]}}"
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Circulateur"
unique_id: bsb_lan_circulateur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8760"
icon: mdi:pump
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## SENSOR PAC ##
############################################################
- name: "Compresseur"
unique_id: bsb_lan_compresseur
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8400"
icon: mdi:heat-pump
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Etat PAC"
unique_id: bsb_lan_etat_pac
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8006"
icon: mdi:heat-pump
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
- name: "Exterieure PAC"
unique_id: bsb_lan_temp_ext
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/8700"
unit_of_measurement: °C
device_class: temperature
state_class: measurement
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## ENERGIE ##
############################################################
- name: "Energie PAC totale"
unique_id: bsb_lan_energy_totale
availability_topic: "BSB-LAN/status"
state_topic: "BSB-LAN/3113"
value_template: >-
{{value.split(' ')[0]}}
unit_of_measurement: kWh
device_class: energy
state_class: total
device:
name: "BSB-LAN"
identifiers: "ESP32-BSB-LAN"
model: "ESP32-WROOM-32"
manufacturer: "Espressif"
############################################################
## TEMPLATE ##
############################################################
#template:
## TC : temp cible (consigne : éco ou confort) / TR : temp relevée / TE : temp extérieure
## Formule : (coef_int * (temp cible - temp relevée) + coef_ext * (temp cible - temp extérieure))+ Temp cible
## coef_int = 0.6 et coef_ext = 0,01
## Consigne confort corrigée radiateur multi pièces, base confort : 20°C
# - sensor:
# - name: "Consigne corrigée confort radiateur multiple"
# unique_id: consigne_cor_conf_rad_multi
# unit_of_measurement: °C
# device_class: temperature
# state: >-
# {% set TE = states('sensor.exterieure')|float(0) %}
# {% set TC = states('input_number.consigne_confort_radiateur')|float(0) %}
# {% set TR = states('sensor.temperature_mini_chambres')|float(0) %}
# {{ (((0.6 * (TC-TR)) + (0.01 * (TC-TE)) + TC) | float * 2) | round(0) /2 }}
Tu checkes et recharges