Philips Hue Leuchten mit Enigmalight steuern

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Hallo zusammen,

      ist hier schon jemand weitergekommen? Ich befürchte, dass es mit dem sslpsk-Patch auf der Box schwierig werden könnte. Wie ich das verstehe müssten wohl die notwendigen Bibliotheken auf einem anderen System cross-compiled werden. Hat da jemand Erfahrung mit? Aufm Rechner funktioniert der Code soweit ganz gut. Eine andere Alternative wäre, dass man eine Art Repeater dazwischen baut beispielsweise auf nem RPi und den UDP-Traffic dann zuerst dahin sendet und er dann die Authentifizierung mit der Bridge macht.
    • man könnte es auch über OpenSSL lösen.

      Shell-Script

      1. openssl s_client -connect 192.168.XXX.XXX:2100 -psk_identity 112233445566778899 -psk 998877665544332211 -dtls1_2 -cipher PSK-AES128-CBC-SHA


      identity ist der username und bei psk muss der clientkey eingetragen werden (statt der Ziffern).
      Der Befehl funktioniert aber erst nachdem der Parameter "stream" auf "true" gesetzt wurde.
      Fragt man anschließend die Bridge ab, dann ist hier der Benutzer eingetragen.

      Hilft das evtl weiter?
    • BarnyXX schrieb:

      Guter Ansatz, werde ich die Tage mal testen.
      Wenn ich das Handshake durchführe, kann ich zwar Befehle senden, aber da passiert gar nichts.

      Bisher habe ich per curl den stream aktiviert und dann per openssl (siehe oben) das Handshake ausgeführt.

      Den Python-Script habe ich am PC auch mal ausgeführt aber auch hier passiert nichts ("Ping" natürlich gegen den Code getauscht).

      Wie sieht denn dein Script zur Zeit aus? Mir würde es schon reichen, wenn zumindest eine Lampe mal leuchtet.
    • Hallo, ich habe mich gerade auch mal an Enigmalight und Hue Lampen gewagt.

      Ich habe Links und Rechts jeweils eine LivingColors Iris.

      Ich habe an der enigmalight_hue_LR.py die erforderlichen Änderungen vorgenommen, IP, API-Key ect. Dazu habe ich jedoch eine Frage, ist mit "Zeile 17+18 : ausgelesene Nummer der Leuchten" dies (rot markiert) gemeint:
      Spoiler anzeigen
      {
      "lights": {
      "1": {
      "state": {
      "on": false,
      "bri": 1,
      "hue": 0,
      "sat": 0,
      "effect": "none",
      "xy": [
      0.435,
      0.405
      ],

      bzw.

      {
      "lights": {
      "2": {
      "state": {
      "on": false,
      "bri": 1,
      "hue": 0,
      "sat": 0,
      "effect": "none",
      "xy": [
      0.435,
      0.405
      ],

      In der enigmalight_hue_LR.py stehts dann jetzt so:

      (Zeile 17:) lurl = url + '1/state'
      (Zeile 18:) rurl = url + '2/state'

      An der enigmalight.conf habe ich in der Zeile 25 + 34 noch die Namen geändert nach:
      Spoiler anzeigen
      },
      "type": "Color light",
      "name": "Lampe links",
      "modelid": "LLC010",
      "manufacturername": "Philips",
      "productname": "Hue iris",

      bzw.

      },
      "type": "Color light",
      "name": "Lampe rechts",
      "modelid": "LLC006",
      "manufacturername": "Philips",
      "productname": "LivingColors",

      war das korrekt?

      An der Datei rgb_xy.py habe ich bisher noch keine Änderungen vorgenommen, da ich nicht weiß was ich dort eintragen muss.

      Alle Dateien habe ich in die entsprechenden Ordner wir auf Seite 1 beschrieben kopiert. Ab hier weiß ich jetzt leider auch garnicht mehr weiter, was genau ich in dem Enigmalight Plugin wo einstellen muss. Ich bitte hier um Hilfe, vielen Dank!

      Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von hgdo ()

    • Hallo, ich habe ein Problem mit dem Enigmalight. Ich will damit einen LED Stripe steuern und bekomme immer folgende Fehlermeldung

      Spoiler anzeigen
      [InitLog] start of log /home/elight-addons/.enigmalight/enigmalight.log
      [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      [CConfig::CheckConfig] checking config lines
      [CConfig::CheckConfig] config lines valid
      [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      [CConfig::BuildConfig] building config
      [CConfig::BuildConfig] built config successfully
      [main] Start device 1 from 1
      "CDevice::Process] ambilight: starting with output "python /etc/enigmalight_hue_1x.py
      [CDevice::Process] ambilight: setting up
      [CEnigmaLight::SetColorSequence]Set colorsequence to RGB
      set adjust 0 0 0
      1[CGuiServer::Process] Start GuiServer
      [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
      [CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
      [CDevice::Process] ambilight: setup succeeded
      [CMainLoop::Process] Starting grabber..
      [CGrabber::Setup] Lights: 1, Cluster leds: 1 as one led
      [CGrabber::Setup] Channels: 3
      [CGrabber::Setup] Interval: 0.10
      [CGrabber::Run] Mode -> Dynamic
      [CGrabber::Run] Framegrabber initialized
      [CGrabber::Run] Framegrabber Image initialized
      [CGrabber::Run] Blackbar Detection initialized
      [CGrabber::Run] Framegrabber set up
      [CGrabber::Run] entering grabloop
      ': [Errno 2] No such file or directoryght_hue_1x.py


      Ich habe das Verzeichnis schon geändert aber irgendwie findet Python die Datei nicht. Hatte jemand ein ähnliches Problem und kann mir hier helfen?
      Gruß Lego

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von hgdo ()

    • hallo zusammen, habe ich die dateien richtig reingeschrieben ? def popen():
      converter = Converter(GamutC)
      spidev = file( os.getcwd()+'/aufruf.log', "wb")
      key = 00:17:88:01:04:79:0c:45-0b
      ip = 192.168.1.20
      url = '/api/' + key + '/lights/'
      lurl = LLC020 + '10/state'
      rurl = LLC020 + '11/state'

      oder fehlt ein Gänsefuß, oderähnliches.

      danke vorab.
      Menne.0201
    • Bekomms auch nicht hin

      Hi.....Lampen reagieren bei mir auch nicht, Log sagt nix aus. Was habt ihr im Plugin für einen Gerätetype eingestellt ? Weil.... in der config steht ja Name "ambilight".....nur man kann so viele Geräte auswählen...aber "ambilight" gibts nicht.. ?????

      lG
      Tom

      Edit: Auf Wunsch vom Posterteller verschoben
      ---------------------------------------------
      Was ist das...blaues Licht....und was macht das ?......es leuchtet blau.....

      Sry.....kein Support via PN

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von NaseDC ()

    • Hallo
      bisher hatte ich 4 Hue Go Lampen hinter meinem TV. Für oben und unten habe ich jetzt jeweils einen Lightstrip angebracht, so dass ich jetzt für links 2 und für rechts 2 Hue Gos habe.
      Ich poste euch mal die Dateien. Ja, natürlich, die Datei enigmalight_hue_4x.py müsste enigmalight_hue_6x.py heißen... Aber nun ist Feierabend :D
      Wo die Dateien hingehören, ist ja im ersten Beitrag beschrieben.
      Dateien
      Rückwärtslesen: Man fängt nicht vorne an zu lesen, man liest ein paar Posts bevor man selber postet.
      Boardsuche: Funktioniert fast wie Google. Bei mir ist sie oben rechts.
    • Danke für deine Antwort.Ich habe meine Konfigurationen hinzugefügt. vielleicht kannst du mal sehen.Ich habe dieses ipkg verwendet enigma2-plugin-extensions-enigmalight-arm_0.3-rc1_allDanke.

      Die rechte Lampe macht das gleiche wie die linke.
      Dateien
    • bei mir sieht die enigmalight.conf anders aus,
      und zwar bei der Zuweisung der Lampen links und rechts (hscan und vscan).
      dort habe ich folgendes stehen:

      position left
      hscan 0 50
      vscan 0 100

      position right
      hscan 50 100
      vscan 0 100

      Nach meinem Verständnis halbiert dies das Bild wodurch du die Aufteilung links und rechts erhältst.
    • Was mir aufgefallen ist, dein Counter in Zeile 8 steht auf 12 und in Zeile 46 auf 13. Bei 2 Lampen müsste dort für mein Verständnis 6 bzw. 7 stehen. Ich meine die enigmalight_hue_LR.py

      Mal versuchen... und nebenbei Profil ausfüllen. Denn ohne Receiver funktioniert das nicht :P
      Rückwärtslesen: Man fängt nicht vorne an zu lesen, man liest ein paar Posts bevor man selber postet.
      Boardsuche: Funktioniert fast wie Google. Bei mir ist sie oben rechts.

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Damp2000 ()

    • Hallo, Gemeinde,
      ich versuche mit meiner ultimo 4k und dem HUE mein Glück. Allerdings scheitere ich an folgender Stelle:
      Spoiler anzeigen


      enigmalight -d



      [InitLog]
      start of log /home/elight-addons/.enigmalight/enigmalight.log
      [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      [CConfig::CheckConfig] checking config lines
      [CConfig::CheckConfig] config lines valid
      [CConfig::LoadConfigFromFile] Opening /etc/enigmalight.conf
      [CConfig::BuildConfig] building config
      [CConfig::BuildConfig] built config successfully
      [main] Start device 1 from 1
      [CDevice::Process] ambilight: starting with output "python /home/elight-addons/wifilight/philips_hue/enigmalight_hue_1x.py"
      [CDevice::Process] ambilight: setting up
      [CGuiServer::Process] Start GuiServer
      [CGuiServer::Process] Opening listening socket for Enigma2 GUI on 127.0.0.1:6767
      [CDevice::Process] ambilight: setup succeeded
      [CEnigmaLight::SetColorSequence]Set colorsequence to RGB
      set adjust 0 0 0
      1[CFlagManager::SetVideoGamma] Gamma not set, using 2.2 since this is default for video
      [CMainLoop::Process] Starting grabber..
      [CGrabber::Setup] Lights: 1, Cluster leds: 1 as one led
      [CGrabber::Setup] Channels: 3
      [CGrabber::Setup] Interval: 0.10
      [CGrabber::Run] Mode -> Dynamic
      [CGrabber::Run] Framegrabber initialized
      [CGrabber::Run] Framegrabber Image initialized
      [CGrabber::Run] Blackbar Detection i
      nitialized
      [CFrameGrabber::Setup] Debug mode: enabled
      [CGrabber::Run] Framegrabber set up
      [CGrabber::Run] entering grabloop
      [CFrameGrabber::CheckRes] Set Scanrange to 120x67 (Source 538976288x538976288)


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds


      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds


      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds


      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66
      [CFrameGrabber::updateInfo] DBG -> gFPS:10.4 | Res:120x67 (538976288x538976288)


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66


      Traceback (most recent call last):
      File "/home/elight-addons/wifilight/philips_hue/enigmalight_hue_1x.py", line 76, in <module>
      popen()
      File "/home/elight-addons/wifilight/philips_hue/enigmalight_hue_1x.py", line 30, in popen
      lr,lg,lb,rr,rg,rb,x = eingabe.split(' ')
      ValueError: need more than 4 values to unpack


      [CBlackbarDetection::FindBounds]DBG -> FindBounds
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Scanning top: 36 - 36, bottom: 36 - 36, left: 20 - 46, right: 20 - 46
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found top line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 1
      [CBlackbarDetection::IsContent]
      DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found left line: 1
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 119
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found right line: 119
      [CBlackbarDetection::ScanLine] DBG -> Scanning line 66
      [CBlackbarDetection::IsContent] DBG -> IsContent: Max : R{0}, G{1}, B{2}
      [CBlackbarDetection::IsContent] DBG -> IsContent: Number of pixel above treshold : R{0}, G{1}, B{2}
      [CBlackbarDetection::FindBounds]DBG -> FindBounds: Found bottom line: 66
      root@vuultimo4k:~# [6n

      ValueError: need more than 4 values to unpack ?????????
      hier einmal die enigmalight_hue_1x.py:

      Spoiler anzeigen



      import sys
      import os
      import time
      import json
      import httplib
      from rgb_xy import Converter
      from rgb_xy import GamutC # or GamutA, GamutB (you must look for the type of your lamps in rgb_xy.py from line 42)
      counter = 12



      def popen():
      converter = Converter(GamutC)
      spidev = file( os.getcwd()+'/aufruf.log', "wb")
      key = "6YhDQmlf6NqEMto72v8FW7sumlXi19JUyHhSMfnR"
      ip = "192.168.0.21"
      url = '/api/6YhDQmlf6NqEMto72v8FW7sumlXi19JUyHhSMfnR/lights/'
      lurl = url + 'Hue color lamp 1 TV/state'
      rurl = url + 'Hue color lamp 2 Deko/state'

      MINIMAL_VALUE=0.000000000


      while True:
      eingabe = sys.stdin.readline()


      if len(eingabe)>0:
      global counter
      counter += 1

      try:
      lr,lg,lb,rr,rg,rb,x = eingabe.split(' ')
      except ValueError:
      spidev.write("Not enough input parameter, do you have the same amount of lights (channels) in your enigmalight config?")
      spidev.flush()
      raise


      lr = (float(lr))*255
      lg = (float(lg))*255
      lb = (float(lb))*255
      rr = (float(rr))*255
      rg = (float(rg))*255
      rb = (float(rb))*255


      lll = calcLuminance(lr,lg,lb)
      llr = calcLuminance(rr,rg,rb)


      if (counter>=13):
      connection = httplib.HTTPConnection(ip, timeout=10)


      lparams = {'xy': converter.rgb_to_xy(lr,lg,lb), 'colormode': 'xy', 'bri': int(lll), 'on': True}
      connection.request('PUT', lurl, json.dumps(lparams))
      response = connection.getresponse()

      rparams = {'xy': converter.rgb_to_xy(rr,rg,rb), 'colormode': 'xy', 'bri': int(llr), 'on': True}
      connection.request('PUT', rurl, json.dumps(rparams))
      response = connection.getresponse()


      connection.close()
      counter=0
      else:
      os.system("curl -d '{\"on\":false}' -X PUT 192.168.0.21/api/6YhDQmlf6NqEMto72v8FW7sumlXi19JUyHhSMfnR/groups/0/action")
      break



      def calcLuminance(r,g,b):
      LUM_VALUE=20
      luminance=1
      if (r + g + b > 2):
      luminance= r + g + b + LUM_VALUE
      if (luminance>=255):
      luminance=254


      return luminance


      import time
      time.sleep(1)
      popen()

      Ich hoffe, dass mir da einer von Euch helfen kann.