HassOS HassIO add-ons keep resetting my config

Hoping someone can help… I am following instructions from Juan Tech at https://www.juanmtech.com/home-assistant-hassos-beginners-guide to build a fresh HassOS install (I have a Hassbian environment which is slowly dying… cannot update Certs and Ness component does not work, Samba is failing…). I have successfully booted the environment and can see some auto detected devices which i am able to use. I am attempting to configure some of the addons and am finding that when i add text to the Configuration box, my custom text is wiped and reset to default when i Save and click Start on the add-on…

As an example, i enter the text as per the instructions on the webpage (i set my user as HA and pass HAP) as per the first part below, click save (remains the same),

{
“workgroup”: “WORKGROUP”,
“name”: “hassio”,
“guest”: false,
“map”: {
“config”: true,
“addons”: true,
“ssl”: false,
“share”: true,
“backup”: true
},
“username”: “HA”,
“password”: “HAP”,
“interface”: “wlan0”,
“allow_hosts”: [
“10.0.0.0/8”,
“172.16.0.0/12”,
“192.168.0.0/16”
]
}

and when i click Start, the Config changes to the second part

{
“workgroup”: “WORKGROUP”,
“username”: “HA”,
“password”: “HAP”,
“interface”: “wlan0”,
“allow_hosts”: [
“10.0.0.0/8”,
“172.16.0.0/12”,
“192.168.0.0/16”
]
}

This happens with Samba and Configurator so far, havent tried others yet… anyone else having the same issue?

Samba share 8.1 has only following :
{
“workgroup”: “WORKGROUP”,
“username”: “xxxxx”,
“password”: “xxxxx”,
“interface”: “enp5s0”,
“allow_hosts”: [
“10.0.0.0/8”,
“172.16.0.0/12”,
“192.168.1.0/24”
]
}

After you enter settings did you click save? Before starting the addon? The settings will be in a different colour if there is an error and they won’t save which would explain what you are seeing.

Thanks for the prompt reply.

I am changing very little in the template text, just to make sure i am not causing the issue… I am literally only updating user and pass, and all text stays black… then i click save, then i click start… Upon clicking start, the text updates to remove the additional fields… It is more evident in the Configurator config, as I enter a user/pass, but when i click save, the whole user/pass section is omitted and then becomes unsecured. All text still remains black

So the text i add is :

{
“username”: “xxxxx”,
“password”: “xxxxx”,
“certfile”: “fullchain.pem”,
“keyfile”: “privkey.pem”,
“ssl”: false,
“allowed_networks”: [
“192.168.0.0/16”,
“172.30.0.0/16”
],
“banned_ips”: [
“8.8.8.8”
],
“banlimit”: 0,
“ignore_pattern”: [
pycache
],
“dirsfirst”: false,
“enforce_basepath”: false
}

Then when i click Start, it updates to:

{
“dirsfirst”: false,
“enforce_basepath”: false,
“ignore_pattern”: [
pycache
]
}
thanks again,

Michael

Well for a start, the configurator app doesn’t use a user/pass anymore - it uses a HA user/pass. Make sure you are using the latest addon and click on reset and than enter only what the prompts allow you.

Samba only wants Workgroup, Username, Password, Interfaces and allow_hosts so your config is invalid.

Now I think it has registered into this brain of mine…

So if I understand correctly, the configs I added were old and have been updated, and as such permit only what is shown in the config box when the add-on is first added or reset.

If this is the case, can I please ask just one final question… (noob in me). If my addresses are in the 10.0.1.x range, what should my allow networks look like? I just don’t understand what the significance of the /x is on the up range.

Thanks again for all your help

10.0.1.0/24 - subnet mask. 8 bits per octet and 3 octets = 3*8=24

Thank you, Will update tonight and try again.