I am setting up Home Assistant on a new Raspberry Pi. When I get to setting up Samba, I can’t change the config.
Here is what I am entering. (It’s the same as on my working Home Assistant except the name).
Stranger yet, the log shows some IP addresses that make no sense to me. My Pi is at 192.168.1.26
making subnet name:172.30.32.1 Broadcast address:172.30.33.255 Subnet mask:255.255.254.0
At the end of the log:
*****
Samba name server HASS is now a local master browser for workgroup MSHOME on subnet 172.17.0.1
*****
*****
Samba name server HASS is now a local master browser for workgroup MSHOME on subnet 172.30.32.1
*****
process_host_announce: incorrect name type for destination from IP 192.168.1.4 (was 1e) should be 0x1d. Allowing packet anyway.
process_host_announce: incorrect name type for destination from IP 192.168.1.4 (was 1e) should be 0x1d. Allowing packet anyway.
process_host_announce: incorrect name type for destination from IP 192.168.1.4 (was 1e) should be 0x1d. Allowing packet anyway.
process_host_announce: incorrect name type for destination from IP 192.168.1.4 (was 1e) should be 0x1d. Allowing packet anyway.
I didn’t see any red (error) text, and even with the default and my workgroup, Samba shares still aren’t present. And what’s up with those strange IP addresses in the log file?
Also, when I start with the default, then just change my workgroup name, I get this error:
not a valid value for dictionary value @ data['options']. Got {'workgroup': 'MSHOME', 'username': 'hass', 'password': None, 'interface': '', 'allow_hosts': ['10.0.0.0/8', '172.16.0.0/12', '192.168.0.0/16']}
172 is the docker container and it adds local addresses - 192. And 10. By default.
I only have workgroup, username and password set in mine now. Pretty sure I did that after I read the docs for the updated add-on. (And the default allowed hosts)
That’s the problem. I start with the default then add my workgroup, username and password. When I click on “Start”, the config goes back to the defaults.
Thanks for hanging in there with me.
Maybe a bit of sleep made all the difference, but it’s working now. I really don’t know what I did differently. But here’s a recap:
This is what I get when I press “Reset to Defaults”
This is what I get when I press “Save”
Adding a password makes the error go away:
I changed the workgroup, save, then restart. No errors and on the PC was able to map a drive to it.
I think Tom said several times you have to use a password. If the config is invalid, that’s why it won’t save (no password is invalid). It didn’t sound like that was your problem though…