Blueprint fails to put action section in automations.yaml

I get the following in the log file after trying to create an automation from a custom blueprint. The error is:
2022-12-18 11:57:45.079 ERROR (MainThread) [homeassistant.components.automation] Blueprint Aquarium light controller for dimming switch generated invalid automation with inputs OrderedDict([(‘startTimeOfDay’, ‘08:00:00’), (‘lightEntity’, ‘switch.fish_light’), (‘endTimeOfDay’, ‘16:00:00’), (‘rampUpDownDuration’, 45), (‘startBrightness’, 13), (‘endBrightness’, 84)]): Unable to determine action @ data[‘action’][0]. Got None
Unable to determine action @ data[‘action’][2]. Got None.

The automation is in the automations.yaml file but is not accessible from the UI. From the error above, it seems my indentations are screwed up, but the file verifies in the online verifier. What simple thing needs changing! Here’s the blueprint:

`
blueprint:
name: Aquarium light controller for dimming switch
description: ‘A light scheduler which raises and lowers the lights to simulate sunrise and sunset.’
domain: automation

input:
lightEntity:
name: Wake-up light entity
description: The light to control.
selector:
entity:
domain: switch
multiple: false
startTimeOfDay:
name: Begin ramping up at this time
description: Start turning on the light.
default: ‘7:00:00’
selector:
time: {}
endTimeOfDay:
name: Finish ramping down by this time
description: Light is completely off by this time.
default: ‘15:00:00’
selector:
time: {}
rampUpDownDuration:
name: Ramp up and down time period in minutes
description: The ramping up starts at Sunrise time to reach 100% brightness at periods end. The ramping down finishes reaching 0% brightness by Sunset time.
default: 30
selector:
number:
min: 5.0
max: 100.0
step: 5.0
unit_of_measurement: min
mode: slider
startBrightness:
name: Minimum brightness
description: The brightness to start with. Some lights ignore very low values
and may turn on with full brightness instead!
default: 1
selector:
number:
min: 1.0
max: 100.0
step: 1.0
mode: slider
endBrightness:
name: Maximum brightness
description: The brightness will be transitioned from the minimum to the configured
value.
default: 100
selector:
number:
min: 5.0
max: 100.0
step: 1.0
mode: slider

variables:
lightEntity: !input lightEntity
rampUpDownDuration: !input rampUpDownDuration
startBrightness: !input startBrightness
endBrightness: !input endBrightness
startDimmingTOD: ‘{{ endTimeOfDay - timedelta(minutes=rampUpDownDuration) }}’
range_brightness: 100
rampDurationSeconds: ‘{{float(rampUpDownDuration) * 60}}’
secondsPerBrightnessChange: ‘{{float(rampDurationSeconds) / float(range_brightness)}}’

mode: single
max_exceeded: silent

trigger:

  • platform: time
    at: !input startTimeOfDay

condition: []

action:

  • type: turn_on
    entity_id: switch.lightEntity
    domain: switch
  • delay: ‘{{rampDurationSeconds}}’
  • type: turn_off
    entity_id: switch.lightEntity
    domain: switch

- service: switch.turn_on

target: !input lightEntity

`