Home Assistant Community

Input_number: gives invalid config

#1

Hi, I’am new to hassio and I try to put a input_number in my configuration.yaml and I get invalid config

input_number:
  slider1:
    name: Slider
    initial: 30
    min: 0
    max: 100
    step: 1

and then I go to have a look to the states and I get:

=> [persistent_notification.invalid_config]

=> title: Invalid config
=> message: The following components and platforms could not be set up:

=> - input-number

=> Please check your config.

What did I wrong? Help will be gratefull. Thanks

#2

There’s nothing wrong that I can see with the code you have posted.

Is that the only place input_number: appears in your configuration.yaml file?

Is it actually input_number: or did you write input-number: ?