tv_back_light is the name of the light component, not the ID.
If I set entity_id: tv_back_light, for the component, the scene doesn’t work.
If I set name: tv_back_light, it works…
I think you don’t understand entity id’s and their relationship in HA.
an entity id is made up from the object_id combined with the domain. If you have a light (aka the light domain) with an object_id of tv_back_light, the entity_id would be light.tv_back_light.
This has nothing to do with the name. The name is an attribute of the state object that is shown in the user interface for the user.
- name: Hallway Night Light
entities:
light.lifx_hallway: # <---- an entity_id with friendly name 'Hallway Light'
state: on
brightness: 32
color_name: red
Edit: actually your description and originally posted code dont match. You nearly had it right, the state was a little messed up for the first entity. Try this
remove the space and number in light 1, yaml doesn’t work with spaces. Unless you are using packages. Are you using packages?
Also, object_id isn’t a valid attribute for MQTT lights. The object ID is pulled from the name you give it under the name attribute. So if you name it “Light 1”, it will create light_1 as the object_id. This name to object_id functionality does not work with all components by the way. Every component is different and it depends on the configuration for some. Some components create a default object_id that has no relation to the name.