kovalev-sergey / homebridge-sony-audio

HomeKit integration for Sony Audio products
Apache License 2.0
14 stars 0 forks source link

Support for TA-AN1000 AVR #40

Open Jonnnoy opened 6 months ago

Jonnnoy commented 6 months ago

Would it be possible for this to be updated with support for the TA-AN1000 AVR please?

Michelasso commented 4 months ago

Actually I have managed to make it working. Just added the IP address. A couple of things:

I would love to start Spotify via voice on my iPhone.

Jonnnoy commented 4 months ago

Added the IP address in what manner please? I have added to config in the default manner, then in the log it just shows this:

"[02/04/2024, 09:56:33] [Sony Audio Platform] Incompatible device found, skipped: TA-AN1000 "

Did you add / amend the config?

Thank you!

Michelasso commented 4 months ago

Just like this, in the settings:

Immagine 02-04-24 - 11 05

It works. As usual with Homebridge I get spammed with confusing buttons, but the one shown as a light is the volume and then there is the power button. The two others are for input and sound field.

I'm not sure why it doesn't work for you. Also this is my HB log for the amplifier:

[02/04/2024, 11:10:43] [SonyAudio] Initializing receiver accessory... [02/04/2024, 11:10:43] [SonyAudio] Creating receiver services! [02/04/2024, 11:10:43] [SonyAudio] Creating information service! [02/04/2024, 11:10:43] [SonyAudio] Creating volume lightbulb service! [02/04/2024, 11:10:43] [SonyAudio] Creating power service! [02/04/2024, 11:10:43] [SonyAudio] Creating soundfield service Surround Mode! [02/04/2024, 11:10:43] [SonyAudio] Creating soundfield service Stereo Mode! [02/04/2024, 11:10:43] [SonyAudio] Starting notification websockets ... [02/04/2024, 11:10:44] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge 9209) is running on port 51203. [02/04/2024, 11:10:45] [SonyAudio] WebSocket client connected on endpoint ws://192.168.1.4:10000/sony/audio [02/04/2024, 11:10:45] [SonyAudio] WebSocket client connected on endpoint ws://192.168.1.4:10000/sony/avContent [02/04/2024, 11:10:45] [SonyAudio] Network standby is currently on

I renamed the TA-AN1000 to "Sony" later, but it worked at the first try.

Michelasso commented 4 months ago

Actually I have managed to make it working. Just added the IP address. A couple of things:

  • My Mac on Terminal reports the hostname as sonyaudio (.local in case). Would it be possible to add this instead of the (dynamic) IP Address?
  • Do you have a copy of the API which disappeared from Sony Support site?

I would love to start Spotify via voice on my iPhone.

To answer my own question I believe I've found the document with all API. I have to dig on it, but that's a starting point.

Michelasso commented 3 months ago

Hi @Jonnnoy , I see now that I was using another plugin... Sorry. Nope, this one doesn't work for me either. I get this in the log:

[28/04/2024, 11:21:07] [Sony Audio Platform] Incompatible device found, skipped: Sony

Sony is how I called my device with the other plugin. I thought I deleted everything, also via command line, but somehow that name is still there. Anyway, Sony Audio Control works. Far from perfect (I hate that it doesn't update the status of volume & C) but it does the job. Although I am afraid it's messing with the AVR WiFi, the app Music Center and AirPlay lose the connection. While the HomeKit devices still work.

Jonnnoy commented 3 months ago

Ah fair enough, thanks for the info!