Template help with disk_use_percent attribute

Hi @mchauhan,

that’s how I set up my automation/notification - seems to work fine:

- alias: Send message on low Pi3 space
  trigger:
    platform: numeric_state
    entity_id: sensor.disk_use_percent_
    above: 75
    for:
      minutes: 15
  action:
    - service: notify.mypushbullet
      data_template:
        title: "Home Assistant says:"
        message: 'Low space on Pi3 @{{now().strftime("%H:%M")}}h!'
    - service: persistent_notification.create
      data_template:
        title: "SD Card Space Warning!"
        message: 'Low space on Pi3 @{{now().strftime("%H:%M")}}h!'

I’d say, try it without the value template, doesn’t seem to be necessary for my setup.

1 Like