Enable templating in the discovery_id field

The following does not support templates making it impossible to use in a blueprint

trigger:
  - platform: device
    domain: mqtt
    device_id: 159f1b5a4d1e1a848b14e72e0698ccf7
    type: action
    subtype: button_1_press_release
    discovery_id: 0x001788010d7d3cac action_button_1_press_release <----

Please enable the discovery_id to be set using a template!

Device triggers do not support templates.

Use an mqtt event trigger.

And you should avoid using device ids. See: Why and how to avoid device_ids in automations and scripts