It's hard to diagnose with only part of the picture, see item 11:
And post the entirety of your YAML. It could be that your value template is the problem. I can tell you that I did a quick test to see if there is a bug somewhere and this ran perfectly fine:
alias: "Automation Test"
description: ""
trigger:
- platform: state
entity_id:
- light.greatroom_hallway
to: "on"
condition: []
action:
- repeat:
count: 3
sequence:
- service: persistent_notification.create
data:
message: TEST
title: TEST
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
mode: single