Pour moi, tu ne peux plus utiliser ce découpage.
Ta configuration devrais être :
sensor: !include_dir_merge_list sensors/
modbus:
name: M3
type: tcp
host: 192.168.0.2
port: 502
switches:
- name: reset_min_max
address: 19
command_on: 1
command_off: 0
- name: circul_on
address: 17
command_on: 1
command_off: 0
sensors:
- name: Temperature garage
unit_of_measurement: °C
slave: 1
address: 23
precision : 1
scale: 0.01
- name: Retour chaudière
unit_of_measurement: °C
slave: 1
address: 20
scale: 0.01
precision : 1
Si tu veux pouvoir continuer de partager ta configuration, tu devrais essayer la méthode packages
qui est la plus permissive.
Voir : Organisation du fichier configuration.yaml
Ce qui donnerait :
/config/configuration.yaml
#configuration.yaml
homeassistant:
packages: !include_dir_named packages
/config/packages/modbus/modbus_hubs.yaml
#modbus_hubs.yaml
modbus:
name: M3
type: tcp
host: 192.168.0.2
port: 502
/config/packages/modbus/modbus_switches.yaml
#modbus_switches.yaml
modbus:
switches:
- name: reset_min_max
address: 19
command_on: 1
command_off: 0
- name: circul_on
address: 17
command_on: 1
command_off: 0
/config/packages/modbus/modbus_sensors.yaml
#modbus_sensors.yaml
modbus:
sensors:
- name: Temperature garage
unit_of_measurement: °C
slave: 1
address: 23
precision : 1
scale: 0.01
- name: Retour chaudière
unit_of_measurement: °C
slave: 1
address: 20
scale: 0.01
precision : 1
Ce qui donne comme arborescence :
config/
├─ configuration.yaml
├─ home-assisant.log
├─ packages/
│ │ ├─ modbus/
│ │ │ ├─ modbus_hubs.yaml
│ │ │ ├─ modbus_sensors.yaml
│ │ │ ├─ modbus_switches.yaml
A voir si le fichier de log remontent des erreurs…