ioBroker / ioBroker.sonos

Control and monitor SONOS player from ioBroker
MIT License
37 stars 20 forks source link
iobroker multiroom smarthome sonos sonos-web

Logo

ioBroker.sonos

Number of Installations Number of Installations NPM version

Test and Release Translation status Downloads

Control and monitor SONOS devices with ioBroker.

Handling of groups

*) These states will be updated if changes are made in the SONOS app.

Using it with the sayIt adapter

To use the sayit adapter with this SONOS adapter, ensure that the web adapter is instantiated and running too. The web adapter is required to allow the SONOS adapter to read the generated MP3 file from the sayit adapter.

Warning: Stability problems in combination with sayIt adapter

Please note: This SONOS adapter has stability issues if using 'text to speech' with the sayIt adapter. Symptoms observed:

  1. Arbitrary change of volume to 0 or 100 %.
  2. No response after a random number of text to speech sequences

Workaround for text to speech is to use the SONOS HTTP API.

Favorites & Queue in VIS

Use states favorites_list_html and queue_html to show playlists and current queue with basic html widget in VIS. By clicking on a row, the playlist or track will be played immediately. Format the table with the following css classes:

Favorites

Queue

For long lists add overflow:auto; or overflow-y:auto; to basic html widget. Please note: highlighting current playing favorite is not supported.

Sample CSS

.sonosFavoriteTable {
    color: #bbb;
    font-size: 12px;
}
.sonosFavoriteRow {
    cursor: pointer;
}
.sonosFavoriteNumber {}
.sonosFavoriteCover img {
    width: 30px;
    height: 30px;
}
.sonosFavoriteTitle {}

.sonosQueueTable {
    color: #bbb;
    font-size: 12px;
}
.sonosQueueRow {
    display: table-row;
    cursor: pointer;
}
.sonosQueueRow.currentTrack {
    color: #fff;
    font-weight: bold;
}
.sonosQueueTrackNumber {}
.sonosQueueTrackCover img {
    width: 30px;
    height: 30px;
    display: table-column;
}
.sonosQueueTrackArtist {
    display: table-row;
}
.sonosQueueTrackAlbum {
    display: none;
}
.sonosQueueTrackTitle {
    display: table-row;
}

To Do

Configuration

Changelog

WORK IN PROGRESS

3.0.0 (2023-10-09)

2.3.3 (2023-09-21)

2.3.2 (2023-09-20)

2.3.1 (2023-03-22)

2.3.0 (2023-01-11)

2.2.3 (2022-07-04)

2.2.2 (2022-06-12)

2.2.1 (2022-06-12)

2.2.0 (2022-06-08)

2.1.7 (2021-12-20)

2.1.4 (2021-12-17)

2.1.1 (2020-11-08)

2.1.0 (2020-05-31)

2.0.2 (2020-05-25)

2.0.1 (2019-11-04)

2.0.0 (2019-08-13)

1.8.0 (2019-01-04)

1.7.7 (2018-08-06)

1.7.5 (2018-08-06)

1.7.4 (2018-07-23)

1.7.1 (2018-07-17)

1.7.0 (2018-07-16)

1.6.2 (2017-08-16)

1.6.0 (2017-04-09)

1.5.0 (2017-02-23)

1.4.4 (2017-01-29)

1.4.3 (2017-01-08)

1.4.2 (2016-12-29)

1.3.1 (2016-12-27)

1.3.0 (2016-12-13)

1.2.1 (2016-12-10)

1.2.0 (2016-10-25)

1.1.0 (2016-10-20)

1.0.0 (2016-10-16)

0.2.2 (2016-09-30)

0.2.1 (2016-09-25)

0.2.0 (2016-07-28)

0.1.10 (2016-05-26)

0.1.9 (2016-05-20)

0.1.8 (2016-02-22)

0.1.7 (2015-09-14)

0.1.6 (2015-02-25)

0.1.5 (2015-02-13)

0.1.4 (2015-01-04)

0.1.3 (2015-01-02)

0.1.2 (2014-12-12)

0.1.1 (2014-12-04)

0.1.0 (2014-12-04)

0.0.5 (2014-11-24)

0.0.4 (2014-11-22)

0.0.3 (2014-11-01)

0.0.2 (2014-11-01)

License

The MIT License (MIT)

Copyright (c) 2014-2024, bluefox dogafox@gmail.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.