Hey guys,
I have HA running in a container on my QNAP NAS. I have a Pi 3 which is running the deconz software using the ConBee stick. I have three different light groups:
- Living room - 6 Philips Hue lights
- Kitchen - 3 Philips Hue lights
- Dining - 1 Philps Hue light
I have input sliders for all three for changing the brightness and light colour. If I have only one group switched on and change the brightness of this group, all other groups are also switched on and the brightness is changed. What is wrong? Here is the code I am using:
configuration.yaml:
#Helligkeits Slider
input_number:
esszimmer_bright:
name: Helligkeit
icon: mdi:brightness-6
initial: 75
min: 1
max: 254
step: 10
esszimmer_temp:
name: Farbtemperatur
icon: mdi:palette
initial: 415
min: 155
max: 500
step: 20
kueche_bright:
name: Helligkeit
icon: mdi:brightness-6
initial: 75
min: 1
max: 254
step: 10
kueche_temp:
name: Farbtemperatur
icon: mdi:palette
initial: 415
min: 155
max: 500
step: 20
wozi_bright:
name: Helligkeit
icon: mdi:brightness-6
initial: 75
min: 1
max: 254
step: 10
wozi_temp:
name: Farbtemperatur
icon: mdi:palette
initial: 415
min: 155
max: 500
step: 20
Automation.yaml:
- alias: Change Brightness
trigger:
- platform: state
entity_id: input_number.esszimmer_bright
- platform: state
entity_id: input_number.esszimmer_temp
- platform: state
entity_id: input_number.kueche_bright
- platform: state
entity_id: input_number.kueche_temp
- platform: state
entity_id: input_number.wozi_bright
- platform: state
entity_id: input_number.wozi_temp
action:
- service: light.turn_on
data_template:
entity_id: light.esszimmertisch
brightness: '{{ states.input_number.esszimmer_bright.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.esszimmertisch
color_temp: '{{ states.input_number.esszimmer_temp.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.spot_kueche_1, light.spot_kueche_2, light.spot_kueche_3
brightness: '{{ states.input_number.kueche_bright.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.spot_kueche_1, light.spot_kueche_2, light.spot_kueche_3
color_temp: '{{ states.input_number.kueche_temp.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.spot_wozi_1, light.spot_wozi_2, light.spot_wozi_3, light.light_9, light.spot_wozi_5, light.spot_wozi_6
brightness: '{{ states.input_number.wozi_bright.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.spot_wozi_1, light.spot_wozi_2, light.spot_wozi_3, light.light_9, light.spot_wozi_5, light.spot_wozi_6
color_temp: '{{ states.input_number.wozi_temp.state | int }}'
Thank you in advance for your help! Please excuse the German words inside the code …