Sony Soundbar

Anyway to get home assistant working with a Ht CT800 Soundbar? i’d like to power it on from my Windows 10 tablet and then cast Spodify.

I was able to get the tv configured, but cannot find a way to set the PIN on the soundbar or get it to prompt.

I would like to see this too
I think you will need to request this as a feature

Is that supported by the Songpal mobile app? If yes, then I have some sort of support for those devices (not yet published though, tested only on HT-XT3). I have been working on to make it publishable, but do not currently have time for that. I will try to find some before the holidays and would appreciate feedback then :slight_smile:

2 Likes

yes it works great with songpal, i would love to see what you come up with.

I would love to see this too. I have a CT790 and would love to control it together with Hass. Sony has a Audio API but it seems to only be supported by CT800 which isn’t that different from the CT790.

http://vssupport.sony.net/en_ww/device.html contains the list of devices which are likely to be supported, both of those seem to be listed there.

I just did the first release of this code, please check out https://github.com/rytilahti/python-songpal and let me know if it’s working (and report issues on github please!). Code contributions and fixes are also welcome!

Hello Teprrr

I tried your plugin but get following error when running songpal discover:

Traceback (most recent call last):
File “/home/homeassistant/bin/songpal”, line 7, in
from songpal.main import cli
File “/home/homeassistant/lib/python3.5/site-packages/songpal/init.py”, line 2, in
from songpal.protocol import Protocol
File “/home/homeassistant/lib/python3.5/site-packages/songpal/protocol.py”, line 10, in
from songpal.containers import (
File “/home/homeassistant/lib/python3.5/site-packages/songpal/containers.py”, line 3, in
import attr
ImportError: No module named ‘attr’

so i pip install attr but then i get:

Traceback (most recent call last):
File “/home/homeassistant/bin/songpal”, line 7, in
from songpal.main import cli
File “/home/homeassistant/lib/python3.5/site-packages/songpal/init.py”, line 2, in
from songpal.protocol import Protocol
File “/home/homeassistant/lib/python3.5/site-packages/songpal/protocol.py”, line 10, in
from songpal.containers import (
File “/home/homeassistant/lib/python3.5/site-packages/songpal/containers.py”, line 6, in
@attr.s
AttributeError: module ‘attr’ has no attribute ‘s’

Its as if attr isnt working properly. Do you have any idea what could be wrong or missing?

BR
Baddar

Hi, I just fixed that in the git (the name of the library is unfortunately named), you should install attrs for it to work.