Using an input_slider as trigger, cannot get it to work

Hello All,

I’m trying to get an input_slider to work in a trigger. But sofar i haven’t been able to get it to work and i’m at a loss on how to get it to work.

My ultimate goal is to adjust the brightness of my living room lights, but for now i’ll settle on actually turning the lights on.

- alias: Slider - Master - Verlichting
  trigger:
   - platform: numeric_state
     entity_id: input_slider.master_verlichting_woonkamer
     above: 0
  action:
    - service: light.turn_on
      entity_id: light.bol_blauw

When i move the master_verlichting_woonkamer slider, my log shows me that an event is triggered. However my light (bol_blauw) doesn’t get turned on.

What i am doing wrong?

What’s the code for the input slider look like? I think the platform is state, instead of numeric_state.

Check here. I’m learning too.

You are correct, it was platform state.

However, even after switching platforms it didn’t work. Eventually i found the culprit, i had an extra ‘-’ somewhere. :blush: Thus making my YAML incorrect.

1 Like

I had a similar problem before, but using MQTT. See this post: Issues with input_slider together with in automation