My frirend. Your help was appreciated. The whole think was based on your idea.
I did more testing than just trying to see if there are errors and I can see that the sonos.restore is executed anyway even if the media is idle.
Can someone help me to pin point what is going on?