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.