Ankündigung

Einklappen
Keine Ankündigung bisher.

Neuer Baustein Hue Group (14100)

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Chris010887
    antwortet
    ​Hallo zusammen,

    erst Mal danke für den tollen Baustein - ich habe ihn heute am Abend erstmalig verwendet. Ich bin auch schon recht weit gekommen, habe aus der Homeserver App keine Probleme.

    Allerdings klappt die Dimmung über einen Gira TS3 Komforttaster nicht so recht. Das Licht dimmt willkürlich, pulsiert, aber eine korrekte Dimmung habe ich noch nicht hinbekommen.

    Vermutlich habe ich die Funktionsweise des Bausteins in Zusammenspiel mit der Taster-Parametrierung nicht richtig verstanden. Hat jemand eine Idee was ich falsch gemacht haben könnte? Tasterseitig habe ich es erst ohne die erweiterten Parameter, dann mit und ohne Stoptelegramm versucht, aber es kam nie eine saubere Dimmung heraus.

    Hoffe jemand hat einen guten Tipp.

    Grüße
    Chris

    grafik.png

    Einen Kommentar schreiben:


  • En3rGy
    antwortet
    Zitat von ArchieSmith Beitrag anzeigen
    Konntest Du schon was feststellen woran das liegen kann bzw. was ich machen kann ?
    Bei mir kann ich das nicht nachvollziehen -> läuft in der Regel unauffällig. Sehr selten habe ich ganz wenige Sekunden Delay. Das schiebe ich aber auf Netzwerkmagie.
    Du musst irgendwie herausbekommen, warum die Hue-Bridge manchmal nicht gefunden wird. Also z.B. den Netzwerkverkehr aufzeichnen und analysieren, wenn der Effekt auftritt?

    Einen Kommentar schreiben:


  • ArchieSmith
    antwortet
    Zitat von ArchieSmith Beitrag anzeigen

    Was kann ich da genau machen ?
    Bei einem 2. System genau das gleiche Problem.
    Konntest Du schon was feststellen woran das liegen kann bzw. was ich machen kann ?
    Wie gesagt, habe ich bei mir privat sowie auch in der Firma das Problem. HUE ist sehr langsam manchmal.
    2 unterschiedliche Netzwerke, 2 unterschiedliche Homis.

    Einen Kommentar schreiben:


  • cevers
    antwortet
    Zitat von Ysmart Beitrag anzeigen
    I get this error messages when I look in the homeserver, can some one tell me what I'm doing wrong? Thanks
    The 403 suggests that your key is invalid. When you browse to 172.16.40.172:8080 what does that say?

    SpleXyo That module is working perfectly with the HUE logic, thank you very much
    En3rGy 3.7 is working like a charm and now the group id is easy to find. Also thanks

    Einen Kommentar schreiben:


  • Ysmart
    antwortet




    image.png
    I get this error messages when I look in the homeserver, can some one tell me what I'm doing wrong? Thanks

    Einen Kommentar schreiben:


  • charlez
    antwortet
    Could you please re-open issue 29. I've provided some more information.

    Einen Kommentar schreiben:


  • cevers
    antwortet
    En3rGy, Thanks alot. I will test it this week, should make a bit easier to figure out what ID to use.

    Einen Kommentar schreiben:


  • En3rGy
    antwortet
    cevers, I updated the code. The info page will now print out the room name (independent of included devices) and the corresponding group id.
    The new release is on github until the stability is confirmed: https://github.com/En3rGy/14100_Hue/releases/tag/v3.7
    So, it should be easy to identify the rooms group id and use the module as given

    Einen Kommentar schreiben:


  • En3rGy
    antwortet
    Zitat von cevers Beitrag anzeigen
    En3rGy
    I found a way to use the room name to get the group id (since you cannot turn on/off rooms)
    I copied your post to a feature request in got hub. I hope that‘s the way for me to integrate your solution in the code

    Feel free to submit a pull request but don‘t forget the unit test

    Einen Kommentar schreiben:


  • cevers
    antwortet
    En3rGy
    I found a way to use the room name to get the group id (since you cannot turn on/off rooms)
    When you look at the /resource/grouped_light the grouped lights in question have an owner, this is the room in which the lights are.
    So with some hack code i'm able to get the ID from the name -> RID -> ID. This way i can adjust my own code and keep it working with V2.😂
    I know you have your own code to deal with and the bugs that come with that. But this might help in the future, so just sharing for that and not to pester you to implement it 😊

    Code:
    import json
    import httplib
    import ssl
    def call_https_hue(ipadres, path):
      h = httplib.HTTPSConnection(ipadres,context=ssl._create_unverified_context())
      headers = {"Content-type": "text/plain" ,"hue-application-key": "myhuekey"}
      h.request('GET', path, headers=headers)
      return h
    roomname = ("Eetkamer")
    ipadres = ('192.168.178.128')
    path = ('/clip/v2/resource/room')
    h = call_https_hue(ipadres,path)
    r = json.load(h.getresponse())
    for i, member in enumerate(r['data']):
        x = str(member['metadata']['name'])
        if  x.lower() == roomname.lower():
          index_a = i
     
    naam = (r['data'][index_a]['metadata']['name'])
    rid = (r['data'][index_a]['id'])
    print(naam)
    print(rid)
    path = ('/clip/v2/resource/grouped_light')
    
    k = call_https_hue(ipadres,path)
    l = json.load(k.getresponse())
    for i, member in enumerate(l['data']):
        x = (member['owner']['rid'])
        if  x == rid:
          index_b = i
    id = (l['data'][index_b]['id'])
    print(id)​
    roomname is the one i can change in whatever room and it will spit out the ID at the end. (the one before that is the Owner ID)

    Einen Kommentar schreiben:


  • ArchieSmith
    antwortet
    Zitat von En3rGy Beitrag anzeigen
    Dem solltest du nachgehen. Warum findet der Baustein die Bridge nicht, obwohl sie vorher kontaktiert werden konnte?
    Was kann ich da genau machen ?
    Bei einem 2. System genau das gleiche Problem.

    Einen Kommentar schreiben:


  • En3rGy
    antwortet
    Hi, mir fällt auf, dass du in den WaitListen 41s stehen hast. Außerdem hast du beim Hue Baustein viele „No Route to Host“. Da wird dann immer auf ein Timeout gewartet. Dem solltest du nachgehen. Warum findet der Baustein die Bridge nicht, obwohl sie vorher kontaktiert werden konnte?

    Einen Kommentar schreiben:


  • ArchieSmith
    antwortet
    Logik1.png
    Szenen.png
    Queues.png
    Exceptions.png
    HUE1.png HUE2.png

    Angehängte Dateien

    Einen Kommentar schreiben:


  • En3rGy
    antwortet
    Zitat von ArchieSmith Beitrag anzeigen
    Gefühlt braucht es ca. 20s bis eine Szene ausgeführt wird.
    so ein Bug-Report ist schwer nachzuvollziehen. Generell gilt mehr Infos, am besten irgendwie strukturiert, helfen mehr bei der Fehlerbehebung. Und: Hat jemand anderes eine Chance mit der Beschreibung das Problem zu reproduzieren?

    Hast du einen Screenshoot von der Logik?
    Was steht in den verschiedenen Abschnitten der Debug-Seite - insb. Exceptions und dem Logik-HSL2 Abschnitt. Hier ist evtl. auch der Queue-Abschnitt interessant…

    Einen Kommentar schreiben:


  • ArchieSmith
    antwortet
    Ich habe den 3.6er Baustein mal mit Experten 4.12 RC3 getestet. Gefühlt braucht es ca. 20s bis eine Szene ausgeführt wird.

    Einen Kommentar schreiben:

Lädt...
X