Hello,
I would like to make phone TTS notifications optional in my blueprint. Is there a way to remove "tts_text" from action arguments if an input was set to false ?
I've tried making the value to "" or false but a tts is played on my phone, asking for a value
And I know that I could simply use an if and have two services with the same content except the tts, but since I have a lot of notification calls in my blueprint, it would feel quite bloated...
Here is the code example :
- action: notify.mobile_app_<your_device_id_here>
data:
message: TTS
data:
ttl: 0
priority: high
media_stream: alarm_stream
tts_text: "How to remove this line if an input is set to false ??"
Thanks for reading !