Closed acidkill closed 1 year ago
+1 for this request. I have 2 rooms with different light bulbs and different lighting conditions and requirements.
When i do this only the first light bulb is working:
switch:
- platform: circadian_lighting
lights_ct: light.hallway_light
min_brightness: 15
max_brightness: 40
- platform: circadian_lighting
lights_ct:
- light.entrance_spotlight_inside_light
- light.entrance_spotlight_center_light
- light.entrance_spotlight_outside_light
min_brightness: 75
max_brightness: 100
This has always been supported. @Sonic77 when you say only the first light bulb is working, do you mean light.hallway_light, light.hallway_light and light.entrance_spotlight_inside_light, or something else? Have you already enabled and looked into debug logs?
Only lights_ct: light.hallway_light
is working.
When i swap both platform
sections the other lights_ct
still only the first platform
section is working.
There was no information in the HAS System Logs. I have just now enabled debug log.
@claytonjn i found this error in the log after restart with debug logging enbaled:
2023-06-22 09:13:07.502 ERROR (MainThread) [homeassistant.components.switch] Entity id already exists - ignoring: switch.circadian_lighting_circadian_lighting
I got this working by adding a name:
in each section. After adding name:
each switch needed to be turned on.
switch:
- platform: circadian_lighting
name: Entrance Circadian Lighting
lights_ct:
- light.entrance_spotlight_inside_light
- light.entrance_spotlight_center_light
- light.entrance_spotlight_outside_light
min_brightness: 75
max_brightness: 100
- platform: circadian_lighting
name: Hallway Circadian Lighting
lights_ct: light.hallway_light
min_brightness: 15
max_brightness: 40
Ahh, sorry, I should have caught that! Glad you got it working :)
Be able to create multiple switches for lights in different rooms.
F.ex. Daughter sleeps with pink lights so I want to be able to control circadian lightning for her room independently of other rooms. Adding her room as the second switch disables main group.