The Sonos Bathroom project

Theoretically yeah, but it would require a lot of re-work to get it working on Homey. node-sonos-http-api hosts a web server and reacts based on web requests. I don’t think Homey allows you to host another webserver inside a Homey app, which means you’d have to rewrite the entire node-sonos-http-api library to make it compatible with Homey