Airfoil speakers

I’ve just finished a SmartApp that creates devices with (dis)connect and volume control for all Airfoil speakers on a configured computer. There are three components:

Full setup docs are here: https://github.com/jnewland/airfoil-api-smartthings#setup

Let me know if you have any questions/comments!

4 Likes

So i got this setup to see what all it can do, but i get and error when i try to select only of my airplay speakers it finds…

eaac77a2-77ed-468f-8d12-9bbdc0b59846  1:32:05 AM CDT: error groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.web.json.JSONArray.findAll() is applicable for argument types: (script14623435250081694483257$_addSpeakers_closure3_closure10, script14623435250081694483257$_addSpeakers_closure3_closure11) values: [script14623435250081694483257$_addSpeakers_closure3_closure10@fe79a7f, ...]
Possible solutions: findAll(), findAll(), findAll(groovy.lang.Closure), findAll(groovy.lang.Closure), find(), find() @ line 79

let me know if you have any ideas, thx

Could you shed some light on how you got this set up please? I spent weeks trying to install mdns and express - turns out I had an outdated version of node, now I’ve fixed that but it won’t run due to issues with app.js

Thinking of adding a HA bridge to act as a hue hub and connect the speakers to that, then add the HA hub to smartthings. Might have some luck

I went with a workaround but it adds a bit more integration - although as lights and not speakers

Is this still working? I can’t seem to get the airfoil-api running.