Entities missing from group

Hi! I’m new to HA and I’m trying to group some of my entities. I want 3 entities grouped together but I only managed to get 2 in the same group en one alone. This is part of my configuration:

binary_sensor: 
  - platform: template 
    sensors:
      cam_foscam_black_motion_sensor:
        value_template: "{{ states.input_boolean.cam_foscam_black_motion.state == 'on' }}"
        sensor_class: motion
        friendly_name: "Bedroom motion sensor"

switch larm_motion_foscam_black:
  - platform: rest
    resource: http://localhost:8686/outcommand.php?entity=switch.larm_motion_foscam_black
    name: 'Toogle bedroom motion sensor'
    is_on_template: '{{ value_json.state == "ON" }}'

input_boolean:
  cam_foscam_black_motion:
    name: 'Virtual motion sensor bedroom'
    initial: off

group:
  cam_foscam_black_group:
    name: Kamera (Svart)
    entities: switch.larm_motion_foscam_black, input_boolean.cam_foscam_black_motion, binary_sensor.cam_foscam_black_motion_sensor

And this is how it looks:

Any suggestions?

Doesn’t look like that switch (larm_motion_foscam_black) is set up correctly, if this is a paste from your config.

Ah, of course! Do you know how it should be written? I can’t figure out how to set the entity id of the switch.

If you look in the developer toos / states - is this really the entry for your entity?
switch.larm_motion_foscam_black

Or do you see a different name there?

No, there is a different name there: switch.toggle_bedroom_motion_sensor
Looks like it takes the name and replaces spaces with underscores to be more ‘variable name’ friendly. Tried to set a friendly name but it didn’t work. As long as I know that this is the way it works I can manage it, but it would be nice to be able to set one display name and one id. Thank you for the help!

switch:
  - platform: rest
    name: larm_motion_foscam_black

You can set a friendly name in your customize: block (which is a child of home_assistant:)

Thank you! That was exactly what i wanted.