Soundflow cannot connect to Hue brideg.
System Information
SoundFlow 5.4.1
OS: darwin 21.6.0
ProductName: macOS
ProductVersion: 12.6.2
BuildVersion: 21G320
Steps to Reproduce
-
Installed the Hue package through the Soundflow store.
-
Tried running one of the presets to change the Hue scene. (Also tried coding my own preset and running that).
-
SF throws an error: "Please click the button on your Hue Bridge and try again."
-
I click the Hue bridge button and try again, and get the same error message.
-
I found this page (https://forum.soundflow.org/-2967/how-to-set-up-soundflow-hue), and followed the instructions (subbing in my Hue's address, username, and s/n), and got all the right responses in Terminal, but still no connection when re-attempting.
Expected Result
SF should connect to Hue and attempt to change the scene.
Actual Result
Error message is thrown and no connection made.
Workaround
Not to use Soundflow with my Streamdeck.
Other Notes
Log:
11.07.2023 10:58:14.43 [Backend]: Received run command: user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii
[ServerController] Running command from sfgui: 'Example' (user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii)
11.07.2023 10:58:14.43 [Backend]: >> Command: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]
11.07.2023 10:58:14.45 [Backend]: JavaScript error with InnerException: null
Logging error in action (01) RunCommandAction: Please click the button on your Hue Bridge and try again
(__ Hue line 55)
11.07.2023 10:58:14.45 [Backend]: !! Command Error: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]:
Please click the button on your Hue Bridge and try again
(__ Hue line 55)
<< Command: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]
11.07.2023 10:58:25.48 [Backend]: [SF_FIREBASE_WS]: Sending keep-alive
11.07.2023 10:58:56.17 [Backend]: Received run command: user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii
[ServerController] Running command from sfgui: 'Example' (user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii)
11.07.2023 10:58:56.17 [Backend]: >> Command: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]
11.07.2023 10:58:56.19 [Backend]: JavaScript error with InnerException: null
11.07.2023 10:58:56.19 [Backend]: Logging error in action (01) RunCommandAction: Please click the button on your Hue Bridge and try again
(__ Hue line 55)
!! Command Error: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]:
Please click the button on your Hue Bridge and try again
(__ Hue line 55)
<< Command: Example [user:cljf0vck60000ra10uzy283yi:ck6ognwat0007kd10xmc1l38i#ckf04nzvp000047100qae73ii]
Links
User UID: 5GWIFh0JMBc4A9P681mBOHXA6yu1
Feedback Key: sffeedback:5GWIFh0JMBc4A9P681mBOHXA6yu1:-N_4TZsHdZmsH-orMLsx
Linked from:
- WWill Robertson @Will_Robertson
@chrscheuer Can you help? Thank you!
Christian Scheuer @chrscheuer2023-07-15 18:37:50.509Z
Hi Will,
I don't have access to my Hue bridge at the moment so I'm not sure how helpful I can be if those steps you linked to didn't work. Is this a generation 2 of the Hue bridge?
Christian Scheuer @chrscheuer2023-07-15 18:41:12.620Z
Perhaps there's some slight variation in the output you got from the Terminal commands. Would you be able to copy/paste what you did? It may also be that the output will tell us about a new firmware update or something like that which may mean the method needs to be different for your specific unit.
- Comment deleted
- WWill Robertson @Will_Robertson
Sure! Here's what I did...
(And I bought this bridge a couple weeks ago, so it should be the newest one...)Wills-Mac-mini-1:~ willrobertson$ dns-sd -B _hue._tcp Browsing for _hue._tcp DATE: ---Sun 16 Jul 2023--- 20:38:47.569 ...STARTING... Timestamp A/R Flags if Domain Service Type Instance Name 20:38:47.569 Add 2 4 local. _hue._tcp. Philips Hue - 92E97F ^C Wills-Mac-mini-1:~ willrobertson$ dns-sd -L "Philips Hue - 92E97F" _hue._tcp Lookup Philips Hue - 92E97F._hue._tcp.local DATE: ---Sun 16 Jul 2023--- 20:39:07.063 ...STARTING... 20:39:07.182 Philips\032Hue\032-\03292E97F._hue._tcp.local. can be reached at ecb5fa92e97f.local.:443 (interface 4) bridgeid=ecb5fafffe92e97f modelid=BSB002 ^C Wills-Mac-mini-1:~ willrobertson$ curl http://ecb5fa92e97f.local/description.xml <?xml version="1.0" encoding="UTF-8" ?> <root xmlns="urn:schemas-upnp-org:device-1-0"> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <URLBase>http://192.168.1.166:80/</URLBase> <device> <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType> <friendlyName>Philips hue (192.168.1.166)</friendlyName> <manufacturer>Signify</manufacturer> <manufacturerURL>http://www.philips-hue.com</manufacturerURL> <modelDescription>Philips hue Personal Wireless Lighting</modelDescription> <modelName>Philips hue bridge 2015</modelName> <modelNumber>BSB002</modelNumber> <modelURL>http://www.philips-hue.com</modelURL> <serialNumber>ecb5fa92e97f</serialNumber> <UDN>uuid:2f402f80-da50-11e1-9b23-ecb5fa92e97f</UDN> <presentationURL>index.html</presentationURL> <iconList> <icon> <mimetype>image/png</mimetype> <height>48</height> <width>48</width> <depth>24</depth> <url>hue_logo_0.png</url> </icon> </iconList> </device> </root> Wills-Mac-mini-1:~ willrobertson$ curl -X POST -d '{"devicetype":"org.soundflow#test"}' http://ecb5fa92e97f.local/api [{"error":{"type":101,"address":"","description":"link button not pressed"}}]
(Here, I pushed the "link" button, and then tried again)
Wills-Mac-mini-1:~ willrobertson$ curl -X POST -d '{"devicetype":"org.soundflow#test"}' http://ecb5fa92e97f.local/api [{"success":{"username":"bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb"}}] Wills-Mac-mini-1:~ willrobertson$ echo -n '{"ecb5fa92e97f":{"username":"bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb"}}' > ~/.soundflow/hue/bridges.json Wills-Mac-mini-1:~ willrobertson$
Then I tried running a macro from Soundflow here, and still got the "Please press the button" error.
Thanks for your help!
Christian Scheuer @chrscheuer2023-07-17 10:01:57.766Z
Thanks, Will.
If you run this, what happens?
cat ~/.soundflow/hue/bridges.json
- WWill Robertson @Will_Robertson
I get this:
{"ecb5fa92e97f":{"username":"bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb"}}
Christian Scheuer @chrscheuer2023-07-17 16:56:04.120Z
Hm yea that does look correct.
Try running this:
curl http://ecb5fa92e97f.local/api/bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb/groups
What do you see?
- WWill Robertson @Will_Robertson
Very interesting. These are definitely the names of zones and rooms I've set up!
And yet, the error persists. I tried running "Hue: Select Scene" with Scene name "Fire" (one of my scenes) just now, and still got the same error message: "[Preset] failed | Please click the button on your Hue bridge and try again."
{"81":{"name":"Control room","lights":["2","1","8","6","5","10","9","7","14","15","16","17"],"sensors":[],"type":"Room","state":{"all_on":true,"any_on":true},"recycle":false,"class":"Music","action":{"on":true,"bri":254,"hue":8382,"sat":143,"effect":"none","xy":[0.4594,0.4104],"ct":370,"alert":"select","colormode":"ct"}},"82":{"name":"A room","lights":["3","4","20","19","18"],"sensors":[],"type":"Room","state":{"all_on":false,"any_on":false},"recycle":false,"class":"Living room","action":{"on":false,"bri":254,"hue":7782,"sat":193,"effect":"none","xy":[0.4963,0.4152],"ct":437,"alert":"select","colormode":"ct"}},"83":{"name":"B room","lights":["12","11"],"sensors":[],"type":"Room","state":{"all_on":false,"any_on":false},"recycle":false,"class":"Living room","action":{"on":false,"bri":110,"ct":454,"alert":"select","colormode":"ct"}},"84":{"name":"Studio","lights":["19","20","18","16","17","2","1","8","6","5","10","9","7","3","4","12","11","15","14"],"sensors":[],"type":"Zone","state":{"all_on":false,"any_on":true},"recycle":false,"class":"Music","action":{"on":true,"bri":254,"hue":8401,"sat":142,"effect":"none","xy":[0.4585,0.4103],"ct":369,"alert":"select","colormode":"ct"}},"85":{"name":"Status","lights":["13"],"sensors":[],"type":"Room","state":{"all_on":false,"any_on":false},"recycle":false,"class":"Hallway","action":{"on":false,"bri":144,"hue":7687,"sat":199,"effect":"none","xy":[0.5014,0.4153],"ct":443,"alert":"select","colormode":"hs"}}
Christian Scheuer @chrscheuer2023-07-17 18:23:56.917Z
Just updated the package to 1.1.5. Please try again (you'd be asked to click on the Hue link on the first attempt, but hopefully it'll work after the 2nd attempt)
- WWill Robertson @Will_Robertson
Hi Christian - after reading this, I uninstalled Hue and reinstalled it from the store, but the store's version still said 1.1.4 - I tried again with the same result (clicked the button, no dice).
But I wonder if by uninstalling/reinstalling, I undid what you just did? If so, I'm sorry - and please try again! Thanks for all your help.
Christian Scheuer @chrscheuer2023-07-18 09:12:43.094Z
Have you tried restarting SoundFlow? Then 1.1.5 should be there
- WWill Robertson @Will_Robertson
SUCCESS!!! That did the trick! Thanks so much, Christian - I really appreciate all your help!
Christian Scheuer @chrscheuer2023-07-18 20:19:21.787Z
Awesome! Thank you so much for the thorough testing and feedback :)
- SIn reply toWill_Robertson⬆:SoundFlow Bot @soundflowbot
This issue is now tracked internally by SoundFlow as SF-874
- SIn reply toWill_Robertson⬆:SoundFlow Bot @soundflowbot
The linked internal issue SF-381 has been marked as Done