Alert, clear_notification and AndroidTV notifications

Hello everybody!

I have a little problem with alerts. I want to be able to clear the notifications I send with an alert.

That works great with the companion app, messages get replaced or cleared.

On AndroidTV these messages work nice as well, but here they’re only shown for a few seconds, so don’t even need a done_message. Unfortunately, the `done_message: clear_notification’, that is only meant for the companion app gets send to the AndroidTV Notifications as well, and “clear_notification” is shown as text.

This is how I do it now:

# config/packages/alerts.yaml
input_boolean:
  lampe_berger_on_fire_notify:
    name: Lampe Berger is on fire
    icon: mdi:alert
  lampe_berger_on_fire:
    name: Lampe Berger on fire
    icon: mdi:fire

template:
  - binary_sensor:
      - name: lampe_berger_on_fire_alert_active
        state: "{{ is_state('input_boolean.lampe_berger_on_fire', 'on') and is_state('input_boolean.lampe_berger_on_fire_notify', 'on') }}"
        delay_on: '00:20:00'

alert:
  lampe_berger_on_fire_critical_alert_active:
    name: lampe_berger_on_fire_critical_alert_active
    entity_id: binary_sensor.lampe_berger_on_fire_alert_active
    state: 'on'
    repeat: 
      - 3
    can_acknowledge: false
    skip_first: false
    title: "Critical warning"
    message: "Lampe Berger is still on!"
    notifiers:
      - NOTIFY_critical
    data:
      tag: lampe_berger
    done_message: clear_notification

notify:
  - name: NOTIFY_critical
    platform: group
    services:
      - service: mobile_app_s
      - service: mobile_app_p
      - service: notification_tv
        data:
          data:
            duration: 10
            fontsize: medium
            position: center
            color: grey
            transparency: 0%

Does anybody know a way around that? How can I set apart the data that gets send to the different notifiers? Or can I send the done_message only to specific notifiers? Is overwriting the done message possible?

Any input is much appreciated, thanks! :slight_smile: