Alors dans le fichier configuration :
#///////DOSSIER///////
homeassistant:
packages: !include_dir_named .packages
#//////////////SEPARATION DES DOSSIERS//////////////
#///////SCRIPT///////
script: !include scripts.yaml
#///////SCENE///////
scene: !include scenes.yaml
#///////AUTOMATISATION///////
automation: !include automations.yaml
automation telegram_automation: !include telegram_automation.yaml
Et dans mon fichier « /config/.packages/test.yaml » :
input_number:
test_position:
name: "Test - Position désirée"
min: -1
max: 100
step: 1
unit_of_measurement: "%"
automation:
- id: pot_ext_test
alias: sync_status_on_bureau_1
description: >
on H.A startup or heater status change,
check if heater is currently on to
update the climate object in HA
trigger:
- platform: homeassistant
event: start
condition:
- condition: state
entity_id: binary_sensor.bureau_1_chauffage
state: 'on'
action:
- service: climate.turn_on
target:
entity_id: climate.bureau_1
mode: single
Je ne vois pas de problème particulier, c’est du code test que j’ai pris sur un lien que tu m’as envoyé :