Cannot add input_boolean or counter via packages any longer..?

Hi everybody,

I am trying to implement this advice I got.

However, suddenly I am not able to add any new entities. I have a /packages/<category>/ folder; the file /packages/heizungen/arbeitszimmer.yaml did already exist, but I renamed it arbeitszimmer.yaml.deac, which I always do do keep the file, but not have Home Assistant use it.

Now I re-created the file (without .deac as file extension!!). It initially looked like this

input_boolean:
  az_fenster:
    name: "[AZ] Fenster"

I expected to find input_boolean.az_fenster as a new entity after restarting Home Assistant. However, it was not there. I restarted the entire server, still nothing. I thought, perhaps something was wrong about the sensor. I added initial: off, so the sensor would have a value. Restarted. Nothing.

So instead of figuring out what might have been wrong with input_boolean, I tried to create a different entity:

counter:
  az_fenster:
    restore: true
    step: 1
    minimum: 0
    maximum: 1

Upon restart, there was no counter.az_fenster.

All my other integrations from these folders work fine! So I don’t understand why I cannot create new entities this way. I checked my configuration before each restart, and did not receive any errors. So there should not be anything wrong with the file… Yet nothing I create actually appears any longer.

What can I do? Thank you for your ideas :slight_smile:

save your stuff in another file in the same folder and check if it works.
btw, there is no need to restart HA for input_boolean, call its reload service

Thank you! That is really weird… When I create the input_boolean in a different file, it *will work. Guess I’ll just have to continue like this. However, I still find this pretty strange, as the exact same code works in one file, but not in the other o.O

well, move both your non-working/unused files out of that folder, then create a proper .yaml with that name (arbeitszimmer.yaml?), fill it with your counters/input_booleans and see if it works (I hope it will).

It does! Thank you.

1 Like

and if you copy your arbeitszimmer.yaml.deac back? :wink: