Ok so after a lot of messing around I’ve got this working I think
Step 1:
In Hass.io install DHCP Server, and configure it like so (you need to specify a domain)…
{
“default_lease”: 86400,
“max_lease”: 172800,
“domain”: “HASSIO”,
“dns”: [
“8.8.8.8”,
“8.8.4.4”
],
“networks”: [
{
“subnet”: “192.168.10.0”,
“netmask”: “255.255.255.0”,
“range_start”: “192.168.10.100”,
“range_end”: “192.168.10.200”,
“broadcast”: “192.168.10.255”,
“gateway”: “192.168.10.1”,
“interface”: “wlan0”
}
],
“hosts”: []
}
Step two:
Shutdown and rip out your SD card, get onto resin-boot and in the system-connections folder you should have resin-sample. I used this file to setup the Ethernet connection fixed ip.
[connection]
id=resin-sample
type=ethernet
interface-name=eth0
permissions=
secondaries=
[ethernet]
mac-address-blacklist=
[ipv4]
address1=192.168.0.200/24,192.168.0.1
dns=8.8.8.8;8.8.4.4;
dns-search=
method=manual
Create another file, I called it resin-hotspot with the following entries
[connection]
id=resin-hotspot
uuid=36060c57-aebd-4ccf-aba4-ef75121b5f77
type=wifi
autoconnect=true
interface-name=wlan0
permissions=
secondaries=
[wifi]
band=bg
mac-address-blacklist=
mac-address-randomization=0
mode=ap
seen-bssids=
ssid=YOUR_SSID
channel=9
hidden=false
[wifi-security]
group=
key-mgmt=wpa-psk
pairwise=
proto=
psk=YOUR_PASSPHRASE
[ipv4]
address1=192.168.10.1/24,192.168.10.1
dns=8.8.8.8;8.8.4.4;
dns-search=
method=manual
[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
You may also need to get access to the resin-state (Linux partition) and delete the file in \root-overlay\etc\NetworkManager\system-connections, if you have been messing around trying to get this working.
Restart and you should see a SSID appear from the RasPi’s wifi, and if you connect to it it will assign you and ip from the dhcp server range specified above.
From this you can reach HASS on the gateway address i.e. 192.168.10.1 in my case.
This setup does not seem to bridge the networks i.e. no routing from wifi hotspot to enternet side, but I didn’t need this yet.
Hope this helps.
Mark