hyperion-project / hyperion.ng

The successor to Hyperion aka Hyperion Next Generation
https://hyperion-project.org/
MIT License
3.03k stars 377 forks source link

Hyperion and DiyHue Bridge #769

Closed BTopbas closed 4 years ago

BTopbas commented 4 years ago

Bug report

I am using DiyHue Virtual Hue Bridge. I am successfully discovery this fake bridge with my iPhone hue apps, and Philips Ambilight TVs. But in Hyperion this bridge not found. I write bridge IP also nothing happening.

Here is DiyHue Bridge: https://diyhue.org/

PS: I know the build is not original. But I first try the latest original build. Original build can't find a bridge. After that, I compile SJunkies build. So the same system and same happens.

PS2: Yes. I have Philips Ambilight Tv and I am still using ws2812b's strips in my Ambilight tv with android grabber. Maybe this is a most stupid thing but I love Hyperion more than Ambilight.

Steps to reproduce

Connect Hue Bridge.

What is expected?

Successfully discovery and connect to hue bridge.

What is actually happening?

Not discovery Hue Bridge.

System

Hyperion Server:

Hyperion Server OS:

tpmodding commented 4 years ago

Did you also tested this PR https://github.com/hyperion-project/hyperion.ng/pull/592 ?

SJunkies commented 4 years ago

@tpmodding the entertainment-api-2020 branch is currently the same as the entertainment-api-2019 branch. @BTopbas Thanks! I will look into this problem soon.

BTopbas commented 4 years ago

@SJunkies if you need any info or debug messages I am here. Today I am successfully connected hue bridge with Hyperion! But without a wizard. I added an IP address and username manually. hyperion

I have used Hue essentials app for extract username. And copy username. After that connect is successfully. Wizard still no response.

Screen Shot 2020-04-17 at 17 58 56

I used local IP because Hue emulator installed the same device with Hyperion. So now no problem. I can control lights with Hyperion. I edited config.json manually. Philips Hue Wizard is still not working.

SJunkies commented 4 years ago

@BTopbas thanks for your input and help! the bridge discovery inside the wizard works currently only with https://discovery.meethue.com website. If no data is available over this URL, manually typed in bridge IP is needed. Use Target-IP: 192.168.2.5 like on your devices screenshot and restart the wizard. If the bridge is found, you can create a new user inside the wizard and configure your lights. All updates within the Hue Bridge/Lights/Wizard etc. currently available inside the #592. for this PR: I will try to add bridge discovery through SSDP later... To use the entertainment API, an entertainment group is required, which must first be created with one of the Hue apps.

SJunkies commented 4 years ago

are you sure, that your username is correct? Do you get response from API, when u open the url inside a browser: http://BRIDGEIP/api/USERNAME/

I think the existing usernames cannot be accessed in readable format through the REST API...but maybe i’m wrong!?

Lord-Grey commented 4 years ago

@SJunkies The Username is OK. It is the wizard.js that has problems. If you use the previous version the wizard works. With the latest version, one cannot proceed beyond the assistant's intro screen.

If you look at the console output you will find:

ReferenceError: ev is not definedwizard.js:784:13
    beginWizardHue http://localhost:8090/js/wizard.js:784
    startWizardPhilipsHue http://localhost:8090/js/wizard.js:602
    jQuery 2

Hoping that ring-fences the issue.

Lord-Grey commented 4 years ago

@SJunkies In addition, the configuration item "Log all Hue commands" is only available, if Entertainment API is selected. It should be available for classic API, too. Please remove that dependency in the definition file.

SJunkies commented 4 years ago

@SJunkies The Username is OK. It is the wizard.js that has problems. If you use the previous version the wizard works. With the latest version, one cannot proceed beyond the assistant's intro screen.

If you look at the console output you will find:

ReferenceError: ev is not definedwizard.js:784:13
    beginWizardHue http://localhost:8090/js/wizard.js:784
    startWizardPhilipsHue http://localhost:8090/js/wizard.js:602
    jQuery 2

Hoping that ring-fences the issue.

Thanks for this! my editor wasn't case sensitive, while i did the last changes with search / replace 🤦 Fix coming soon. Sorry for that :/

@SJunkies In addition, the configuration item "Log all Hue commands" is only available, if Entertainment API is selected. It should be available for classic API, too. Please remove that dependency in the definition file.

your wish is my command ... You're right, I'll change it with the next commit 👍

BTopbas commented 4 years ago

are you sure, that your username is correct? Do you get response from API, when u open the url inside a browser: http://BRIDGEIP/api/USERNAME/

I think the existing usernames cannot be accessed in readable format through the REST API...but maybe i’m wrong!?

@SJunkies Yes I get response. Here is output.

{"lights":{"1":{"capabilities":{"certified":true,"control":{"colorgamut":[[0.704,0.296],[0.2151,0.7106],[0.138,0.08]],"colorgamuttype":"A","maxlumen":200,"mindimlevel":10000},"streaming":{"proxy":false,"renderer":true}},"manufacturername":"Philips","modelid":"LST002","name":"Hue WS2812 strip 1","state":{"alert":"none","bri":35,"colormode":"xy","ct":200,"effect":"none","hue":62536,"mode":"homeautomation","on":false,"reachable":false,"sat":254,"transitiontime":1,"xy":[0.6716,0.2986]},"swversion":"5.127.1.26581","type":"Color light","uniqueid":"00:17:88:01:00:6b:0d:99-0b","productname":"Hue lightstrip plus","config":{"archetype":"huelightstrip","function":"mixed","direction":"omnidirectional","startup":{"mode":"safety","configured":false}}}},"groups":{"1":{"action":{"on":false,"bri":35,"ct":200,"hue":62536,"sat":254,"xy":[0.6716,0.2986]},"class":"Living room","lights":["1"],"name":"Art","state":{"any_on":false,"all_on":false},"type":"Room","sensors":[]}},"config":{"Hue Essentials key":"e79aa50e7f5e11eab069d076580a5c5f","Remote API enabled":false,"UTC":"2020-04-18T15:09:16","apiversion":"1.35.0","backup":{"errorcode":0,"status":"idle"},"bridgeid":"D07658FFFE0A5C5F","datastoreversion":"70","dhcp":true,"factorynew":false,"gateway":"192.168.2.1","internetservices":{"internet":"connected","remoteaccess":"connected","swupdate":"connected","time":"connected"},"ipaddress":"192.168.2.5","linkbutton":false,"localtime":"2020-04-18T15:09:16","mac":"d0:76:58:0a:5c:5f","modelid":"BSB002","name":"Philips hue","netmask":"255.255.255.0","portalconnection":"connected","portalservices":true,"portalstate":{"communication":"disconnected","incoming":false,"outgoing":true,"signedon":true},"proxyaddress":"none","proxyport":0,"replacesbridgeid":null,"starterkitid":"","swupdate":{"checkforupdate":false,"devicetypes":{"bridge":false,"lights":[],"sensors":[]},"notify":true,"text":"","updatestate":0,"url":""},"swupdate2":{"autoinstall":{"on":true}},"swversion":"1937113020","timezone":"Europe/Bucharest","whitelist":{"6eb521447f6011eabe57d076580a5c5f":{"create date":"2020-04-15T21:31:13","last use date":"2020-04-17T22:51:03","name":"Hue 3#Batuhan’s iPhone"},"hueessde7f6011eabc2ad076580a5c5f":{"create date":"2020-04-15T21:33:18","last use date":"2020-04-18T15:09:16","name":"Hue Essentials#iPhone"},"web-ui-7589":{"create date":"2020-04-15T21:20:25","last use date":"2020-04-16T07:54:36","name":"WebGui User"}},"zigbeechannel":25},"scenes":{"1":{"appdata":{"data":"eSRpL_r01_d01","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Relax","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"10":{"appdata":{"data":"GBHmN_r01_d17","version":1},"group":"1","lastupdated":"2020-04-17T16:14:15","locked":false,"name":"Arctic aurora","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"11":{"appdata":{"data":"T2XBZ_r01_d18","version":1},"group":"1","lastupdated":"2020-04-17T16:14:15","locked":false,"name":"Spring blossom","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"2":{"appdata":{"data":"pdYu4_r01_d02","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Read","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"3":{"appdata":{"data":"aXyQZ_r01_d03","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Concentrate","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"4":{"appdata":{"data":"4Atfe_r01_d04","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Energize","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"5":{"appdata":{"data":"5Isqm_r01_d05","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Bright","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"6":{"appdata":{"data":"llvRj_r01_d06","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Dimmed","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"7":{"appdata":{"data":"wBiA6_r01_d07","version":1},"group":"1","lastupdated":"2020-04-17T16:14:14","locked":false,"name":"Nightlight","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"8":{"appdata":{"data":"yCrKo_r01_d15","version":1},"group":"1","lastupdated":"2020-04-17T16:14:15","locked":false,"name":"Savanna sunset","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]},"9":{"appdata":{"data":"wtJrd_r01_d16","version":1},"group":"1","lastupdated":"2020-04-17T16:14:15","locked":false,"name":"Tropical twilight","owner":"6eb521447f6011eabe57d076580a5c5f","picture":"","recycle":false,"type":"GroupScene","version":2,"lights":["1"]}},"schedules":{},"rules":{},"sensors":{"1":{"config":{"configured":false,"on":true,"sunriseoffset":30,"sunsetoffset":-30},"manufacturername":"Philips","modelid":"PHDL00","name":"Daylight","state":{"daylight":null,"lastupdated":"none"},"swversion":"1.0","type":"Daylight"}},"resourcelinks":{}}

Lord-Grey commented 4 years ago

@BTopbas @SJunkies already fixed the issue. You may want to try his latest code base.

SJunkies commented 4 years ago

@BTopbas

@SJunkies Yes I get response. Here is output.

thanks for testing!

I could setup the DIYHue with Docker and found the current problem inside the wizard. The DIYHue bridge, don't behave like a original Philips Hue bridge! The REST API call: http://BRIDGEIP/api/ don't work and result in a 404, but thats the base to identify a Hue bridge with the wizard, because the original bridge return a json information over that URL.

@all I'm currently trying some workarounds, but for security reasons, it would be best if someone else could insert a hyperion command with "sendToHyperion" over the API to execute an SSPD search with SSDPDiscover Class and return the results to the frontend. This would also be the best way to remove internet dependencies from the https://discovery.meethue.com URL to work on offline networks as well.

EDIT: I also tryed ajax XML check for /description.xml as quick solution, but the original bridge don't respondes with a Access-Control-Allow-Origin header, so the request failed!

Lord-Grey commented 4 years ago

@SJunkies I have the same need for the Yeelight ssdp discovery. Plus some additional tweaks as Yeelight has some proprietary stuff. I will have a Look when I have the lights basics working.

Lord-Grey commented 4 years ago

@sjunkies I manged to get the diyHue bridge running and via a RESTClient I managed also to get a username and clientkey. Then I created and Entertainment Group with one light and activated streaming.

The I started hyperion with the right parameters, but the device goes into error "Bridge response is not Valid'".

If I look at the bridge's response. It is a valid Success message. Looks like there is an issue, if the stream is active, you try to disable it...

Please find the log details below:

hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:358:log()> Entertainment Group found     : [4] 
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:358:log()> Lights in Group               : 1
[hyperiond LEDDEVICE] <INFO> Entertainment Group [4] "" with 1 Lights found
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:358:log()> Light-IDs configured          : 1
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:358:log()> Light-IDs                     : 1
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:744:PhilipsHueLight()> Recognized model id LCT001 of light ID 1 as gamut B
[hyperiond LEDDEVICE] <INFO> Light ID 1 ("Hue Lamp 1", LED index "0") created
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Streamer Debug            : yes
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL DebugLevel                : [4] Verbose
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Servername                : Hue
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Host                      : 192.168.2.152
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Port                      : 2100
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> PSK                           : 321c0c2ebfa7361e55491095b2f5f9db
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> PSK-Identity                  : 2bd7034a81ab11eab438000c29d8d52d
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Transport Type            : DTLS
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Seed Custom               : dtls_client
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Retry Left                : 5
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Read Timeout              : 0
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake Timeout min     : 400
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake Timeout max     : 1000
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake attempts        : 5
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:91:init()> Successfully parsed 192.168.2.152 as an ip address.
[hyperiond LEDDEVICE] <DEBUG> <ProviderUdpSSL.cpp:122:init()> UDP SSL using 192.168.2.152:2100
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:563:getJson()> GET: [http://192.168.2.152:80/api/2bd7034a81ab11eab438000c29d8d52d/groups/4]
[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> LED device: enabled
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:613:handleReply()> Reply.httpStatusCode [200]
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:630:handleReply()> Reply: [{"action":{"bri":221,"ct":0,"hue":10105,"on":false,"sat":254,"xy":[0.4356,0.4967]},"class":"TV","lights":["1"],"locations":{"1":[0,0.7,0]},"state":{"all_on":false,"any_on":false},"stream":{"active":true,"owner":"2bd7034a81ab11eab438000c29d8d52d","proxymode":"auto","proxynode":"/bridge"},"type":"Entertainment"}]
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:1144:initStream()> Group: "" [4] is in use, try to stop stream
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:587:putJson()> PUT: [http://192.168.2.152:80/api/2bd7034a81ab11eab438000c29d8d52d/groups/4] [{"stream":{"active":false}}]
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:613:handleReply()> Reply.httpStatusCode [200]
[hyperiond LEDDEVICE] <DEBUG> <LedDevicePhilipsHue.cpp:630:handleReply()> Reply: [[{"success":{"/groups/4/stream":{"active":false}}}]]
[hyperiond LEDDEVICE] <ERROR> Device disabled, device 'philipshue' signals error: 'set stream to false: Bridge response is not Valid'
[hyperiond LEDDEVICE] <ERROR> Group: "" [4] couldn't stop by user: "2bd7034a81ab11eab438000c29d8d52d" - Entertainment API not usable[hyperiond ComponentRegister] <DEBUG> <ComponentRegister.cpp:36:setNewComponentState()> LED device: disabled

If I set the entertainment group to {"stream":{"active":false}} before starting, the same error occurs:

[hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Streamer Debug : yes [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL DebugLevel : [4] Verbose [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Servername : Hue [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Host : 192.168.2.152 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Port : 2100 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> PSK : 321c0c2ebfa7361e55491095b2f5f9db [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> PSK-Identity : 2bd7034a81ab11eab438000c29d8d52d [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Transport Type : DTLS [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Seed Custom : dtls_client [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Retry Left : 5 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Read Timeout : 0 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake Timeout min : 400 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake Timeout max : 1000 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:183:configLog()> SSL Handshake attempts : 5 [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:91:init()> Successfully parsed 192.168.2.152 as an ip address. [hyperiond LEDDEVICE] <ProviderUdpSSL.cpp:122:init()> UDP SSL using 192.168.2.152:2100 [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:563:getJson()> GET: [http://192.168.2.152:80/api/2bd7034a81ab11eab438000c29d8d52d/groups/4] [hyperiond ComponentRegister] <ComponentRegister.cpp:36:setNewComponentState()> LED device: enabled [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:613:handleReply()> Reply.httpStatusCode [200] [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:630:handleReply()> Reply: [{"action":{"bri":221,"ct":0,"hue":10105,"on":false,"sat":254,"xy":[0.4356,0.4967]},"class":"TV","lights":["1"],"locations":{"1":[0,0.7,0]},"state":{"all_on":false,"any_on":false},"stream":{"active":false,"owner":null,"proxymode":"auto","proxynode":"/bridge"},"type":"Entertainment"}] [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:1195:startStream()> Start entertainment stream [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:587:putJson()> PUT: [http://192.168.2.152:80/api/2bd7034a81ab11eab438000c29d8d52d/groups/4] [{"stream":{"active":true}}] [hyperiond HYPERION] <PriorityMuxer.cpp:238:setInputImage()> Priority 0 is now active [hyperiond HYPERION] <PriorityMuxer.cpp:333:setCurrentTime()> Set visible priority to 0 [hyperiond HYPERION] <PriorityMuxer.cpp:198:setInput()> Priority 254 is now active [hyperiond X11] <GrabberWrapper.cpp:49:start()> Grabber start() [hyperiond HYPERION] Hyperion instance 'First LED Hardware instance' has been started [hyperiond X11GRABBER] Update of screen resolution: [0x0] to [3280x1200] [hyperiond X11GRABBER] Using XRender for grabbing [hyperiond X11GRABBER] Update output image resolution: [0x0] to [410x150] [hyperiond X11GRABBER] Capture interface is now enabled [hyperiond HYPERION] <PriorityMuxer.cpp:238:setInputImage()> Priority 250 is now active [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:613:handleReply()> Reply.httpStatusCode [200] [hyperiond LEDDEVICE] <LedDevicePhilipsHue.cpp:630:handleReply()> Reply: [[{"success":{"/groups/4/stream":{"active":true}}}]] [hyperiond LEDDEVICE] Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid' [hyperiond LEDDEVICE] Philips Hue Entertaiment API could not initialisized!

Lord-Grey commented 4 years ago

@SJunkies Currently, if one configures the bridge manually via IP(e.g. for diyHue), plus having a valid username configured, the wizard does not continue. This is due to the fact that the username configured is not passed to the brigde checking.

The following changes passes the configured username and one can use the wizard. That also works with diyHue and manual IP-Config. Please have a look, if the suggested changes are not in conflict with other logic. I have not tested it in all combinations....

//check if ip is empty/reachable/search for bridge if(eV("output") == "") { getHueIPs(); } else { var ip = eV("output"); $('#ip').val(ip); hueIPs.push({internalipaddress : ip}); checkHueBridge(checkBridgeResult, $('#user').val()); }

$('#retry_bridge').off().on('click', function(){ hueIPs.push({internalipaddress : $('#ip').val()}); hueIPsinc = 0; checkHueBridge(checkBridgeResult, $('#user').val()); });

BTopbas commented 4 years ago

@SJunkies Currently, if one configures the bridge manually via IP(e.g. for diyHue), plus having a valid username configured, the wizard does not continue. This is due to the fact that the username configured is not passed to the brigde checking.

The following changes passes the configured username and one can use the wizard. That also works with diyHue and manual IP-Config. Please have a look, if the suggested changes are not in conflict with other logic. I have not tested it in all combinations....

//check if ip is empty/reachable/search for bridge if(eV("output") == "") { getHueIPs(); } else { var ip = eV("output"); $('#ip').val(ip); hueIPs.push({internalipaddress : ip}); checkHueBridge(checkBridgeResult, $('#user').val()); }

$('#retry_bridge').off().on('click', function(){ hueIPs.push({internalipaddress : $('#ip').val()}); hueIPsinc = 0; checkHueBridge(checkBridgeResult, $('#user').val()); });

I compiled with these changes. And so far so good! Wizard is working!

SJunkies commented 4 years ago

fyi: I changed the Philips Hue wizard to recognize non-original bridges! Unfortunately it is not yet an SSDP solution, so the IP must still be entered manually, but I have changed the check to the IP/api/config URL so that it works at all ;) It should also work for other bridge alternatives...but myself have not tested any other than the DIYHue ....

The username (+ clientkey) for non-original bridges, can now also be created using the wizard.

SJunkies commented 4 years ago

@BTopbas Did everything work now and the issue can be closed or are there any other problems with the current version?

BTopbas commented 4 years ago

@SJunkies Yep. Everything works! Thanks for your hard work and effort! I am closing the issue.

SJunkies commented 4 years ago

Thank you!!!

jclsn commented 2 years ago

I have a similar issue with Hyperion 2.0.12. It says

2022-05-10T17:48:10.842Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'

I have connected via the Hue Entertainment Assistant and it works to this point.

Here is the full log:

Hyperion System Summary Report (My Hyperion Config), Reported instance: unknown

< ----- System information -------------------- >
Hyperion Server: 
- Build:           (HEAD detached at df149583) (GitHub-dc6aa4dd/df149583-1637501177)
- Build time:      Nov 21 2021 16:58:51
- Git Remote:      https://github.com/hyperion-project/hyperion.ng
- Version:         2.0.12
- UI Lang:         de (BrowserLang: de)
- UI Access:       default
- Avail Capt:      v4l2,framebuffer,amlogic,qt
- Config path:     /config/hyperion
- Database:        read/write

Hyperion Server OS: 
- Distribution:   Debian GNU/Linux 10 (buster)
- Architecture:   arm64
- CPU Type:       Raspberry Pi 4 Model B Rev 1.4
- CPU Revision:   c03114
- CPU Hardware:   BCM2835
- Kernel:         linux (5.10.103-v8 (WS: 64))
- Root/Admin:     true
- Qt Version:     5.7.1
- Python Version: 3.5.3
- Browser:        Mozilla/5.0 (X11; Linux x86_64; rv:100.0) Gecko/20100101 Firefox/100.0

< ----- Configured Instances ------------------ >
0: First LED Hardware instance Running: true

< ----- This instance's priorities ------------ >
150:  VISIBLE! (FLATBUFSERVER) Owner: undefined
priorities_autoselect: true

< ----- This instance components' status ------->
ALL - true
SMOOTHING - true
BLACKBORDER - true
FORWARDER - false
BOBLIGHTSERVER - true
GRABBER - false
V4L - false
LEDDEVICE - true

< ----- This instance's configuration --------- >
{"backgroundEffect":{"color":[255,138,0],"effect":"Warm mood blobs","enable":true,"type":"effect"},"blackborderdetector":{"blurRemoveCnt":1,"borderFrameCnt":50,"enable":true,"maxInconsistentCnt":10,"mode":"default","threshold":5,"unknownFrameCnt":600},"boblightServer":{"enable":false,"port":19333,"priority":128},"color":{"channelAdjustment":[{"backlightColored":false,"backlightThreshold":0,"blue":[0,0,255],"brightness":100,"brightnessCompensation":0,"cyan":[0,255,255],"gammaBlue":1,"gammaGreen":1,"gammaRed":1,"green":[0,255,0],"id":"default","leds":"*","magenta":[255,0,255],"red":[255,0,0],"white":[255,255,255],"yellow":[255,255,0]}],"imageToLedMappingType":"multicolor_mean"},"device":{"blackLightsTimeout":15000,"brightnessFactor":1,"brightnessMax":1,"brightnessMin":0,"brightnessThreshold":0,"clientkey":"1820843BDE604E138ECDAB1465F2517E","colorOrder":"rgb","debugLevel":"0","debugStreamer":false,"groupId":5,"hardwareLedCount":1,"host":"192.168.184.71","lightIds":["8"],"port":null,"restoreOriginalState":true,"sslHSTimeoutMax":1000,"sslHSTimeoutMin":400,"sslReadTimeout":0,"switchOffOnBlack":true,"transitiontime":1,"type":"philipshue","useEntertainmentAPI":true,"username":"8621d472d07a11ecacd4e45f0126b335","verbose":false},"effects":{"disable":[""],"paths":["$ROOT/custom-effects"]},"flatbufServer":{"enable":true,"port":19400,"timeout":5},"foregroundEffect":{"color":[255,0,0],"duration_ms":3000,"effect":"Rainbow swirl fast","enable":true,"type":"effect"},"forwarder":{"enable":false},"framegrabber":{"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"auto","enable":false,"fps":10,"height":45,"input":0,"pixelDecimation":8,"width":80},"general":{"configVersion":"2.0.12","name":"My Hyperion Config","previousVersion":"2.0.12","showOptHelp":true,"watchedVersionBranch":"Stable"},"grabberV4L2":{"blueSignalThreshold":0,"cecDetection":false,"cropBottom":0,"cropLeft":0,"cropRight":0,"cropTop":0,"device":"none","enable":false,"encoding":"NO_CHANGE","flip":"NO_CHANGE","fps":15,"fpsSoftwareDecimation":0,"greenSignalThreshold":100,"hardware_brightness":0,"hardware_contrast":0,"hardware_hue":0,"hardware_saturation":0,"height":0,"input":0,"noSignalCounterThreshold":200,"redSignalThreshold":0,"sDHOffsetMax":0.46,"sDHOffsetMin":0.4,"sDVOffsetMax":0.9,"sDVOffsetMin":0.1,"signalDetection":false,"sizeDecimation":8,"width":0},"instCapture":{"systemEnable":false,"systemGrabberDevice":"NONE","systemPriority":250,"v4lEnable":false,"v4lGrabberDevice":"NONE","v4lPriority":240},"jsonServer":{"port":19444},"ledConfig":{"classic":{"bottom":0,"edgegap":0,"glength":0,"gpos":0,"hdepth":8,"left":0,"overlap":0,"pblh":0,"pblv":100,"pbrh":100,"pbrv":100,"position":0,"ptlh":0,"ptlv":0,"ptrh":100,"ptrv":0,"reverse":false,"right":0,"top":1,"vdepth":5},"matrix":{"cabling":"snake","ledshoriz":1,"ledsvert":1,"start":"top-left"}},"leds":[{"hmax":0.15,"hmin":0,"name":"RGBW Lampe","vmax":1,"vmin":0.5}],"logger":{"level":"debug"},"network":{"apiAuth":true,"internetAccessAPI":false,"ipWhitelist":[],"localAdminAuth":true,"localApiAuth":false,"restirctedInternetAccessAPI":false},"protoServer":{"enable":true,"port":19445,"timeout":5},"smoothing":{"decay":1,"dithering":false,"enable":true,"interpolationRate":25,"outputRate":25,"time_ms":200,"type":"linear","updateDelay":0,"updateFrequency":25},"webConfig":{"crtPath":"","document_root":"","keyPassPhrase":"","keyPath":"","port":8090,"sslPort":8092}}

< ----- Current Log --------------------------- >
2022-05-10T17:31:08.233Z [ MAIN] (INFO) Starting Hyperion - 2.0.12, (HEAD detached at df149583) (GitHub-dc6aa4dd/df149583-1637501177), built: Nov 21 2021:17:14:40
2022-05-10T17:31:08.233Z [ MAIN] (INFO) Set user data path to '/config/hyperion'
2022-05-10T17:31:08.769Z [ DAEMON] (INFO) CEC handler created
2022-05-10T17:31:08.776Z [ EFFECTFILES] (INFO) 40 effects loaded from directory :/effects/
2022-05-10T17:31:08.780Z [ EFFECTFILES] (INFO) 22 effect schemas loaded from directory :/effects/schema/
2022-05-10T17:31:08.780Z [ EFFECTFILES] (INFO) 0 effects loaded from directory /config/hyperion/custom-effects/
2022-05-10T17:31:09.325Z [ DAEMON] (INFO) set screen capture device to 'dispmanx'
2022-05-10T17:31:09.328Z [ JSONSERVER] (INFO) Started on port 19444
2022-05-10T17:31:09.328Z [ LEDDEVICE] (INFO) Start LedDevice 'philipshue'.
2022-05-10T17:31:09.329Z [ EFFECTENGINE] (INFO) Run effect "Rainbow swirl fast" on channel 1
2022-05-10T17:31:09.330Z [ HYPERION] (INFO) Initial foreground effect 'Rainbow swirl fast' started
2022-05-10T17:31:09.331Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:31:09.332Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:31:09.340Z [ HYPERION] (INFO) Hyperion instance 'First LED Hardware instance' has been started
2022-05-10T17:31:09.341Z [ PROTOSERVER] (INFO) Started on port 19445
2022-05-10T17:31:09.341Z [ FLATBUFSERVER] (INFO) Started on port 19400
2022-05-10T17:31:09.365Z [ WEBSERVER] (INFO) 'Hyperion Webserver' started on port 8090
2022-05-10T17:31:09.368Z [ WEBSERVER] (INFO) 'Hyperion Webserver' started on port 8092
2022-05-10T17:31:09.380Z [ LEDDEVICE] (INFO) Entertainment Group [5] "Hyperion" with 1 Lights found
2022-05-10T17:31:09.380Z [ LEDDEVICE] (INFO) Light ID 8 ("RGBW Lampe", LED index "0") created
2022-05-10T17:31:09.400Z [ LEDDEVICE] (ERROR) Group: "Hyperion" [5] is in use and owned by other user: "" - Entertainment API not usable
2022-05-10T17:31:09.400Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:31:09.833Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:31:09.834Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:31:09.864Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:31:09.892Z [ LEDDEVICE] (ERROR) Group: "Hyperion" [5] is in use and owned by other user: "" - Entertainment API not usable
2022-05-10T17:31:09.893Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:31:12.512Z [ EFFECTENGINE] (INFO) Previous line repeats 2 times
2022-05-10T17:31:12.512Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:31:12.513Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:31:12.648Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'
2022-05-10T17:31:12.649Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:31:12.649Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to false: Bridge response is not Valid'
2022-05-10T17:32:03.107Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:32:07.678Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:32:07.679Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:32:13.288Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:32:34.060Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:32:34.063Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:32:35.267Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:32:56.146Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:32:56.149Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:33:33.854Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:34:01.715Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:34:01.716Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:34:07.319Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:34:08.753Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:34:08.755Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:36:28.211Z [ SETTINGSMGR] (WARNING) Fixing json data!
2022-05-10T17:36:28.226Z [ SETTINGSMGR] (WARNING) Config Fix: [root].device.rewriteTime: Removed property: rewriteTime
2022-05-10T17:37:26.213Z [ LEDDEVICE] (ERROR) Previous line repeats 5 times
2022-05-10T17:37:26.213Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'
2022-05-10T17:37:26.214Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:37:27.461Z [ BOBLIGHT] (INFO) Started on port 19333
2022-05-10T17:37:28.558Z [ LEDDEVICE] (ERROR) Group: "Hyperion" [5] is in use and owned by other user: "" - Entertainment API not usable
2022-05-10T17:37:28.558Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:37:51.492Z [ SETTINGSMGR] (WARNING) Fixing json data!
2022-05-10T17:37:51.507Z [ SETTINGSMGR] (WARNING) Config Fix: [root].device.rewriteTime: Removed property: rewriteTime
2022-05-10T17:39:16.216Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:39:30.935Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:39:30.937Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:39:31.034Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'
2022-05-10T17:39:31.034Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:39:31.035Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to false: Bridge response is not Valid'
2022-05-10T17:39:31.924Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:39:49.273Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:39:49.275Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:40:00.623Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:41:16.558Z [ SETTINGSMGR] (WARNING) Fixing json data!
2022-05-10T17:41:16.574Z [ SETTINGSMGR] (WARNING) Config Fix: [root].device.rewriteTime: Removed property: rewriteTime
2022-05-10T17:43:28.374Z [ SETTINGSMGR] (WARNING) Fixing json data!
2022-05-10T17:43:28.389Z [ SETTINGSMGR] (WARNING) Config Fix: [root].device.rewriteTime: Removed property: rewriteTime
2022-05-10T17:44:05.320Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:44:05.321Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:44:11.045Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:46:10.298Z [ EFFECTENGINE] (INFO) Run effect "Warm mood blobs" on channel 254
2022-05-10T17:46:10.298Z [ HYPERION] (INFO) Initial background effect 'Warm mood blobs' started
2022-05-10T17:48:10.841Z [ LEDDEVICE] (ERROR) Previous line repeats 3 times
2022-05-10T17:48:10.842Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'
2022-05-10T17:48:10.843Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:48:10.842Z [ LEDDEVICE] (ERROR) Device disabled, device 'philipshue' signals error: 'set stream to true: Bridge response is not Valid'
2022-05-10T17:48:10.843Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:48:13.378Z [ LEDDEVICE] (ERROR) Group: "Hyperion" [5] is in use and owned by other user: "" - Entertainment API not usable
2022-05-10T17:48:13.379Z [ LEDDEVICE] (ERROR) Philips Hue Entertainment API could not be initialised!
2022-05-10T17:48:18.667Z [ EFFECTENGINE] (INFO) effect finished
2022-05-10T17:49:13.109Z [ SETTINGSMGR] (WARNING) Fixing json data!
2022-05-10T17:49:13.125Z [ SETTINGSMGR] (WARNING) Config Fix: [root].device.rewriteTime: Removed property: rewriteTime