Zigbee2MQTT - Philips Hue Tap Dial Switch by SmartHomeGeeks.io

Hi @fleeman

If i use your new Version of the automation, based on mqtt and disable the homeassistant legacy_triggers (preparation for z2m 2.0), I got the following warning after a restart of HA in the HA log (for example):

Logger: homeassistant.helpers.template
Quelle: helpers/template.py:2748

Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ trigger.payload_json.action is match('^button_[1-4]_press$') }}'
Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ trigger.payload_json.action is match('button_[1-4]_press_release') and states(counter_var) > '1' }}'
Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ trigger.payload_json.action is match('button_[1-4]_press_release') }}'
Template variable warning: 'dict object' has no attribute 'action' when rendering '{{ states(input_text_var) == '3' and trigger.payload_json.action is match('^dial_rotate_') }}'

It affects all template lines that contain trigger.payload_json.action

Edit:

Another user had a good tip, with the addition the warning messages no longer appear.

1 Like