casperboone / homey-sony-srs-multiroom-speakers

🔉 Control your Sony speakers via Homey
1 stars 1 forks source link

API question #7

Open anom123 opened 5 years ago

anom123 commented 5 years ago

I'm planning to buy the latest SONY STR-DN1080 receiver, according to the below page it shares the same API as the SRS-ZR5 https://developer.sony.com/posts/760461/ however it's not really an SRS. Are you using that API and would you expect the basic functionalityt to work for the STR-DN1080 with the Homey (e.g. power on, start spotify etc).

If you expect it does, I'll purchase it and provide my feedback :-).

PS: my apologies if I should be able to find this answer on my own - I'm totally a newbie on Github

casperboone commented 5 years ago

I'm not using that API, but mostly because I didn't know it existed! It looks good, thanks for telling me about its existence. I hope to look into it soon!

casperboone commented 5 years ago

Oh, I think I am actually using that API, it just wasn't documented back when I developed this app. However, I don't expect the receiver to work with the current version of the app.

We might be able to work on it together, however I first need to get the current app updated for the new speaker firmware and Homey v2.

anom123 commented 5 years ago

Thanks Casper, I'll buy the receiver at Amazon.de I'm not a software developer myself, but I've been working for hardware vendors since many years, I'm happy to test and assist etc, but my programming skills are almost zero :-).

freke commented 5 years ago

@anom123 @casperboone the SONY STR-DN1080 speaker is using the same API as the SRS-ZR5 speaker, but since the STR-DN1080 have multi zone capabilities the zone must be added as a parameter to some function calls to work. One other difference is power-on for the EU version of STR-DN1080. The STR-DN1080 EU version will shut down it's web services then going to standby and can only be woken via a WakeOnLAN message, all other supported devices and versions can be woken via the Audio Control API.

I have no knowledge a bout Homey:s capabilities so I can't say if this is a problem or not.

Best Regrades David Ã…berg SONY Developer World

anom123 commented 5 years ago

@freke @casperboone Tried WOL, but the receiver doesn't respond can we wake it up over BLE bluetooth?

Background details: I've installed the setup a few days ago. I knew about the EU power shut down before I purchased it. I've not been able to Wake it up via the Homey. Through Wireshark I do see the Homey does a WOL udp9 broadcast though, but it doesn't seem the DN1080 responds, I've seen WOL arrives on both Wired and Wi-Fi networks. Not even sure if you can do WOL on Wi-Fi though..., And I don't know if Sony supports WOL at all for EU models as their text is not very specific. So far I can wake-it-up by the InfraRed remote included with the receiver, but cloning that signal to the Homey doesn't work well enough, it seems that the IR signal generated by the Homey isn't strong enough, only when I test the IR multiple times at the setup of the IR signal the Sony responds, but not if I use it afterwards via a flow. Therefore I looked further, the receiver also Powers-on when a previously paired iPhone connects again over Bluetooth. I don't have to pair it again, I just verify my iPhone bluetooth connections and click on the receiver to force a connection. Even the Sony app on the iPhone doesn't have the Bluetooth activation option. I have to go via the iPhone settings. It would be nice if I could establish that Bluetootch connection with the Homey (if only just ot get it powered on in a remote way). Doing this might be a universal way of achieving PowerOn, even when the Homey is in a different room , enabling flows to have effect afterwards. Bear in mind, that it takes a minute or so between 'booting' and becoming available on the Wi-Fi network as an audio device - I've not found evidence it's much quicker connecting it to Ethernet over a wire.

anom123 commented 5 years ago

I've successfully added the STR-DN1080 as a device, meaning I could actually change a setting with the Homey. When the DN1080 is powered on, I can set the volume via a flow. Set the source won't work, there are no available sources listed unlikely with the ZR5 which has prepopulated sources. After setting the volume for the DN1080, I can no longer set the volume of the ZR5. Ultimately I'd like to be able to power the STR-DN1080 on preferably via Bluetooth from the Homey and start Spotify as a Multiroom music source for both the DN1080 and ZR5's configured together in a Multiroom profile.