Packages organization help

Hi,
I’m trying to organize my HA installation using packages.
But I’ve some issue with my switches, and maybe more.
Here it’s my folders

The configuration.yaml

# Loads default set of integrations. Do not remove.
default_config:

expose_camera_stream_source:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes/
  extra_module_url:
    - /hacsfiles/Bubble-Card/bubble-pop-up.js
    - /hacsfiles/lovelace-card-mod/card-mod.js
    - /hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js

# Automations
automation: !include_dir_merge_list custom_configs/automations/

# Scripts
script: !include_dir_merge_named custom_configs/scripts/

# Scenes
scene: !include_dir_merge_list custom_configs/scenes/

#Switch
switch: !include_dir_merge_list custom_configs/switches/
#switch: !include switches.yaml

# Sensors
sensor: !include_dir_merge_list custom_configs/templates/sensors/
#template: !include_dir_merge_named custom_configs/templates/sensors

# Binary sensors
binary_sensor: !include_dir_merge_list custom_configs/templates/binary_sensors/

command_line: !include command_line.yaml
homeassistant:
  packages: !include_dir_named packages
  customize: !include customize.yaml

# Inclure le fichier device_tracker.yaml
device_tracker: !include device_trackers.yaml

One switch :

switch:
  - platform: template
    switches:
      radiateur_bureau:
        friendly_name: "Radiateur bureau"
        unique_id: switch_pilotage_radiateur_bureau
        value_template: "{{ is_state('select.radiateur_bureau_pilot_wire_mode', 'comfort') }}"
        turn_on:
          service: select.select_option
          data:
            option: comfort
          target:
            entity_id:
              - select.radiateur_bureau_pilot_wire_mode
        turn_off:
          service: select.select_option
          data:
            option: eco
          target:
            entity_id:
              - select.radiateur_bureau_pilot_wire_mode
        icon_template: "{% if is_state('sensor.radiateur_bureau_pilot_wire_mode', 'comfort') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"

The switches are not functional, and sensors also.


I need some help about that.

Thanks.

The solution :
Organization :
image
Configuration file :

# Loads default set of integrations. Do not remove.
default_config:

expose_camera_stream_source:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes/
  extra_module_url:
    - /hacsfiles/Bubble-Card/bubble-pop-up.js
    - /hacsfiles/lovelace-card-mod/card-mod.js
    - /hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js

# Automations
automation: !include_dir_merge_list custom_configs/automations/

# Scripts
script: !include_dir_merge_named custom_configs/scripts/

# Scenes
scene: !include_dir_merge_list custom_configs/scenes/

#Switch
switch: !include_dir_merge_list custom_configs/switches/

# Sensors
template: !include_dir_merge_list template/

command_line: !include command_line.yaml
homeassistant:
  packages: !include_dir_named packages
  customize: !include customize.yaml

# Inclure le fichier device_tracker.yaml
device_tracker: !include device_trackers.yaml

One template file :

## Sensor pour les alertes météo
- sensor:
    - name: "Alerte Canicules"
      unique_id: sensor.alerte_canicule
      state: >-
        {% set wa = (state_attr('sensor.80_weather_alert', 'Canicule') )  %}
        {% set at = (state_attr('binary_sensor.meteoalarm','awareness_type') )  %}
        {% set ev = (state_attr('binary_sensor.meteoalarm','event') )  %}
        {% if wa in ['Vert', 'Jaune', 'Orange', 'Rouge']  %}
          {% set al = wa %}
        {% elif 'jaune canicule' in ev %}
          {% set al = 'Jaune' %}
        {% elif 'orange canicule' in ev %}
          {% set al = 'Orange' %}
        {% elif 'rouge canicule' in ev %}
          {% set al = 'Rouge' %}
        {% else %}
          {% set al = 'Vert' %}  
        {% endif %}    
        {{ al }}
      icon: mdi:weather-lightning

One switch :

- platform: template
  switches:
    radiateur_bureau:
      friendly_name: "Radiateur bureau"
      unique_id: switch_pilotage_radiateur_bureau
      value_template: "{{ is_state('select.radiateur_bureau_pilot_wire_mode', 'comfort') }}"
      turn_on:
        service: select.select_option
        data:
          option: comfort
        target:
          entity_id:
            - select.radiateur_bureau_pilot_wire_mode
      turn_off:
        service: select.select_option
        data:
          option: eco
        target:
          entity_id:
            - select.radiateur_bureau_pilot_wire_mode
      icon_template: "{% if is_state('sensor.radiateur_bureau_pilot_wire_mode', 'comfort') %}mdi:radiator-disabled{% else %}mdi:radiator{% endif %}"