I’m using a Symfonisk (Sonos x Ikea) speaker to play audio files from my local media folder. Over a year ago I switched ISPs and as a result my local subnet changed (192.168.2.x → 192.168.1.x). After this change I’m no longer able to play local media on the speaker.
While debugging the issue I also started the Sonos app to see if it would give me any insights, which it actually did! When running the automation the Sonos app shows an error that it’s unable to play the mp3 file, and there I noticed it’s using my old subnet!
The image shows it’s still trying to reach 192.168.2.100:8123, but my home assistant is now hosted at 192.168.1.100:8123.
The relevant section of my automation looks like this:
variables:
# Map scanner device ID to media player entity ID
media_players:
# tagreader-5aa2ad
a927d8e620ca8e1088df14857e066853: media_player.bedroom_veerle
# Map tag ID to content
tags:
53-C9-C3-C6-00-00-01:
media_content_id: media-source://media_source/local/lekturama/01 - Het Lelijke Jonge Eendje.mp3
media_content_type: audio/mpeg
and
action:
- variables:
media_player_entity_id: "{{ media_players[trigger.event.data.device_id] }}"
media_content_id: "{{ tags[trigger.event.data.tag_id].media_content_id }}"
media_content_type: "{{ tags[trigger.event.data.tag_id].media_content_type }}"
- service: media_player.play_media
target:
entity_id: "{{ media_player_entity_id }}"
data:
media_content_id: "{{ media_content_id }}"
media_content_type: "{{ media_content_type }}"
The full automation can be found on my github
How is it possible that the sonos speaker is still trying to use the old IP adress? And how would I be able to force an update of the IP address?