Problems after upgrade frm 2022.6 to 2023.7

I thought the upgrade had gone OK , a couple of lines to be removed in configuration.yaml, but it was all working, However.
Got up this morning, no hot water, and I couldn’t use the companion app on my phone, or could my partner.
Fired up the laptop, and just the cached HA logo .
Logged in to the server SSH , and found 2 instances of HA running so killed one rebooted the server, still no access to HA
backed up automations and configuration yaml, and ran the upgrade again, still nothing and error messages saying could not create http server, just whats needed on a headless machine !
So next install python3.11, and try to upgrade to HA2023.8
One screen full of red entries :frowning:
Next step total deletion of HA from the odroidN2 , and reinstalled 2.23.7 , using the core install
loaded the old configuration and automation yaml scripts and restarted.
winged a lot about bluetooth which is not used, and had to reload all the entries on Lovelace

Question !: where is all the Lovelace config stored so next time I have a backup

nearly everything restored except, access from the companion app is refused
and device tracking like my phone and a couple of ESP and WIZ smart light bulbs, no longer seems to function, all are used in automations , like if the outside PIR light is triggered, the smart bulb appearing on the LAN is used to trigger an event to turn on lights in the house

Q2: how is external access now allowed so the companion app and tracking can function ?

1: Lovelace is stored under /.storage.

Thanks , that will save a lot of work next time

Near enough sorted, still a few strange things , but minor
A pity the UK Met office seems to have been dropped from the integration list