I got a Muse Luxe and flashed it with ESP32. Then I set up the media player in home assistant. However, when I play something, I see the following error message on the console of the ESP:
[D][media_player:059]: 'RaspiAudio Muse Luxe' - Setting
[D][media_player:066]: Media URL: https://ha.mydomain.net:8123/media/local/Door-Chime.mp3?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4YTQ1NDUzODJjM2U0YTg5ODgxNzViMzM5YTY0ZmI0MSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvRG9vci1DaGltZS5tcDMiLCJwYXJhbXMiOnt9LCJpYXQiOjE2Njg4OTc2NTMsImV4cCI6MTY2ODk4NDA1M30.LHXHa-GRXXt-Mv9H2N-Dsr6n3nWI9WEl1hH39upYK0s
[E][ssl_client.cpp:98] start_ssl_client(): Connect to Server failed!
[E][WiFiClientSecure.cpp:133] connect(): start_ssl_client: -1
Is the ESP trying to connect back to Home Assistant? If this is the case, can either of this be achieved?
Set a specific media URL for the media player in Home Assistant. Home Assistant should NOT use ha.mydomain.net but 10.227.68.10. It also should NOT use TLS since it is a secured network
Define a static host entry on the ESPhome device that resolves ha.mydomain.net to 10.227.68.10 ?
I am using my ESP devices in a dedicated VLAN without DHCP or DNS. There is deliberately no DNS server.
Both “Internet” and “Local Network” are set to: https://ha.mydomain.net:8123
For “Local Network”, “Automatic” is disabled.
Note that I have my own domain and DNS set up and I want my HA to be accessed with app and browser via https://ha.mydomain.net:8123, regardless of if I am home or not.
But what I do want is that when a request to play media is sent to some ESPhome device or squeezelite-esp32, that the URL does not use DNS but IP only. I hope this makes sense.
EDIT2: I just see it says “Configure what website addresses Home Assistant should share with other devices when they need to fetch data from Home Assistant (eg. to play text-to-speech or other hosted media).”. Does that mean the " Local Network " setting is used for that? If yes, how can I change this setting? Right now I can’t change it there and I see the message " Editor disabled because config stored in configuration.yaml. ". But I do not explicitely have any of these settings in configuration.yaml …
It adds a “RaspiAudio Muse Luxe” media player. So I just go to “Media”, select an MP3 and select “RaspiAudio Muse Luxe” as output device and hit play. Looks like this: