# Sonos2mqtt [![Sonos2mqtt][badge_sonos-mqtt]][link_sonos-mqtt] [![npm][badge_npm]][link_npm] [![Sonos api documentation][badge_sonos-docs]][link_sonos-docs] [![Sonos typescript this library][badge_sonos-typescript]][link_sonos-typescript] [![Sonos cli][badge_sonos-cli]][link_sonos-cli] [![github issues][badge_issues]][link_issues] [![docker pulls][badge_docker]][link_docker] [](https://npmjs.org/package/sonos2mqtt) [](https://github.com/svrooij/sonos2mqtt/blob/master/package.json) [![Support me on Github][badge_sponsor]][link_sponsor] [![All Contributors][badge_contrib]](#contributors-) [](https://github.com/mqtt-smarthome/mqtt-smarthome) [](https://github.com/semantic-release/semantic-release) This node application is a bridge between the Sonos and a mqtt server. The status of all your sonos devices will be published to mqtt and you can control the sonos speakers over mqtt. It's intended as a building block in heterogenous smart home environments where an MQTT message broker is used as the centralized message bus. See [MQTT Smarthome on Github](https://github.com/mqtt-smarthome/mqtt-smarthome) for a rationale and architectural overview. Check out the other bridges in the [software list](https://github.com/mqtt-smarthome/mqtt-smarthome/blob/master/Software.md) ## Documentation See: [https://sonos2mqtt.svrooij.io/](https://sonos2mqtt.svrooij.io) ## Node-sonos-ts [![Sonos typescript this library][badge_sonos-typescript]][link_sonos-typescript] This library depends on [node-sonos-ts](https://github.com/svrooij/node-sonos-ts/) which I also developed. All other libraries using node-sonos-ts should also be able to implemented all the nice features included there. Like **notifications** or **text-to-speech** which are the coolest new additions for **sonos2mqtt**! ## Beer or Coffee I'm a big fan of beer and coffee. To provide something extra to everybody who is sponsoring me, I'll provide a hosted TTS server for all my sponsors. This bridge and the [sonos package](https://github.com/svrooij/node-sonos-ts) took me a lot of hours to build, so I invite everyone using it to at least have a look at my [Sponsor page](https://github.com/sponsors/svrooij). Even though the sponsoring tiers are monthly you can also cancel anytime :wink: ## Special thanks The latest version of this bridge is inspired on [hue2mqtt.js](https://github.com/hobbyquaker/hue2mqtt.js) by [Sabastian Raff](https://github.com/hobbyquaker). That was a great sample on how to create a globally installed, command-line, something2mqtt bridge. ## Contributors ✨ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Stephan van Rooij 💻 📖 |
Sven Werner 📦 💻 |
Matthias Burgfried 💻 |
mqtt-fan 💻 |
Martin Roth 📖 |
Doug Melton 🐛 |
Sebastian 💻 |
Emmanuel Venisse 📖 |
Jonas Hansen 📖 |