Offical lovelace example won't work

Hi,
I try to create a lovelace card like the example here:

Example


type: entities
title: Entities card sample
show_header_toggle: true
entities:
  - type: call-service
    icon: mdi:power
    name: Bed light
    action_name: Toggle light
    service: light.toggle
    service_data:
      entity_id: light.bed_light

But the lovelace code editor told me that the key entities.0.entity is missing so That I can not save the code.

What am I missing? It is an example from the offical home assistant website…

Thank you

The button configuration causes the error(s); think, the example has been forgotten to adjust.
Some sections above** you’ll find a working example:


type: entities
entities:
  - entity: light.office_ceiling
  - entity: light.dining_ceiling
  - type: divider
  - type: buttons
    entities:
      - entity: light.office_ceiling
        name: Office Ceiling
      - entity: light.dining_ceiling
        name: Dining Ceiling

** https://www.home-assistant.io/lovelace/entities/#buttons-row

Sorry, I’m to stupid to create a working example like this:

Can anybody give me a working example?

You aren’t too stupid. I’ve just tested it, the code only works in yaml-mode, not in standard UI. Strange.