Integrates home assistant with node-sonos-http-api. I also provide a Home Assistant Addon for that API, see my home-assistant-addons.
It allows you to define presets ("scenes") for your sonos speakers and trigger them trigger presets from home assistant, as it creates a button entity for every preset defined in node-sonos-http-api.
The presets are defined as JSON files, e.g. the following can be stored as goodMorning.json
{
"players": [
{
"roomName": "Living Room",
"volume": 15
},
{
"roomName": "Kitchen",
"volume": 20
},
{
"roomName": "Bathroom",
"volume": 5
}
],
"favorite": "1LIVE"
}
This integration will set up the following platforms.
Platform | Description |
---|---|
button |
Allows you to activate a preset. |
Add the repo via HACS - detailed docs will follow.
If you want to contribute to this please read the Contribution guidelines