Problème automatisation alerte changement ip

Salut à tous depuis quelques version de HA j’ai cette erreur quand je veux l’exécuter.

Logger: homeassistant.components.automation.ip_change
Source: components/automation/init.py:514
Integration: Automatisation (documentation, issues)
First occurred: 2 février 2022, 23:51:49 (2 occurrences)
Last logged: 2 février 2022, 23:55:50

Error while executing automation automation.ip_change: Error rendering data template: UndefinedError: ‹ dict object › has no attribute ‹ from_state ›

alias: IP change
trigger:
  - platform: state
    entity_id: sensor.myip
action:
  - service: notify.smtp
    data:
      message: >-
        Public IP changed from {{ trigger.from_state.state }} to {{
        trigger.to_state.state }}
      title: Home Assistant Alerte
initial_state: true

Tu peux mettre au point/vérifier en suivant cet exemple :

https://forum.hacf.fr/t/automations-remonter-en-notification-le-nom-du-declencheur-ou-dune-valeur/4308/3?u=clemalex

Pour modifier l’état, passe dans les outils de développements.

1 « J'aime »