This does not work for me: I am running 2021.3.4 with ZHA integration. And I keep getting the following output in my configuration log:
Logger: homeassistant.components.automation.zoe_hue_dimmer_switch
Source: components/automation/init.py:416
Integration: Automation (documentation, issues)
First occurred: 3:23:14 PM (1 occurrences)
Last logged: 3:23:14 PM
Error while executing automation automation.zoe_hue_dimmer_switch: UndefinedError: ‘trigger’ is undefined
I properly setup the input entity. and I do see the last run is being invoked.
As a reference I just tried this one and it works like a charm:
Your plugin seems more configurable so if you fix I’ll try it again.