Most basic input_boolean config not working

Dear All,

I was wondering if there is something special prerequisite to get the input_boolean working.

It looks pretty straightforward based on the documentation and other people’s work, but I haven’t been able to get it to work for the last couple of hours… (I am new to HA, but come from a strong programming background).

This is in my configuration.yaml:

input_boolean:
  test:
    name: Test
    icon: mdi:harddisk

This is in one of the lovelace views:

  - type: entities
    title: Settings
    entities:
      - entity: input_boolean.test

They pass validation, but on the UI this is what shows up:

input_boolean

This is consistent with the fact that the entity (input_boolean.test right?) doesn’t show up in dev/states either.

I’m sure it’s something most basic, but I can’t find anything on it in the documentation.

Or it may be Friday evening…

This should work.
Stupid question, but restarted HA?

yeah, about a million times…

Is there anything in the log about this input_boolean?
Maybe wrong code before or after the entry?

Oh, I could have thought of that… Of course, there was a suspicious line:

2020-02-28 19:47:48 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/configuration.yaml contains duplicate key "input_boolean". Check lines 50 and 181.

And guess what: it was a duplicate entry, that I forgot about…

The validator could have caught it though… :slight_smile:

Thank you, now I can have a relaxed evening! :slight_smile: :slight_smile: :slight_smile:

btw, since 0.105 (?) we can call input_boolean.reload (dev tools - > services) instead of starting HA.
same goes to any input_ and timers.

3 Likes