Home Assistant Add-on: rtl_433 with MQTT auto discovery

Found out how to do this on my own. It isn’t auto discovered, but it otherwise works well. The template is there to prevent the automation from being triggered upon restart or automations refresh.

automation:
- alias: MQTT Button Test
  trigger:
    - platform: mqtt
      topic: "rtl_433/9b13b3f4-rtl433/devices/Akhan-100F14/258848/time"
      payload: "on"
      value_template: >
        {% if (now().today() - strptime(value, '%Y-%m-%d %H:%M:%S')) < timedelta(  seconds = 2 ) %}
          on
        {% else %}
          off
        {% endif %}
  action:
    - service: notify.pushover
      data_template:
        message: 'Button Test'
2 Likes