question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabled input_boolean cannot be re-enabled without restarting Home Assistant.

See original GitHub issue

The problem

An input_boolean can be conveniently disabled but it cannot be re-enabled unless you restart Home Assistant.

Environment

  • Home Assistant Core release with the issue: 2020.12.2
  • Last working Home Assistant Core release (if known): probably never
  • Operating environment (OS/Container/Supervised/Core): OS
  • Integration causing this issue: input_boolean
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/input_boolean/

Problem-relevant configuration.yaml

The input_boolean is created via Configuration > Helpers.

Traceback/Error logs

No errors reported in Logs.

Additional information

  • Create an input_boolean using Configuration > Helpers.

  • Go to Configuration > Entities view and disable the newly-created input_boolean, then re-enable it.

  • A popup appears indicating it will take 30 seconds for the entity to be enabled.

  • One minute later it still indicates Unavailable. Waiting longer doesn’t correct it.

  • Refreshing the web page doesn’t correct it either; it continues to report Unavailable.

  • Executing ‘Reload Input Booleans’ also fails to correct it.

  • In my tests, the input_boolean was used in an Entities card and it was missing from the card.

  • Restart Home Assistant and the input_boolean is finally re-enabled.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:14

github_iconTop GitHub Comments

3reactions
tdejnekacommented, May 7, 2022

Problem confirmed to exist in 2022.5.2.

Re-enabling a disabled input_boolean fails. The popup message reports it will take 30 seconds to re-enable the entity but it never does. Only a restart re-enables it.

0reactions
tdejnekacommented, Oct 8, 2022

The problem still exists in 2022.10.1.

Attempting to re-enable a disabled input_boolean fails to actually re-enable it. The UI claims it will take 30 seconds to be re-enabled but it fails. Although the input_boolean is displayed in the Entities view it actually remains disabled and is not displayed in Developer Tools > States (and is inaccessible for use in scripts, templates, etc). A restart is needed to truly re-enable it (executing Reload Input Booleans doesn’t do the trick).

tl;dr You can’t re-enable a disabled input_boolean unless you restart Home Assistant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Permit re-enabling a disabled Helper without a restart
Background. A year ago, re-enabling a disabled entity, such as a Helper, resulted in nothing until Home Assistant was restarted. Many months ...
Read more >
Input_boolean - why do I have to restart ha to see new ones?
Input_booleans aren't defined in customize, they're defined in their own section of the configuration. To see changes without restarting, call ...
Read more >
Helper for input entities disappear when disableling
When I use a Helper to define my Inputs I do this to have these not defined in my config.yaml. It is pretty...
Read more >
Why simple Automation doesn't trigger? - Home Assistant Community
If you disable it, but it has initial_state: true , the next time you restart Home Assistant the automation will be re-enabled. What...
Read more >
Re-enable a disabled entity and it loses its friendly_name
If you have a moment, try this experiment and let me know its result. Caution, you may need to restart Home Assistant as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found