Premier automatisme

Mon problème

Je n’arrive pas à créer mon premier automatisme
Renseigner votre problème
J’ai installé HASS sur un mini PC.
J’ai installé MQTT et Zigbee2MQTT

Ma configuration




Comment récupérer ma configuration :
Dans votre HA, Menu latéral Paramètres > Système > Corrections puis les trois petits points en haut a droite > Informations Système puis une fois en bas Copier


Je continue :
J’essaie de créer mon premier automatisme, avec un BluePrint :
En faisant le test , je n’arrive pas à les voir …Si je vais dans config/automations.yaml je peux voir - id: ‹ 1675256410673 ›
alias: test
description: Cuisine
use_blueprint:
path: homeassistant/motion_light.yaml
input:
motion_entity: binary_sensor.detecteur_aqara_2_occupancy
light_target:
area_id: cuisine
device_id: 15ad69bf68708c9576c72c156bc586b4
no_motion_wait: 186
Mais je ne vois rien apparaitre dans automatismes …
Un grand merci d’avance
Luc Giraud

Bonjour

quand tu définis/modifie un automatisme
une fois la sauvergarde de ce dernier effectué
tu dois aller dans
outils de développements
verifier la configuration et juste en dessous tu verra rechargement de la configuration et choisi automatisations
cliques sur automatisations
et voila

pourquoi tout cela
c’est que historiquement il fallait a chaque modification d’une automatisation redémarrer HA pour la prise en compte de cette dernière

Merci pour la réponse ! Quelle réactivité.
J’ai donc vérifié la configuration, mais je ne vois pas de nouvel automatisme. Est-ce normal ?
Désolé, je ne suis qu’au tout début …

Sinon au pire si tu n’as pas d’erreur a la vérification de la configuration relance HA

Cela ne change rien.
A tout hasard, j’ai essayé de créer un automatisme sans BluePrint, j’ai le même résultat ( ou plutôt absence de résultat).
Une fois enregistré, j’ai ceci dans le fichier /config/automations.yaml

- id: '1675264514610'
  alias: test cuisine
  description: ''
  trigger:
  - type: motion
    platform: device
    device_id: 31aaf9fdf7e14ea679b3cfe9a7f6b4a6
    entity_id: binary_sensor.detecteur_aqara_2_occupancy
    domain: binary_sensor
  condition: []
  action:
  - type: turn_off
    device_id: 2b13a58134ed3f6fff733d1b1af5ae9b
    entity_id: light.cuisine_1
    domain: light
  mode: single

Je relance HA, et je ne vois pas de nouvel automatisme
( cf capture jointe)
Un grand merci pour l’aide apportée !

Salut
A priori, tu es un débutant.
Je te conseille d’utiliser l’interface pour créer ton automatisation au lieu d’utiliser les fichiers yaml.
Appuie sur le bouton bleu en bas à droite.

Effectivement, je suis débutant !
J’ai également testé en appuyant sur le bouton créer une automatisation.
Je l’ai enregistré, mais je ne vois pas cet automatisation dans la liste …
Suis-je assez clair ?
Merci en tout cas pour l’aide apportée.

Tu n’as rien ??? :thinking:

Alors on va commencer par les bases:

Et ensuite, il faut regarder les logs:
Dans votre HA, Menu latéral Paramètres > Système > Journaux

Bein non je n’ai rien. C’est bien ce qui m’inquiètes !
Lorsque j’essaie de donner les informations systèmes, j’ai une petite animation ( disque bleu qui tourne) qui me dit de patienter et du coup je ne peux rien copier …

Pour les logs, j’ai récupéré cela :

ant
2023-02-01 17:45:18.106 WARNING (SyncWorker_2) [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
2023-02-01 17:45:24.944 ERROR (MainThread) [snitun.client.client_peer] Challenge/Response error with SniTun server ([Errno 104] Connection reset by peer)
2023-02-01 17:45:24.952 ERROR (MainThread) [hass_nabucasa.remote] Connection problem to snitun server
2023-02-01 17:45:25.511 ERROR (MainThread) [homeassistant.components.automation] Failed to generate automation from blueprint: Failed to load blueprint: Unable to find motion_light_tutorial.yaml
2023-02-01 17:45:29.117 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.prise_projecteur_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-01 17:45:29.140 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.prise_lampe_bleue_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-01 17:45:31.964 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2101076334675690839048e1e9448b9c) error in async_http_request: Cannot connect to host 10.128.1.144:80 ssl:default [Connect call failed ('10.128.1.144', 80)]
2023-02-01 17:45:31.968 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2101072360219490839048e1e9447f38) error in async_http_request: Cannot connect to host 10.128.1.40:80 ssl:default [Connect call failed ('10.128.1.40', 80)]
2023-02-01 17:45:32.270 ERROR (MainThread) [homeassistant.components.homekit] HomeKit 0xa4c13866ecf3b2ec child lock cannot startup: entity not available: {'include_domains': [], 'exclude_domains': [], 'include_entities': ['lock.0xa4c13866ecf3b2ec_child_lock'], 'exclude_entities': [], 'include_entity_globs': [], 'exclude_entity_globs': []}
2023-02-01 17:46:10.033 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 17:46:10.039 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 17:51:01.127 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 17:51:01.128 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 17:56:12.465 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 17:56:12.466 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:01:04.623 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:01:04.626 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:06:05.995 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:06:05.998 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:08:26.598 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:08:26.599 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:11:29.134 ERROR (MainThread) [homeassistant.components.automation] Failed to generate automation from blueprint: Failed to load blueprint: Unable to find motion_light_tutorial.yaml
2023-02-01 18:12:27.758 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:12:27.758 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:16:49.232 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:16:49.234 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:21:40.365 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:21:40.368 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection
2023-02-01 18:26:14.998 ERROR (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error reading from socket.
2023-02-01 18:26:14.999 WARNING (Thread-5) [pychromecast.socket_client] [49PUS6482/12(10.128.1.41):8009] Error communicating with socket, resetting connection

Pour finir en page d’accueil, j’ai ce message d’erreur
Error loading the view strategy:
TypeError: Cannot read properties of undefined (reading ‹ toUpperCase ›)

Sais-tu quel version de HA as-tu installé ?
Et comment as-tu fait ? As-tu utiliser un tutoriel, un script, etc ?

Bonsoir,
J’ai installé HAS sur un mini PC Windows 11 avec une machine Virtual Box
C’est HAS Core je crois
Merci

A priori, tu as Home Assistant Operating System = HAOS
L’acronyme HAS ne veut rien dire.

Tu as beaucoup d’erreurs, tu devrais essayer de les corriger (mais pas forcément les warning).

Pour l’automatisation, va dans le Menu latéral Paramètres > Automatisations et scènes > Blueprints et efface l’automatisation qui pose problème.

Bonsoir,
Le problème, c’est que je ne sais pas comment corriger ces erreurs.
Une piste pour celle se trouvant en page d’accueil ?
Error loading the view strategy:

TypeError: Cannot read properties of undefined (reading ‹ toUpperCase ›)
Merci

Non, désolé.

Partage ton fichier configuration.yaml, en évitant les informations confidentielles.
Et essaie de supprimer le blueprint

Bjr,
L’erreur en page d’accueil venait du faut qu’il n’y avait encore aucun dashboard affiché, je crois.
Mon fichier configuration.yaml

# Custom Panels
panel_custom: 
  - name: Supervisor
    url_path: hassio/system
    sidebar_title: Supervisor
    sidebar_icon: mdi:home-assistant 
    module_url: /local/panel-redirect.js 
    # Example configuration.yaml entry to enable the cloud component
cloud:
eufy:
  username: xxxxxxxxxxxxxxxxxxx@gmail.com
  password: XXXXX
automation tutorial:
  use_blueprint:
    path: motion_light_tutorial.yaml
    input:
      motion_sensor: binary_sensor.kitchen
      target_light:
        entity_id: light.kitchen

Encore merci pour l’assistance.

Remplace le contenu par ça :

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Custom Panels
panel_custom: 
  - name: Supervisor
    url_path: hassio/system
    sidebar_title: Supervisor
    sidebar_icon: mdi:home-assistant 
    module_url: /local/panel-redirect.js 
eufy:
  username: xxxxxxxxxxxxxxxxxxxxx@gmail.com
  password: XXXXX

Et ensuite redémarre HA

Pour le tutoriel de l’automation, je te conseille de suivre ça (via l’interface):

Ca avance !
Un sincère merci pour l’assistance …
Je joins mon fichier log

2023-02-03 11:10:44.507 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration meross_lan 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
2023-02-03 11:10:44.509 WARNING (SyncWorker_2) [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
2023-02-03 11:10:59.364 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.prise_chaudiere_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-03 11:10:59.387 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.prise_projecteur_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-03 11:10:59.735 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.prise_lampe_bleue_signal_strength (<class 'custom_components.meross_lan.sensor.MLSensor'>) is using native unit of measurement '%' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
2023-02-03 11:11:02.247 WARNING (MainThread) [custom_components.meross_lan] MerossDevice(2101076334675690839048e1e9448b9c) error in async_http_request: Cannot connect to host 10.128.1.144:80 ssl:default [Connect call failed ('10.128.1.144', 80)]

Pour les automatismes, on verra après, je crois qu’il faut être patient …
Est-il possible de faire l’intégration d’une caméra Eufy ?

Tu n’as plus d’erreurs dans tes logs. :partying_face:
Les warnings n’ont pas forcément de solutions, à toi de voir avec les composants que tu as installé.

Pour Eufy, tu devrais avoir l’intégration si tu utilise le bon username/password.
Vérifie dans Paramètres > Appareils et services.

Mais tu devrais peut-être choisir une autre marque: