Here’s where I found the rule for the washer automation RM4 - List of example rules. Look for the rule called “Laundry Cycle Complete Notification (using power monitoring).”
Here’s how I fixed the Sonos issue. I’m not a coder/programmer so I’m sure there’s a more sophisticated way to write it. I went to the Sonos Device in Hubitat while it was playing the station I like and copied the “trackData” info. Then I created the automation to send text notifications (phones) and voice notifications (Sonos speakers) if the system is in Day Mode, or just text notifications if the system is any other mode. Then, if the Sonos Speakers were not playing any music, I set the “track” I copied from the Sonos device earlier. If the Sonos devices are already playing music, they'll continue to play music after the announcement so no code needed for that. I added the 10 sec delay to make sure the Sonos Device has enough time to say “The washer is done” before it sets the new track. I couldn’t figure out how to execute the same command for all Sonos Devices so I created and IF statement for each device. Like I said, I’m sure there are better ways to fix the issue, but this one worked for me.