I overlooked to mention that if the goal is simply to turn on something at 11:00:00 and turn it off at 15:00:00 then you don’t need to use choose. It can be done like this:
- alias: Example 2
id: ex_2
trigger:
- platform: time
at:
- '11:00:00'
- '15:00:00'
action:
- service: "light.turn_{{ 'on' if trigger.now.hour == 11 else 'off' }}"
target:
entity_id: light.whatever
You do need to use choose if, for example, the service call at 11:00:00 is not the same as at 15:00:00.