Automatisations désactivées

Bonjour à tous,

Mes automatisations sont toutes désactivées, est-ce déjà arrivé a quelqu’un ?
Est-ce parce que j’ai installé « Node-RED »

System Health

version core-2021.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.7
os_name Linux
os_version 5.4.99
arch x86_64
timezone Europe/Paris
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4966
Installed Version 1.11.3
Stage running
Available Repositories 748
Installed Repositories 9
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Hass.io
host_os Home Assistant OS 5.12
update_channel stable
supervisor_version supervisor-2021.03.4
docker_version 19.03.13
disk_total 30.8 GB
disk_used 8.5 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.0.2), Samba share (9.3.0), Check Home Assistant configuration (3.6.0), File editor (5.2.0), ESPHome (1.16.2), Home Panel (2.1.0), Mosquitto broker (5.1.1), Node-RED (8.1.2)
Lovelace
dashboards 1
resources 4
views 1
mode storage
Merci à tous
version core-2021.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.7
os_name Linux
os_version 5.4.99
arch x86_64
timezone Europe/Paris
Home Assistant Community Store
GitHub API ok
Github API Calls Remaining 4966
Installed Version 1.11.3
Stage running
Available Repositories 748
Installed Repositories 9
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Hass.io
host_os Home Assistant OS 5.12
update_channel stable
supervisor_version supervisor-2021.03.4
docker_version 19.03.13
disk_total 30.8 GB
disk_used 8.5 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Terminal & SSH (9.0.2), Samba share (9.3.0), Check Home Assistant configuration (3.6.0), File editor (5.2.0), ESPHome (1.16.2), Home Panel (2.1.0), Mosquitto broker (5.1.1), Node-RED (8.1.2)
Lovelace
dashboards 1
resources 4
views 1
mode storage

Pour moi, elles ne sont pas désactivées mais indisponible…

Problème de chargement de la configuration ?

Tu fais tes automatisations depuis l’interface graphique ?

Le fichier automations.yaml est t’il toujours présent ?

Bonjour, je fait en éditant le fichier la plus par du temps quand je teste la configuration je n’est pas d’erreurs pourtant.

- id: mode_presence
  alias: Mode presence
  description: Procède à quelques actions lorsque personne à la maison
  trigger:
  - platform: state
    entity_id: group.all_users
    from: not_home
    to: home
  action:
  - service: notify.notification_freesms
    data:
      message: Verification Apres depart
      title: Custom subject
  - service: toggle.bouton_relais_1
  mode: single
- id: '1611096414390'
  alias: yaourtière
  description: Eteint la yaourtière après 12 h de fonctionnement
  trigger:
  - platform: device
    type: turned_on
    device_id: 8552a3cfa0d4bb0453498211501a695a
    entity_id: switch.sonoff_basic_relay
    domain: switch
  - service: notify.notification_freesms
    data:
      message: Yaourtiere allumée
      title: Custom subject
    for:
      hours: 12
      minutes: 0
      seconds: 0
  condition: []
  action:
  - type: turn_off
    device_id: 8552a3cfa0d4bb0453498211501a695a
    entity_id: switch.sonoff_basic_relay
    domain: switch
  - service: notify.notification_freesms
    data:
      message: Yaourtiere eteinte
      title: Custom subject
  mode: single
- id: '1613075637211'
  alias: Zone Notification
  description: Arrivée de Valérie à la Maison
  use_blueprint:
    path: homeassistant/notify_leaving_zone.yaml
    input:
      person_entity: person.valerie
      zone_entity: zone.home
      notify_device: dfc9afd20eed959db4351ef32dfd7f10
  mode: single
- id: '123456987'
  alias: Allumage automatique garage
  description: allumage automatique de la lumiere du garage
  trigger:
  - platform: state
    entity_id: binary_sensor.garage_detection
    to: 'on'
  condition: []
  action:
    service: switch.turn_on
    entity_id: switch.interrupteur_1_relais
  mode: single
- id: '1234569878'
  alias: Extinction automatique garage
  description: Extinction automatique de la lumiere du garage
  trigger:
  - platform: state
    entity_id: binary_sensor.garage_detection
    to: 'off'
    for: 00:10:00
  condition: []
  action:
    service: switch.turn_off
    entity_id: switch.interrupteur_1_relais
  mode: single
- id: '1615014155098'
  alias: relais portail
  description: active le relais du garage 2 secondes
  trigger:
  - platform: state
    entity_id: switch.relais_portail
  condition: []
  action:
  - wait_template: 2s
    continue_on_timeout: true
  - type: turn_off
    device_id: f5e45efff9282be7753234fa9c47959b
    entity_id: switch.relais_portail
    domain: switch
  mode: single

image

As tu toujours en face de la clé automation: dans le fichier de configuration configuration.yaml :

automation: !include automations.yaml

?

bonne remarque et après vérification, j’ai toujours

`
  group: !include groups.yaml
  automation: !include automations.yaml
  script: !include scripts.yaml
  scene: !include scenes.yaml
`

Que dit le log home-assistant.log ?
As tu redémarré le serveur ?

Je ne pense pas que ce sois lié…

Bonjour,

Oui bien-sur, j’ai redémarré plusieurs fois, mais rien à faire je ne comprend pas trop pourquoi !
J’ai effacé le contenu du fichier automations.yaml pour repartir « propre », mais mon interface affiche quand même les anciennes automatisations alors que le fichier et vide et je n’arrive pas à les enlever.

Chercher l’erreur ???
En parlant d’erreur tu m’a parlé du fichier de log, voici la séquence qui se répète :

2021-03-07 23:33:11 WARNING (MainThread) [homeassistant.loader] You are using a custom integration weback 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
2021-03-07 23:33:11 WARNING (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'weback'. This will not be allowed in a future version of Home Assistant. Please report this to the maintainer of 'weback'
2021-03-07 23:33:11 WARNING (MainThread) [homeassistant.loader] You are using 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
2021-03-07 23:34:13 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: upnp
2021-03-07 23:34:17 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Freebox Server' for upnp integration not ready yet. Retrying in background
2021-03-07 23:34:18 ERROR (MainThread) [homeassistant.components.upnp] Unexpected error fetching Freebox Serveur cheznous data: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 139, in _async_update_data
    return await self.update_method()
  File "/usr/src/homeassistant/homeassistant/components/upnp/device.py", line 156, in async_get_traffic_data
    values = await asyncio.gather(
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/profiles/igd.py", line 89, in async_get_total_bytes_received
    result = await action.async_call()
  File "/usr/local/lib/python3.8/site-packages/async_upnp_client/client.py", line 519, in async_call
    raise UpnpError('Error during async_call(), status: %s, body: %s' %
async_upnp_client.client.UpnpError: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>
2021-03-07 23:34:18 ERROR (MainThread) [homeassistant.components.upnp] Unexpected error fetching Freebox Serveur cheznous data: Error during async_call(), status: 500, body: <?xml version="1.0"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><s:Fault><faultcode>s:Client</faultcode><faultstring>UPnPError</faultstring><detail><UPnPError xmlns="urn:schemas-upnp-org:control-1-0"><errorCode>401</errorCode><errorDescription>Invalid Action</errorDescription></UPnPError></detail></s:Fault></s:Body></s:Envelope>

Quand tu cliques sur le i, tu n’as pas le bouton supprimer l’entité ?

m…e, depuis 2 jours je m’entêté a cliquer sur la croix à droite, bon en effet j’ai le bouton.
Maintenant que c’est propre je vais recopier une par une mes automatisations que j’avais sauvegardé.
Et je verrai bien où ca cloche.

Merci

C’est bizard car que je créé avec l’interface où en éditant le fichier manuellement les automatisations n’apparaissent plus ? pourtant l’interface écrit bien dans le fichier.
J’ai rechargé les automatisations .
J’ai redémarré homeazssistant.

Rien y fait !! et je ne maitrise pas encore assez bien Node-red pour ne pas passer par les automatisations pour le moment.

Renomme ta base de donnée et redémarre pour voir si c’est elle qui est corrompue…

Voila ! C’est fait à première vu rien n’a changé, tout à l’air de fonctionner.
Par contre il a recréé la base , beaucoup plus petite .

toujours pas d’automatisation

HA la crée systématiquement si elle n’existe pas, tu as simplement perdue ton historique.

Si tu ne vois pas d’amélioration dans ton problème, tu peux restaurer l’ancienne…

Ce n’est pas une croix mais le symbole d’édition de l’automatisation :wink:

As-tu vidé le cache du navigateur (CTRL-F5) ou essayé depuis une session privée ?

non j’essai de suite

pas mieux !!!c’est un truc de fou, on dirait qu’il ne veux pas lire ce fichier et pourtant il écrit bien dedans

Pour s’assurer que ce n’est pas un soucis de configuration, essaies ceci :

  1. Tu renommes automations.yaml en automations_gui.yaml
  2. Tu ajoutes au fichier de configuration :
automation gui: !include automations_gui.yaml
  1. Tu redémarres et retournes dans les automatisations pour vérifier

Le fichier de configuration devrait ressembler à ceci :

  group: !include groups.yaml
  automation: !include automations.yaml
  automation gui: !include automations_gui.yaml
  script: !include scripts.yaml
  scene: !include scenes.yaml

Bonjour,

Ok c’est fait , déjà bonne nouvelle , quand je fait ça comme ça, la vérification de la config rouspète un peu car le fichier automations.yaml n’existe pas il ne peux pas la lire ( ce qui tente a prouver qu’il chercher belle et bien a le lire) .
Toujours pas d’automatisations ?

Il ne manquerait pas une ou plusieurs lignes obligatoires ?? que j’aurais effacé sans faire attention. dans mon fichier il y a juste ça pour le moment :

- id: '1611096414390'
  alias: yaourtière
  description: Eteint la yaourtière après 13 h de fonctionnement
  trigger:
  - platform: device
    type: turned_on
    device_id: 8552a3cfa0d4bb0453498211501a695a
    entity_id: switch.sonoff_basic_relay
    domain: switch
  - service: notify.notification_freesms
    data:
      message: Yaourtiere allumée
      title: Custom subject
    for:
      hours: 12
      minutes: 0
      seconds: 0
  condition: []
  action:
  - type: turn_off
    device_id: 8552a3cfa0d4bb0453498211501a695a
    entity_id: switch.sonoff_basic_relay
    domain: switch
  - service: notify.notification_freesms
    data:
      message: Yaourtiere eteinte
      title: Custom subject
  mode: single