Impossible d'enregistrer une automatisation

Mon problème

Bonjour,
Débutant et je dois dire que je galère pas mal avec HA, tout ne se passe jamais comme prévu. Pourtant là cela ne dois pas poser de problème puisqu’il s’agit que d’une simple création d’automatisation. Je veux allumer une prise à telle heure.
J’utilise donc le module « créer une automatisation » « créer une nouvelle automatisation » je renseigne « quand » « alors faire » je clique sur enregistrer je renseigne le nom de l’automatisation et le descriptif et c’est là que le problème arrive, le bouton enregistrer à disparu.
En recherchant sur le forum si quelqu’un à un problème similaire, je découvre dans YAML qu’il existe un dossier automatisation. Mon automatisation y figure bien, la voici :

- id: '1708626351381'
  alias: 'Allumer Ordinateur '
  description: Allume prise ordinateur pour recharger pendant les heures creuses.
  trigger:
  - platform: time
    at: '13:05:00'
  - platform: time
    at: '14:30:00'
  condition: []
  action:
  - type: turn_on
    device_id: 3c01067f8d2b0fa79f5a04a6eadc6e94
    entity_id: 8e4e84ca39e2964d14220c30407009f7
    domain: switch
  mode: single
- id: '1708868625679'
  alias: Eteindre recharge ordinateur dimanche 15h00
  description: Programmation d'extinction de recharge ordinateur le dimanche
  trigger:
  - platform: time
    at: '15:00:00'
  condition:
  - condition: time
    weekday:
    - sun
  action:
  - type: turn_off
    device_id: 20cbe15b0dad4a220db514d04837b09a
    entity_id: 3b1de171d1e776ce5110ebc6e28fb7e0
    domain: switch
  mode: single

Pourtant elle se déclenche pas :crazy_face:

Merci pour votre aide.

Ma configuration


[center]## System Information

version core-2024.2.3
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.1
os_name Linux
os_version 5.4.180
arch aarch64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.34.0
Stage running
Available Repositories 1400
Downloaded Repositories 7
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Debian GNU/Linux 11 (bullseye)
update_channel stable
supervisor_version supervisor-2024.02.0
agent_version 1.5.1
docker_version 24.0.2
disk_total 14.4 GB
disk_used 8.7 GB
healthy true
supported true
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.9.0), Mosquitto broker (6.4.0), Studio Code Server (5.15.0), File editor (5.8.0), Duck DNS (1.15.0), Zigbee2MQTT (1.35.3-1), Cloudflared (5.1.4)
Dashboards
dashboards 3
resources 1
views 8
mode storage
Recorder
oldest_recorder_run 18 février 2024 à 14:35
current_recorder_run 25 février 2024 à 15:40
estimated_db_size 167.44 MiB
database_engine sqlite
database_version 3.44.2
[/center]

Je vous met aussi une partie de mes logs, où des erreurs sont logées, peut être cela vient il de cela.

2024-02-25 15:40:53.773 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-25 15:40:53.776 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration heatzy which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-25 15:40:53.779 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration smartlife which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-25 15:40:53.781 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration little_monkey which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-02-25 15:41:12.320 WARNING (MainThread) [homeassistant.setup] Setup of hassio is taking over 10 seconds.
2024-02-25 15:41:12.320 WARNING (MainThread) [homeassistant.setup] Setup of bluetooth is taking over 10 seconds.
2024-02-25 15:41:29.725 WARNING (MainThread) [homeassistant.setup] Setup of input_select is taking over 10 seconds.
2024-02-25 15:41:29.730 WARNING (MainThread) [homeassistant.setup] Setup of tag is taking over 10 seconds.
2024-02-25 15:41:29.731 WARNING (MainThread) [homeassistant.setup] Setup of input_datetime is taking over 10 seconds.
2024-02-25 15:41:29.731 WARNING (MainThread) [homeassistant.setup] Setup of input_button is taking over 10 seconds.
2024-02-25 15:41:29.731 WARNING (MainThread) [homeassistant.setup] Setup of input_number is taking over 10 seconds.
2024-02-25 15:41:29.732 WARNING (MainThread) [homeassistant.setup] Setup of zone is taking over 10 seconds.
2024-02-25 15:41:29.732 WARNING (MainThread) [homeassistant.setup] Setup of schedule is taking over 10 seconds.
2024-02-25 15:41:29.732 WARNING (MainThread) [homeassistant.setup] Setup of media_source is taking over 10 seconds.
2024-02-25 15:41:31.875 ERROR (MainThread) [custom_components.little_monkey] API Cookies timeout error
2024-02-25 15:41:32.456 WARNING (MainThread) [homeassistant.setup] Setup of application_credentials is taking over 10 seconds.
2024-02-25 15:41:40.742 WARNING (MainThread) [homeassistant.components.ezviz.camera] Found camera with serial E97277074 without configuration. Please go to integration to complete setup
2024-02-25 15:41:42.725 ERROR (bellows.thread_0) [bellows.uart] CRC error in frame b'93499c56e366f1f49874f5de7f83f77b16bdeb40457e' (b'4045' != b'd180')
2024-02-25 15:41:45.035 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.035 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.036 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) implements HVACMode(s): off, heat, cool, heat_cool, heat_cool and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.040 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.041 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.042 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) implements HVACMode(s): off, heat_cool, heat_cool, heat_cool and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.047 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.047 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.048 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.smartlife.climate.SmartLifeClimateEntity'>) implements HVACMode(s): off, heat_cool, heat_cool, heat and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please report it to the author of the 'smartlife' custom integration
2024-02-25 15:41:45.103 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up smartlife platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/smartlife/sensor.py", line 1133, in async_setup_entry
async_discover_device([*hass_data.manager.device_map])
File "/config/custom_components/smartlife/sensor.py", line 1126, in async_discover_device
SmartLifeSensorEntity(
File "/config/custom_components/smartlife/sensor.py", line 1174, in __init__
self._type = self.get_dptype(DPCode(description.key))

As tu essayé de vider le cache de ton navigateur et de re-essayer?

En l’état c’est curieux, il n’y a rien de choquant dans tes automations.

Salut

Quel est le chemin de ce dossier ?

Comment as-tu installé HA et sur quel support ?

Dans ton fichier config.yaml, as-tu cette ligne :

automation: !include automations.yaml

Vois-tu d’autres automatisations dans l’interface ?

1 « J'aime »

Le bouton enregistrer n’apparait que lorsqu’il y a une modification par rapport à un précédent enregistrement

1 « J'aime »

Oui, mais apparement, elle n’apparait pas:

1 « J'aime »

Bonsoir Giga77,

Je vais essayer de répondre à tes différentes questions.

/homeassistant/automations.yaml

Sur un Khadas VIM1s en suivant le tuto de https://www.domo-blog.fr/une-box-domotique-home-assistant-diy-performante-pour-moins-de-60e/
En espérant que c’est cette information que tu souhaitais.

Alors non je n’ai pas cette ligne. Tu veux bien parler du fichier config.yaml, voici ce qui s’y trouve :


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

  
# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
  
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 17******
    
template:
- sensor:

Je n’ai que ça dans mon dossier /homeassistant/configuration.yaml

Le problème vient peut être de cette absence.

Le pb vient à coup sûr de là comme indiqué par @Giga77 .
Profites-en pour ajouter scripts et scenes :wink:

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
1 « J'aime »

Tout à fait c’est vide en allant dans paramètres/automatisations et scènes il n’y a rien dans la partie automatisations.

Comme cela @Krull56

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

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

  
# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes
  
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 17******
    
template:
- sensor:

@Krull56
J’ai mises les lignes toutes en haut au début ou dois je les mettre après default_config:

En haut, en bas, au milieu, où tu veux du moment que l’indentation soit bien respectée :grin:
C’est bon dans ton exemple.

Avant redémarrage, tu vas dans outils de développement et tu click sur vérifier la configuration.
Si c’est au vert, tu peux redémarrer sans pb

1 « J'aime »

C’est bon tout est vert « La configuration n’empêchera pas Home Assistant de démarrer ! »
Je peu donc redémarrer :crossed_fingers:

Merci @Krull56 @Giga77 mes automatisations apparaissent bien dans automatisations :+1: :+1: :+1:
J’ai dû un jour faire une mauvaise manip et enlever les lignes :woozy_face: voilà ce que c’est de mettre les mains dans le moteur sans rien connaitre à la mécanique.
Merci beaucoup pour votre aide.
Je n’ai plus qu’à essayer si l’automatisation fonctionne bien.

2 « J'aime »

Nickel :+1:

N’oublie pas de cocher la réponse de @Giga77 comme solution.

@+

Bonjour, nouveau également dans HA j’ai le même soucis plus d’automatisation dans les paramètres mais présent dans file editor…


Hello @b-Benji

Les 3 premières lignes ( avec les include) doivent être dans le fichier configuration.yaml, pas dans automations.yaml

@+

1 « J'aime »

:face_with_hand_over_mouth:
Bonjour super ça marche merci bcp.

1 « J'aime »