Well it has been a lot of looking around, but there is a file called core.config in the .storage directory that contains a lot of configuration information, in particular a field called
“internal_url”: “http://192.168.86.34:8123”,
I manually edited this line to contain the correct ip address, then restarted Home Assistant and I am now able to play media files to the sonos device.
Hooray!
I recall in the previous installation on the rpi4 that it was possible to specify the internal url and have not found the location in the docker HA system.
Hopefully this helps someone else.
2 days later…
I cannot believe that I have suddenly lost the ability to play media files on the sonos device.
The favorites tab in the media browser has suddenly reported that there are no items.
I have not been able to find any discussions of this issue. Am I really alone?
It turns out I did not read the manual properly enough ie https://www.home-assistant.io/integrations/media_source/#local-media
My configuration.yaml file now has this at top and seems to work fine:
media_source:
homeassistant:
#
media_dirs:
local: /config/media
the next day…
The history has stopped working for all the entities. The useful time-trend does not appear.
The reading I have done has not helped with my install, https://community.home-assistant.io/t/psa-2024-7-recorder-problems/746428
when I run recorder.purge I get this:
Logger: homeassistant.components.recorder.util
Source: components/recorder/util.py:299
integration: Recorder (documentation, issues)
First occurred: 12:08:35 PM (1 occurrences)
Last logged: 12:08:35 PM
The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly
some time later my configuration.yaml now contains:
# Example configuration.yaml entry from https://www.home-assistant.io/integrations/recorder/#disk-space-requirements
recorder:
purge_keep_days: 5
auto_purge: false
include:
domains:
- sensor
- switch
- media_player
# Basic configuration.yaml entry from https://www.home-assistant.io/integrations/history/
history:
It took several restarts of HA and even closing the docker before the database seemed to come back to life.
I am only including this blow-by-blow description in case it helps someone else migrating from a raspberry pi installation (mine was running smoothly for about 4 years)
What I have learnt lately is that docker Home Assistant seems to “listen” much more intently to the configuration.yaml file than I was used to. Stuff seemed to work in HassOS on the rpi and I am feeling pretty dumb that the transition was so difficult, but still this has been a good opportunity to fix up some things. For example, I used to use Zigbee2MQTT and ZHA on the rpi and have now consolidated my zigbee network on ZHA.