Input_datetime not working as in the official example

I’m following step by step the official example on how to use input_datetime as triggers for automations, however I am facing some issues.

This is the example

# Example configuration.yaml entry
# Turns on bedroom light at the time specified.
automation:
  trigger:
    platform: time
    at: input_datetime.bedroom_alarm_clock_time
  action:
    service: light.turn_on
    entity_id: light.bedroom

When I try to enter this trigger in my automation interface, I get the following error:
Message malformed: Invalid time specified: input_datetime.morning_sun @ data[‘trigger’][0][‘at’][0]

What is the correct way to create a trigger based on an input_datetime?

Thanks!

Are you on Home Assistant 0.115?

If not, you’ll need to upgrade to get that feature. The documentation always reflects the latest release of Home Assistant

Thanks Frenck!!!