Change input_boolean at certain time

What is the syntax for updating an input boolean from an automation rule? Something like this:

automation:
  trigger:
    platform: time
    hours: 16:00
  action:
    input_boolean.school_day = "on"

I recommend to take a look at actions

By the way, your automation should look like this:

automation:
- alias: Turn on school day
  trigger:
    platform: time
    after: "16:00"
  action:
    service: homeassistant.turn_on
    entity_id: input_boolean.school_day

Thanks, this is what I was looking for. I had missed the documentation on “homeassistant.turn_on”.

Follow-up question. Is there a way I can do the same thing with an “Input Select”? It does not look like “homeassistant.turn_on” would work, since the values are not on/off.

I think you can use:

action:
  service: input_select.select_option
  data:
    entity_id: input_select.your_input_select
    option: "your option"

Thanks, that worked as well. Could not find this anywhere in the documentation.