“Toggle” is the wrong trigger. From the Z2M page you linked to:
Value can be found in the published state on the
actionproperty
The possible values are:
toggle,brightness_up_click,brightness_down_click,brightness_up_hold,brightness_up_release,brightness_down_hold,brightness_down_release,toggle_hold,arrow_left_click,arrow_left_hold,arrow_left_release,arrow_right_click,arrow_right_hold,arrow_right_release.