Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISSUE: Notifications not working after KeyMaster update - Error rendering data template #380

Open
Frazior opened this issue Jul 13, 2024 · 1 comment

Comments

@Frazior
Copy link

Frazior commented Jul 13, 2024

After an update in May 3(so 0.91-0.94) notifications from a child lock automation (keymaster_back_door Lock Notifications) stopped working. When I run a trace on the automation I get the following:

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

service: script.keymaster_back_door_manual_notify
data_template:
  title: back_door
  message: >-
    {{ trigger.event.data.action_text }} {% if trigger.event.data.code_slot > 0
    %}({{ trigger.event.data.code_slot_name }}){% endif %}

I did google the error but and found info but am completely lost about what it means. Any help is greatly appreciated.

Environment:

  • OS: HassOS
  • Type of system that HA is running on: NUC
  • Home Assistant version: [e.g. 0.105.5]
  • Hassio Core- 2024.7.2, Supervisor 2024.06.2, OS 12.4, Frontend 20240710.0
  • Component version: 0.0.98
  • Z-Wave integration name: zwave_js
  • Lock make and model: Yale Assure 2 YRD450-ZW3 (Qty 2)
@Frazior
Copy link
Author

Frazior commented Jul 13, 2024

Here are some add'l log entreies -

  Logger: homeassistant.helpers.template
  Source: helpers/template.py:2652
  First occurred: 1:07:07 PM (1 occurrences)
  Last logged: 1:07:07 PM
  
  Template variable error: 'dict object' has no attribute 'event' when rendering '{{ trigger.event.data.action_text }} {% if trigger.event.data.code_slot > 0 %}({{ trigger.event.data.code_slot_name }}){% endif %}'
  
  Logger: homeassistant.components.automation.keymaster_back_door_lock_notifications
  Source: helpers/script.py:2002
  integration: Automation (documentation, issues)
  First occurred: 1:07:07 PM (1 occurrences)
  Last logged: 1:07:07 PM
  
  keymaster_back_door Lock Notifications: Error executing script. Error for call_service at pos 1: Error rendering data template: UndefinedError: 'dict object' has no attribute 'event'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant