Notify with percentage symbol isn't working

Hi guys,

I’m trying to sent a notification with the battery level of my smartwatch to my phone. I’m using the Join component. If I add the percentage symbol in the message of the notification it doesn’t work. Without the symbol it works perfectly.

My config:

- id: '(automation_id)'
  alias: Notify Phone for low Battery on Smartwatch
  - at: '20:00'
    platform: time
  - below: '25'
    condition: numeric_state
    entity_id: sensor.smartwatchbat
  - data:
      message: Charge it!
      title: 'Smartwatch Battery {{ states.sensor.smartwatchbat.state }} %'
1 Like

I can say with certainty that the automation you posted doesn’t ‘work perfectly’ regardless of the percentage symbol as you’re using a template under data, when you need data_template.

You’ll probably have to escape the percentage sign with a slash so the system knows you want it and it’s not an erroneous special character.

use data_template instead of data

1 Like