I’ve tried adding my Ikea Symfonisk bookshelf speaker. According to several posts on the forums it is supported and works.
- Binding sonos is installed. I added a callback to the server… http://ip:port. I also opened the port (tcp only).
- Settings > Audio > default → sonos
openhab> audio sinks
- Sonos SYMFONISK (Kitchen) (sonos:SYMFONISK:RINCON_347E5CF2CCD401400)
System Speaker (enhancedjavasound)
Web Audio (webaudio)
openhab>
- PaperUI detected and setup the Symfonisk; the UID matches the one stated on the device xml.
Tried the following command from script, and also the documentation example command via the console. No sound is played!
playSound(“sonos:SYMFONISK:RINCON_347E5CF2CCD401400”, “doorbell-2.mp3”, new PercentType(25));
The speaker does attempt to connect, tcpflow log:
> <execution_environment>
> <os_sysname>Linux</os_sysname>
> <os_release>4.19.0-13-amd64</os_release>
> <os_version>#1 SMP Debian 4.19.160-2 (2020-11-28)</os_version>
> x86_64
> <command_line>tcpflow -i any -C -J port 38080</command_line>
> 0
> root
> <start_time>2021-01-24T20:07:11Z</start_time>
> </execution_environment>
>
>
>
> 0
>
>
> 0
>
>
>
>
> <open_fds_at_end>0</open_fds_at_end>
> <max_open_flows>0</max_open_flows>
> <total_flows>1</total_flows>
> <flow_map_size>1</flow_map_size>
> <total_packets>1</total_packets>
>
> 0.018038
> 0.000000
> 10896
> 1246
> 0
> 0
> 0
> 8
> 14.087402
>
>
Seen this in the log once but not since the initial time I attempted to play a sound. PaperUI does not show any additional state info.
2021-01-24 19:22:16.389 [WARN ] [inding.sonos.internal.SonosAudioSink] - Sonos speaker ’
sonos:SYMFONISK:RINCON_347E5CF2CCD401400’ is not initialized - status is INITIALIZING
Edit: doorbell-2.mp3 exists. Also tried with the openhab default file.