If a bulb has like Philips Hue that you can change colors/temperature and brightness, you need to push on the bulb icon to get to the slider for the color/temp and brightness. I wine is it possible to have the sliders directly on the first page under or above the on/off switch? So that I don’t need to access some kind of sub menu.
I have seen that it’s possible to use Input Slider to do that, but I can’t get it to work, this is what I have put in my configuration.yaml file (see below), the light bulb is called “light.ikea_light_2”
Can anyone here help me with what’s wrong.
When pasting your code use the preformatted text option (< / > icon at the top of the editor). This keeps your formatting and will make it easier to determine things like spacing issues.
Do you see any errors in the home-assistant.log? This log file should be in the same folder as your config.yaml or if you click on the circled “i” in the dev tools section you can see the log there.
With some additional info I’m confident someone here can help out.
lamp_bright:
name: Lamp Brightness
initial: 0
min: 0
max: 255
step: 10 (adjust to how fast you want it to get bright. step 10 assumes ~ 25 steps over full range)
if they are in the configuration.yaml then they need to have the automation: and input_slider: entry. Just remember to put in proper spacing and you’ll be fine.
You’d need to create a slider for the color temp. set the min and max to the appropriate values, then create an automation to change. Essentially create everything you did with the brightness( name your slider and automation something different) but instead of
brightness: '{{ states.input_slider.lamp_temp.state | int }}'
you’d use
color_temp: '{{ states.input_slider.lamp_temp.state | int }}'
or
white_value: '{{ states.input_slider.lamp_temp.state | int }}'
Unfortunately none of the two did change the temp och the white.
When I mouse click on the bulb at the first (home) window, the value I would like to change has the subject “Color Temperature”. Bellow is the code I did try. I used both color_temp and white_temp to see if any of these 2 is working
color temp uses a value outside of 255 color_temp Color temperature for the light in mireds (154-500) 250
here’s a working automation. you can simplify it all into 1 for a light. I’m sure there’s a way to do an all encompassing but I’m still working on that…
- alias: Change Brightness
trigger:
- platform: state
entity_id: input_slider.lamp_bright
- platform: state
entity_id: input_slider.lamp_temp
action:
- service: light.turn_on
data_template:
entity_id: light.livingroom_1
brightness: '{{ states.input_slider.lamp_bright.state | int }}'
- service: light.turn_on
data_template:
entity_id: light.livingroom_1
color_temp: '{{ states.input_slider.lamp_temp.state | int }}'