jnewland / airfoil-api-smartthings

[unmaintained] A SmartThings App & Device Handler to pair with airfoil-api
MIT License
3 stars 5 forks source link

Error in ST logs #3

Open yaggayoyo opened 7 years ago

yaggayoyo commented 7 years ago

java.lang.StringIndexOutOfBoundsException: String index out of range: 154 @ line 110

yaggayoyo commented 6 years ago

Mr Newland. I truly appreciate you creating this application for Smartthings and I understand your position with no longer supporting this but.....HELP!!

I am a not a dev but was able to install API and added Smart App and Device Handlers as you defined but I am still unable to get the application to see my speakers.

Here is my API results from browser: [{"connected":"false","volume":1,"name":"Computer","id":"com.rogueamoeba.airfoil.LocalSpeaker"},{"connected":"false","volume":1,"name":"Express2","id":"xxxxxxxxxxx@Express2"}]

Here is my Errors in Smartthings Logs: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:41 PM: debug GET: /speakers xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:33 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxx1225, networkAddress:xxxxxx31, deviceAddress:C000, stringCount:03, ssdpPath:/4/description.xml, ssdpUSN:uuid:xxxxxxxxx::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:32 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxxCFA3, networkAddress:xxxxxxED, deviceAddress:0B35, stringCount:03, ssdpPath:/upnphost/udhisapi.dll?content=uuid:xxxxxxxxx, ssdpUSN:uuid:xxxxxx::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:32 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxx1225, networkAddress:xxxxxx31, deviceAddress:C000, stringCount:03, ssdpPath:/4/description.xml, ssdpUSN:uuid:xxxxxx::urn:schemas-upnp-org:device:MediaRenderer:1, ssdpTerm:urn:schemas-upnp-org:device:MediaRenderer:1 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:20 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxx7968, networkAddress:xxxxxx14, deviceAddress:81F2, stringCount:03, ssdpPath:/rootdesc1.xml, ssdpUSN:uuid:xxxxxxx::urn:schemas-upnp-org:device:basic:1, ssdpTerm:urn:schemas-upnp-org:device:basic:1 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:19 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxxC2D0, networkAddress:xxxxxx0B, deviceAddress:226A, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:xxxxxx, ssdpTerm:urn:schemas-upnp-org:device:basic:1 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:19 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxxC2D0, networkAddress:xxxxxx0B, deviceAddress:226A, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:xxxxx, ssdpTerm:uuid:xxxxxx xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:37:19 PM: trace UNKNOWN EVENT devicetype:04, mac:xxxxxxxC2D0, networkAddress:xxxxxx0B, deviceAddress:226A, stringCount:03, ssdpPath:/description.xml, ssdpUSN:uuid:xxxxx::upnp:rootdevice, ssdpTerm:upnp:rootdevice xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:33:39 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:41 PM: debug GET: /speakers xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:04 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:04 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:03 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:03 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:32:02 PM: error java.lang.StringIndexOutOfBoundsException: String index out of range: 154 xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 3:30:53 PM: trace Speaker options: []

I am running version 5.6.4 of AirFoil and version 0.0.1 of airfoil-api.

Please help however you can. This application has SO much promise for my home automation and speaker setup.

ndlessfun commented 6 years ago

Yaggayoyo, Were you ever able to get this working? I am in the same boat. I have been running airfoil and airfoil.api for a couple years now coupled with Home Assistant and Alexa with no issues. I am trying to set things up using a Smartthings hub instead of Home Assistant and cannot get Smartthings to 'see' the airfoil speakers. Alexa finds them no problem but I cannot get Smartthings to see them as 'things'. If you were able to get things working on your setup it would be helpful if you could point me in the right direction. Thanks!

ijaspley commented 6 years ago

https://community.smartthings.com/t/multiroom-airplay-through-airfoil-with-smartthings-home-kit-android-wear-logitech-harmony-and-alex-control-is-this-integration/79840?u=ijaspley

On Fri, 13 Jul 2018, 16:02 ndlessfun, notifications@github.com wrote:

Yaggayoyo, Were you ever able to get this working? I am in the same boat. I have been running airfoil and airfoil.api for a couple years now coupled with Home Assistant and Alexa with no issues. I am trying to set things up using a Smartthings hub instead of Home Assistant and cannot get Smartthings to 'see' the airfoil speakers. Alexa finds them no problem but I cannot get Smartthings to see them as 'things'. If you were able to get things working on your setup it would be helpful if you could point me in the right direction. Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jnewland/airfoil-api-smartthings/issues/3#issuecomment-404859964, or mute the thread https://github.com/notifications/unsubscribe-auth/ASwPjmcUvul2jv5Nfq-OLRvo_vJ0wMBYks5uGLaEgaJpZM4OSQ6W .

ndlessfun commented 6 years ago

Thanks for the link. Unfortunately I have tried that route already. I was successful in setting up and configuring HA Bridge and was eventually able to get Smartthings to see the respective speakers. To avoid confusion I gave them different names than the pre-existing airfoil speakers that work fine with Alexa but cannot be discovered by Smartthings. Alexa is able to see both sets of speakers as 'devices'. The new HA Bridge solution does allow me to turn the new speakers on and off without issue but I am missing the volume function that I need. For some reason the volume control on the HA Bridge version of the speakers is not accurate. If I use a dimmer switch in Smartthings it's not consistent. Smartthings may say 5% but the speaker jumps to 75% etc. Control is the same if I ask Alexa to set one of the HA Bridge versions of the speakers to a specific % or ask to Dim or Brighten a specific amount. Not sure why this is happening but it makes the HA Bridge version of the speakers useless to me in their current configuration. Conversely if I give Alexa the same commands to the pre-existing airfoil speaker devices the volume is adjusted / controlled perfectly.