Switch platform and areas

I configured a light switch with the following:

light:
  - platform: switch
    name: Bed Light
    entity_id: switch.bed_light

Now the “Bed Light” shows up on a card by itself and not in the “Bedroom” card. It should be a single light in my opinion.

Is there a way I can fix this?

You now have two entities for this light, once the switch.bed_light and once the light.bed_light.
You probably configured a group somewhere called group.bedroom, right? In this group remove the switch.bed_light and instead add light.bed_light.

In this setup I am not using groups, only areas. Also tried to find the “Bed Light” on the entities page, but it’s not there.

The light you created is a virtual device, therefore it will not show up on the entities page. You should see the device under Developer Tools -> States. You can’t assign virtual devices to areas, only physical devices.

Thank you @Burningstone !

I removed the area and created a group:

bedroom:
  name: Bedroom
  entities:
    - light.bed_light
    - light.bedroom_light

after, I hid the the switch from the UI and the card now shows up like expected, with two lights.