I’m having a very weird issue. I have a bunch of Zooz light switches that are recognized and in Home Assistant. I’ve created a lights.yaml file to make lights out of those switches. It’s worked flawlessly for about 20 switches. The last four don’t create the coordianted lights, instead it creates “light.light”, “light.light_1”, etc. Sure I’m doing something stupid, but I can’t find the error.
Excerpt from lights.yaml:
BACK OFFICE
- platform: switch
entity_id: switch.fan_and_light_switch_back_office
- platform: switch
entity_id: switch.closet_light_back_office
# MASTER BATHROOM
- platform: switch
entity_id: switch.left_vanity_lights_master_bathroom
- platform: switch
entity_id: switch.right_vanity_lights_master_bathroom
Everything above the Master Bathroom switches create the correct lights. The three master bathroom switches create the generic lights as I mentioned above. I’ve verified the entity_id’s are correct:
creates:
Anyone see what I’m doing wrong? Pulling my hair out.
Thanks!
Jim
According to the documentation, you need to assign a name
to your light.
name string (optional, default: Light Switch)
Perhaps you could show us one of the lights that work as you expect.
Thanks for your reply. I should have mentioned that I am setting the names in my customize.yaml file. Here are the examples, the “Master Bedroom” lines create the associated lights correctly. The “Master Bathroom” lines create the “light_1”, "light_2) incorrectly.
lights.yaml
# MASTER BEDROOM
- platform: switch
entity_id: switch.overhead_lights_scene_controller_master_bedroom
- platform: switch
entity_id: switch.fan_and_light_master_bedroom
- platform: switch
entity_id: switch.bed_lamp_tammy_master_bedroom
- platform: switch
entity_id: switch.bed_lamp_jim_master_bedroom
# MASTER BATHROOM
- platform: switch
entity_id: switch.left_vanity_lights_master_bathroom
- platform: switch
entity_id: switch.right_vanity_lights_master_bathroom
- platform: switch
entity_id: switch.overhead_lights_master_bathroom
customize.yaml
#Master Bedroom
light.fan_and_light_master_bedroom:
friendly_name: Master Bedroom Fan and Light
light.overhead_lights_master_bedroom:
friendly_name: Master Bedroom Overhead Lights
light.bed_night_light_tammy_master_bedroom:
friendly_name: Tammy's Nightlight
light.bed_night_light_jim_master_bedroom:
friendly_name: Jims's Nightlight
switch.bed_lamp_tammy_master_bedroom:
friendly_name: Tammy's Bed Lamp
switch.bed_lamp_jim_master_bedroom:
friendly_name: Jim's Bed Lamp
#Master Bathroom
light.left_vanity_lights_master_bathroom:
friendly_name: Left Vanity Lights
light.right_vanity_lights_master_bathroom:
friendly_name: Right Vanity Lights
light.overhead_lights_master_bathroom:
friendly_name: Master Bathroom Overhead Lights