posted this issue in the GitHub repo 2 weeks ago, unfortunately no-one had a look yet, so please allow me to post here too:
according to https://companion.home-assistant.io/docs/notifications/notification-commands we can now clear the badge using message: clear_badge
.
entering clear_badge
in the message field doesn’t have any effect though, and we can not enter in the data field either, because the message field would be empty, and that is not accepted, so we can not push the call service button.
cant we reset the badge at all in the service page? Ive also tried the old format, but that doesnt work either.
from the backend this should work (just found out it doesnt…):
action:
service: notify.mobile_app_calltheboss
data:
message: clear_badge
in a script, and this in the frontend doesnt:
migrating from:
- alias: iOS - Dismiss
id: iOS - Dismiss
trigger:
platform: event
event_type: ios.notification_action_fired
event_data:
actionName: DISMISS
condition: []
action:
service: notify.mobile_app_calltheboss
data:
title: iOS notification
message: iOS - Dismissed, badge reset
data:
push:
badge: 0
to
- alias: Mobile app - Dismiss
id: Mobile app - Dismiss
trigger:
platform: event
event_type: mobile_app_notification_action
event_data:
action: DISMISS
## condition:
## >
## {{trigger.event.data.action == 'DISMISS'}}
action:
service: notify.mobile_app_calltheboss
data:
message: clear_badge
so why doesnt the new format does its job yet. No error in the log, simply no reset badge.