Home assistant Factory Reset

holllllllly… strike a nerve or something
take a deep breath

well…
its actually a blue, NOT a green or a yellow
and I attempted to migrate to a mini pc with more power that claimed to be 6 watts idle but … its not… it never goes below 14watts.
I don’t know about where you are but electricity is expensive as hell here.
so i tried to migrate back using a new fresh backup but for some reason it keeps hanging on to old configs despite the fresh new backup being restored to it

so several integrations require reconfiguring due to expired authorization which was never an issue going to the blank new machine.

so yea. i need a blank machine that will accept all settings as they are the way the new machine did.

restoring a fresh backup from minutes ago does not seem to do the trick
it keeps remembering the expired access tokens

a blank setup has proven to import and function as required

No nerves struck, my reply to you was saying there is not enough information, second post was my contribution to the topic as a whole.

If you changed the OS the authorization would likely be invalidated, if you went to a blank machine there would be NO authorization codes or tokens. Have you checked in Settings > Integrations > Application credentials?

What do you mean “hanging on to old configs”. If the home assistant service is stopped and the files are removed there is no way they are persisting. If you didn’t stop Home Assistant then they are loaded in memory.

Either way if you want a blank machine, reinstall the image. Or remove erroneous integrations and reconfigure them.

It has to be run from the host console and not an ssh add-on terminal. It won’t work from an add-on.

The error you are seeing is exactly what you see when you ignore what I am saying above.

The command cannot be run from the ssh terminal addon. You need to connect directly to the host.

Did you measure the power with or without the display or accessories? Minimal RAM and storage?

You have that already. It’s called a fresh install.

I measured with no display no accesories
its using the RAM and NVME that came with it

as for the fresh install
yes, I know
its what I was trying to do
but there is no method to get back to that
I ended up having to boot with a live linux disk and delete the data partition
not a step I should have to have done

I’ve never seen a Blue, (or a Green or Yellow), but this is the process given by AI:

  1. Visit the Home Assistant installation page and download the image for the ODROID-N2+ (the hardware used in Home Assistant Blue).
  2. Use a tool like Balena Etcher to flash the downloaded HAOS image onto a USB drive.
  3. Power off the blue and connect the bootable USB drive to it.
  4. Power on the device. It should boot from the USB drive and start the installation process.

As was stated waaay up this thread, saving a “factory backup” copy for a “factory reset” button would consume far too much storage for a feature that most would not use.

@donburch888 still has the best reply in post #2.

yes you could do that
but that’s more steps and time than just deleting the data partition
it gets the same result
why recreate and reproduce the entire disk in the same disk tool
when all you need to do is delete the data partition

you still shouldn’t have to boot into a live linux just to do this

How would you create a new data partition again without Linux?

you don’t need to create a new one
you just need to wipe/erase it

You said “delete the partition”. I assume you mean to erase /config?
Also, if your issue is with an add-on, this wouldn’t work.

it did work

Storing a backup was a workaround a user posted above I think (and so this is waste of space if you want to see it like that).

The devs wouldn’t use such a workaround just to be able to reset the device.
They should know what to delete / drop / reset in their product (like any other manufacturer that offers such a feature).

In other words, doing exactly what people tried to describe in this thread as workaround, but without their errors or missed steps.

And thats why it would be a good idea for a end user product like HA green or whatever color.

As a tech geek myself, I will never need this.

But as a developer I fully agree, that for an end user product like HA tries to become with their simple boxes and their steps toward a more user friendly system, this would be a welcome feauture.

It most likely shouldn’t be visible on a HA core installation, as you’re on your own here for managing your system.

But if you bought a box at your the local tech shop, advertised as easy smart-home solution, then you might want to reset it without a hazzly after you misconfigured it on your first try (which is way more likely on a complex system like HA than with your iPhone).

So not sure why people are fighting with such energy against this feature in this thread. :upside_down_face:
Are you afraid of too many noobs in the community?
Too late, I would say. The HA-team stated often enough, that the goal is to get more user friendly.

That’s the thing, it exists but it can only be ran from the console. I.e. plug in a keyboard and monitor into your green/yellow/blue etc and just type the command:

ha os datadisk wipe

This is very common for paid server based products to do this, and HAOS is no different. (Looking at you ubiquiti, synology)

No one’s really arguing against this FR, people are arguing against adding as a button in the UI. In fact, OP considers the CLI method suitable to close the Feature Request as they marked it as the solution.

And there is your mistake. As far as I can tell, Home Assistant will always be an experimenter/tinkerer/DIY project. You won’t see it on the shelf at Home Depot.

Simply put, there are too many ways to install Home Assistant that there is no single “reset” method that will work in all installations. Reinstall and restore is the only method that works for all installations.

Have been looking through tons of posts with a billion methods and opinions on basically wiping, as most of us that use computers are used to, or clearing out the support data and (who knows what) to get to the point of either reinstalling the OS on my NUC or as it mentions in the Google AI return to my question, wiping the data and upon reboot a new up-to-date version of the OS will be installed and it implies that all the add-ons will be updated also. I really don’t want the Add-Ons.

I’m perfectly willing to start from scratch and reload over Linux and use the “Belena Etcher” to reinstall the OS, AS I did to do the initial install of the OS.

My reason for this is when I made the decision to go for HA and severely lucked out on getting an i7 NUC with 256GB Storage and I upgraded the RAM to the max for this unit. When I found a point by point installation write-up I was easily able to install the OS. OF WHICH, seemed to be the hardest part. That was cake.

The next step was to get the appropriate Add-On Hardware OF WHICH at the time it was all in flux and there wasn’t a whole lot of integration info that was specifically tuned to the various pieces. Since then things have changed dramatically on many levels that the OS, Add-Ons and Additional Hardware. And most of all I’m noticing that the huge choir of voices have been culled down to a few that are tuned into the “Here and Now”.

My install is or may not be messed up. But my whole experience was not as “Plug & Play” as I am reading seems to be the norm now.

I used the CLI Commands to do this first try to see what I get.

I have a dedicated monitor and keyboard connected to the NUC and upon turning on the monitor I get the CLI. From there I just entered:
> ha oc datadisk wipe

At first I got a lot of nothing but after a couple of minutes and some taps on the enter key I finally got a Warning Page with the command to continue and its ramifications or to stop. I typed the “Y” and off it went. I got a row of "y"s down the screen and nothing else. It says that when done the NUC would Reboot Itself. It didn’t. So I Force Shutdown, waited a minute out of courtesy and hit the On Button again. The unit booted as normal and then booted the HAOS and I was greeted with the usual CLI. I haven’t dug into what is and isn’t there yet. But since it showed me the reset User and Password I’m going to try through an iPad to see what’s there. So that’s as far as I have gotten . . . for now.