I have notifications that I may want to be critical based on whether, for example, I am home or not. I can do this by copying the notification service call twice into an IF/THEN, with different data/push/sound info, but it would be nice to not have to do this - is this possible? I would think that this yaml should work but it does not
service: notify.mobile_app_
data:
title: Garage activity TEST
message: TEST message
data:
tag: garage-notifications-test ##tagging doesnt work when critical is sent - thats ok and not the issue
push:
sound:
name: "default"
volume: 1.0
critical: {{ 0 if is_state('input_boolean.critical_notifier', 'off') else 1 }}