Skip to content

UndefinedError: 'dict object' has no attribute 'event' with Automation with V2.9.1 #31

Description

@pbenaim

In first time thanks a lot ( Merci beaucoup :-) ) for this intégration.

Maybe I missing something, Lovelace Card work well but I can't make one automation working :-(

I make one automation like your example: ( https://github.com/yohaybn/HA_aliexpress_package_tracker_sensor?tab=readme-ov-file#automation-example--notify-on-aliexpress-package-update

alias: AliExpress Package Update
description: ""
triggers:
  - trigger: event
    event_type: aliexpress_package_data_updated
actions:
  - data:
      title: AliExpress Package Update
      message: >-
        Package {{ trigger.event.data.entity_id }} has been updated.
        Old State: {{ trigger.event.data.old_state | default('Unknown') }}. 
        New State: {{ trigger.event.data.new_state | default('Unknown') }}.
    action: notify.mobile_app_my_phone
mode: single

But when I run it manualy, I have this error :

Erreur : Error rendering data template: UndefinedError: 'dict object' has no attribute 'event'

Does anyone have any ideas, or even a solution, to solve this problem ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions