How to set up multiple World Clock components

Hi.

I am trying to set up multiple world clocks as such:

sensor:
  - platform: worldclock
    name: London Time
    time_zone: Europe/London

sensor:
  - platform: worldclock
    name: Toronto Time
    time_zone: America/Toronto

sensor:
  - platform: worldclock
    name: LA Time
    time_zone: America/Los_Angeles

However when I do this I only see LA Time shown as an entity.

What am I doing wrong? How can I get multiple world clocks set up?

Thanks.

You don’t need “sensor:” before each sensor, instead all sensors should be inside one “sensor:”
Try like this:

sensor:
  - platform: worldclock
    name: London Time
    time_zone: Europe/London
  - platform: worldclock
    name: Toronto Time
    time_zone: America/Toronto
  - platform: worldclock
    name: LA Time
    time_zone: America/Los_Angeles
1 Like

Thanks, that works, but for some reason it broke some of my other sensors. Do you know why this could be?

Probably you have them in their own “sensor:” section. All sensors need to be under the same “sensor:” section, you can’t have multiple “sensor:”.

1 Like

That’s perfect, thanks so much for the help! :)))