viktak
(viktak)
February 28, 2020, 5:43pm
1
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:
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…
VDRainer
(🍻)
February 28, 2020, 6:21pm
2
This should work.
Stupid question, but restarted HA?
viktak
(viktak)
February 28, 2020, 6:22pm
3
yeah, about a million times…
VDRainer
(🍻)
February 28, 2020, 6:36pm
4
Is there anything in the log about this input_boolean?
Maybe wrong code before or after the entry?
viktak
(viktak)
February 28, 2020, 6:45pm
5
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…
Thank you, now I can have a relaxed evening!
AhmadK
(akasma74)
February 28, 2020, 9:50pm
6
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