The MAC address changes on every reboot on Raspbian Lite after installing Home Assistant

Installing Home Assistant using the official guide has nothing to do with Home Assistant?

No, because I do want to

be able to control my host network setup over the UI

Maybe you should ask on the raspbian forums, as this has nothing to do with HA.

1 Like

I don’t see anywhere where the MAC address changed or you reserved the MAC address in your router.

Also… why do you want to run a server on WiFi?

1 Like

Screenshot from https://www.home-assistant.io/hassio/installation/#debianubuntu.

Because I don’t have any free ethernet port on my router, so I want to connect to it over the Wi-Fi network.

I’d argue that Home Assistant’s instructions should be updated, and I will gladly create a PR for it. Because, as I demonstrated, I followed them and stumbled upon an issue that is not mentioned at all.

And I don’t mean that Home Assistant’s instructions should have an actual solution for it, if it’s not directly related.

But a simple “If you have problems with a Linux distribution that is not mentioned here, please seek help on their official forum” is clearly missing.

This whole exercise if even without HA started, so it has nothing to do with HA. The best help about it is on the raspbian forums, there are the people with much more knowledge about issues like that.

This whole exercise came directly from https://www.home-assistant.io/hassio/installation/#debianubuntu.

Then, https://www.home-assistant.io/hassio/installation/#debianubuntu should be moved to the Raspbian website.

On that page, I don’t see anything from this exercise.

There is nothing on that page about changing mac-addresses, and it is an issue with network-manager.

Exactly! And that is the issue. That that page isn’t mentioning this issue, caused by installing a package that that page tells you to do.

5 minutes google :

Network-Manager will reset your mac address during the wifi scanning.

To permanently change your mac address:

Edit your /etc/NetworkManager/NetworkManager.conf as follows:

[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

[keyfile]

Edit your /etc/network/interfaces by adding the following line:

pre-up ifconfig wlp68s0b1 hw ether xx:xx:xx:yy:yy:yy

The xx:xx:xx:yy:yy:yy is the new mac address obtained from the output of macchanger -A wlp68s0b1

Reboot and verify your settings.

I’m not the only one confused about incomplete documentation:

And guess what, they’re on Home Assistant’s GitHub repos, not on Raspbian forum.

Do you want to create a PR for this?

I added it: https://github.com/home-assistant/home-assistant.io/pull/12342.

As others have already found a solution, I just wanted to note, why I was asking the way I did.

It is not easy, to pinpoint an error, if you do not have that “first sight” moment. Most of the times, I just have an idea, what may cause the problem. In some cases, like yours, it is not even a guess. It is simply a feeling, where to look. And this is why I did ask for more information. I didn’t have any idea, but in looking at code examples, config files and such things, most of the time it is a stumbling over something, that just doesn’t feel right. That’s the point, where one can dig in and investigate further.

So the more detailed your description of everything you have down is, the better someone stumbles upon something.

So, yes, if the answer to the problem isn’t “directly” visible, I for one want as much information as possible, even the small things, because I’m sure, there will be something… :slight_smile:

No hard feelings, if it’s not obvious, one has to ask. :slight_smile: Hope now all is working for you.

I understand. But seeing that I didn’t do anything crazy or extra, and just followed the instructions, I expected for someone to tell me that it’s a known issue, meaning that I used the wrong keywords when looking for an existing thread. Like

Hey, of course it changes, because we’re telling people to install network-manager, and it does this by default.

And again, I can not understand how am I the only one in the world stumbling upon this issue.

I understand. But I, again, thought that it’s a known issue with a simple solution, that I could simply not find, not that others didn’t think of it. That’s why I asked the question before testing again as I did for this comment.

Same, and thank you all for your time.

1 Like