No internet connection
  1. Home
  2. Support

Soundflow cannot connect to Hue brideg.

By Will Robertson @Will_Robertson
    2023-07-11 15:03:10.652Z

    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

    1. Installed the Hue package through the Soundflow store.

    2. Tried running one of the presets to change the Hue scene. (Also tried coding my own preset and running that).

    3. SF throws an error: "Please click the button on your Hue Bridge and try again."

    4. I click the Hue bridge button and try again, and get the same error message.

    5. 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

    Feedback ZIP

    Solved in post #14, click to view
    • 15 replies

    There are 15 replies. Estimated reading time: 12 minutes

    1. W
      Will Robertson @Will_Robertson
        2023-07-13 05:50:20.788Z

        @chrscheuer Can you help? Thank you!

        1. 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?

          1. 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.

            1. Comment deleted
              1. WWill Robertson @Will_Robertson
                  2023-07-17 01:48:50.564Z

                  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!

                  1. Thanks, Will.

                    If you run this, what happens?

                    cat ~/.soundflow/hue/bridges.json
                    
                    1. WWill Robertson @Will_Robertson
                        2023-07-17 14:53:05.653Z

                        I get this:

                        {"ecb5fa92e97f":{"username":"bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb"}}
                        
                        1. Hm yea that does look correct.

                          Try running this:

                          curl http://ecb5fa92e97f.local/api/bOhDIWKy2EVL-Urs17lGdrmahQslub8ZYALVcZRb/groups
                          

                          What do you see?

                          1. WWill Robertson @Will_Robertson
                              2023-07-17 18:16:59.755Z

                              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"}}
                              
                              1. 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)

                                1. WWill Robertson @Will_Robertson
                                    2023-07-17 19:31:21.338Z

                                    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.

                                    1. Have you tried restarting SoundFlow? Then 1.1.5 should be there

                                      ReplySolution
                                      1. WWill Robertson @Will_Robertson
                                          2023-07-18 19:55:47.188Z

                                          SUCCESS!!! That did the trick! Thanks so much, Christian - I really appreciate all your help!

                                          1. Awesome! Thank you so much for the thorough testing and feedback :)

                  2. S
                    In reply toWill_Robertson:
                    SoundFlow Bot @soundflowbot
                      2023-07-15 18:37:13.550Z

                      This issue is now tracked internally by SoundFlow as SF-874

                      1. S
                        In reply toWill_Robertson:
                        SoundFlow Bot @soundflowbot
                          2023-07-20 10:06:26.633Z

                          The linked internal issue SF-381 has been marked as Done