[SOLVED]How to completely disable Recorder, History and Logbook

That sounds like a failproof option.

The configuration.yaml code would be something like this:

recorder:
  include:
    domains:
    entities:

Though I haven’t tried it so don’t quote me on it.

I was under the impression, that if i commented all three components out, it would not load them at all.
The argument that some random component might call the recorder is valid though.

This seems like it would do the job but it would still create a DB file right?

Would a very small db file (0 byte?) be an issue?

Not at all! I have not tried it yet but im absolutely happy if it works like this.

But for the sake of correctness, this is a work-around to what im trying to achieve, start the recorder and have it do nothing.

According to this, completely disabling the recorder should create no db file at all.

Rename “default_config” to “frontend”
Frontend: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/frontend/manifest.json

Then, do not include recorder (nor components which load the recorder) in the yaml and no DB will be created

Thanks for the details, will try it when i get home.

Correct. The database file would be created, but with nothing in it. Yes it’s a workaround, but if there’s a component you use that relies on the recorder and loads it as a dependency, there’s not much you can do except make a custom component so it doesn’t use the recorder, or create an empty database.

Hmm no, when changing default_config to frontend, it will only load a small amount of required components (such as api and auth).
It will not load recorder, logger and such. Effectively not creating a database, I am using this setup :slight_smile:

If your response was to me, my response was to the OP regarding setting up the recorder but not putting anything in the include:. The workaround I described is if they are forced to load the recorder component because some other component loads it. That work around would still create a database, albeit an empty one. In your case, yes you’re right, only loading specific components that do not load the recorder component would mean the database is never created.

1 Like

Sorry about that, I misread your post

1 Like

My understanding is the only way to change default_config is to comment it out and add only wat you want. Here is its current list:

“automation”,
“cloud”,
“config”,
“frontend”,
“history”,
“logbook”,
“map”,
“mobile_app”,
“person”,
“script”,
“ssdp”,
“sun”,
“system_health”,
“updater”,
“zeroconf”

Well, renaming default_config to frontend is essentially the same as comment out default_config and adding frontend.
Frontend is required for having a, errr, frontend :smiley:
The rest is optional.

1 Like

Removed default_config:
and enabled the following instead.

frontend:
config:
hassio:
updater:
system_health:

The full list of components called with default_config can be found here
Works great, thanks a lot everyone!

2 Likes

Is that a valid config entry? What does it do? It is not in default_config.

Hm… I honestly have no clue how that got there.

I Think it is a valid entry though, i remember reading about it a while back, something to do with the distinction of Home assistant and hassio (including the add-on store etc)

2 Likes

@krash , besides commenting out “default_config” and including only those components you listed, did you also explicitly include/exclude entity types from recorder?

I started another thread on the same topic, and it seems recorder is used differently than in the past.

Yeah, i actually have the recorder set on a different file with this: recorder: !include recorder.yaml
I set all the inclusions and exclusions there.

1 Like

Hey bro I know this is probably too much to ask, but I know zero about programming, and I really don’t understand how to do this to make my sd last longer, is there anyway you can help my with a step by step guide or a tutorial video? I can PayPal you, thanks for your time.

Hey there,
I dont know what hardware configuration you are using, but have a look at the “move datadisk” option in HA?
I believe this is the most straightforward option to save your sd card, by adding an external usb drive.
Follow this guide, its pretty straightforward: