Since beginning use of Home-Assistant (starting with 0.30.2) I have been having trouble with the input_boolean platform.
I have several input_boolean switches configured, and they show up properly in the HA gui as expected.
When trying to turn them on or off, then briefly change state in the UI and then change back again, to the value set in the “initial:” configuration parameter value. No errors are being logged or anything, when toggling the state. Same behavior by issuing a turn_on or turn_off service call: nothing ever happens on these input_booleans.
Also other parts of my HA installation have gone very well (have about 60 Z-Wave devices, etc). The input_boolean items are the only things that are defying my understanding.
Has anybody else seen an issue like this, and what may be the cause of the problem i’m experiencing?
Thanks!
My config file
input_boolean:
ConfigEveningLights:
name: Evening Lights
initial: on
icon: mdi:weather-night
ConfigAutoMotionLights:
name: Motion-controlled Lights In Evening
initial: on
icon: mdi:brightness-auto
ConfigAlarmSilent:
name: Keep Silent (No Sirens) When Alarming
initial: off
icon: mdi:volume-off
ConfigAlarmLightBlink:
name: Flash Lights When Alarming
initial: on
icon: mdi:led-variant-outline
ConfigActOnPresence:
name: Change state when people leave house
initial: on
icon: mdi:human-male-female
TestButton:
name: Test Button
initial: off
icon: mdi:adjust
TestButton2:
name: TestButton2
initial: off
To clarify, I am unable to change it from the UI. I have also tried service calls with the same result (nothing happens with the input_boolean state, and no errors logged)
I just tried changing the case in the config file, and the behavior did not change.
input_boolean:
configEveningLights:
name: Evening Lights
initial: on
icon: mdi:weather-night
configAutoMotionLights:
name: Motion-controlled Lights In Evening
initial: on
icon: mdi:brightness-auto
configAlarmSilent:
name: Keep Silent (No Sirens) When Alarming
initial: off
icon: mdi:volume-off
configAlarmLightBlink:
name: Flash Lights When Alarming
initial: on
icon: mdi:led-variant-outline
configActOnPresence:
name: Change state when people leave house
initial: on
icon: mdi:human-male-female
testButton:
name: Test Button
initial: off
icon: mdi:adjust
testButton2:
name: TestButton2
initial: off
For testing purposes, I reduced my input_boolean section to this:
input_boolean:
test_button:
name: My Test Button
initial: off
It worked! Could change value in ui.
Then I slowly (full HA-restarts between) started adding my old entires back, until my config section now looks like this again. Everything is working.
input_boolean:
test_button:
name: My Test Button
initial: off
icon: mdi:weather-night
test_button_2:
name: My-Test Button 2
initial: off
icon: mdi:brightness-auto
test_button_3:
name: My-Test (Just Testing) Button 3
initial: off
icon: mdi:volume-off
configeveninglights:
name: Evening Lights
initial: on
icon: mdi:weather-night
configautomotionlights:
name: Motion-controlled Lights In Evening
initial: on
icon: mdi:brightness-auto
configalarmsilent:
name: Keep Silent (No Sirens) When Alarming
initial: off
icon: mdi:volume-off
… and so on.
I think there was a bug i encountered but it’s difficult to tell exactly what was triggering it!
You should probably report that has a bug. I wonder if all entity_id’s need to be lower case. If that’s the case, then you should at least raise an error in the log file.