Sonos playlists etc?

Totally possible. You'll need to have an RPi or some other computer running node-sonos-http-api. Then create a rule that is triggered by a virtual switch that uses http to talk to node-sonos and start the specified playlist.

The virtual switch goes in the dashboard.