Ankündigung

Einklappen
Keine Ankündigung bisher.

Support Thread für das hue2 Plugin

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

  • Msinn
    antwortet
    Ok,

    dann muss ich noch mal auf die Frage zurückkommen welche Leuchtmittel Du an der Bridge betreibst. Die Bridge meldet für ein Leuchtmittel keine startup Config zurück. Das kann daran liegen, dass
    • es keine Philips Leuchte ist
    • eine Philips Leuchte ist, aber die Firmware der Leuchte lange nicht aktualisiert wurde.
    Das muss ich wissen, um das sinnvoll beheben zu können.

    Einen Kommentar schreiben:


  • whe
    antwortet
    Code:
    2021-02-23  15:31:25 ERROR    cherrypy.error.2818537680 [23/Feb/2021:15:31:25] HTTP 
    Traceback (most recent call last):
      File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 638, in respond
        self._do_respond(path_info)
      File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cprequest.py", line 697, in _do_respond
        response.body = self.handler()
      File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/lib/encoding.py", line 219, in __call__
        self.body = self.oldhandler(*args, **kwargs)
      File "/home/smarthome/.local/lib/python3.7/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
        return self.callable(*self.args, **self.kwargs)
      File "/usr/local/smarthome/plugins/hue2/webif/__init__.py", line 113, in index
        br_object=self.plugin.br)
      File "/usr/lib/python3/dist-packages/jinja2/asyncsupport.py", line 76, in render
        return original_render(self, *args, **kwargs)
      File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 1008, in render
        return self.environment.handle_exception(exc_info, True)
      File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 780, in handle_exception
        reraise(exc_type, exc_value, tb)
      File "/usr/lib/python3/dist-packages/jinja2/_compat.py", line 37, in reraise
        raise value.with_traceback(tb)
      File "/usr/local/smarthome/plugins/hue2/webif/templates/index.html", line 422, in top-level template code
        {% set tab6title = "<strong>Hue Bridge</strong>" %}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 183, in top-level template code
        {% if scroll_heading is not defined %}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 1, in top-level template code
        {% block doc -%}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 4, in block "doc"
        {%- block html %}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 76, in block "html"
        {% block body -%}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base.html", line 79, in block "body"
        {% block content -%}
      File "/usr/local/smarthome/modules/http/webif/gtemplates/base_plugin.html", line 155, in block "content"
        {% block bodytab2 %}
      File "/usr/local/smarthome/plugins/hue2/webif/templates/index.html", line 222, in block "bodytab2"
        <td class="py-1">{{ bridge_lights[l].config.startup.mode }}</td>
      File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 430, in getattr
        return getattr(obj, attribute)
    jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'startup'

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Das war eine Exeption zu SmartHomeNG v1.8.1. Damit kann ich für einen Fehler den Du unter v1.8.2 hast nichts anfangen.

    Du machst es einem auch nacht gerade einfach Dir zu helfen...

    Einen Kommentar schreiben:


  • whe
    antwortet
    den hab ich doch unter #32 schon gepostet.
    Zuletzt geändert von whe; 23.02.2021, 17:08.

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Nein, ich meinte mit dem Exception Trace, den Du zumindest im Log hast. (Im Entwickler Mode wird der auch im Browser angezeigt, das ist im Normalbetrieb aus Schutzgründen jedoch abgeschaltet).

    Im Pirinzip den Trace, wie mike ihn in #13 gepostet hat.

    Einen Kommentar schreiben:


  • whe
    antwortet
    auf der IP-Adresse 192.168.178.47 läuft keine Bridge sondern mein Raspberry Pi 3 mit dem Produktionssystem.
    hier die Fehlermeldung als Screenshot:

    hue500.JPG

    was meinst Du mit Trace ? so etwas:

    hue5002.JPG

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Noch eine Frage: Was für eine (Software)-Bridge hast Du auf der Adresse 192.168.178.47 laufen?

    ​​​​​​​Einen Wunsch hätte ich noch:

    Zitat von whe Beitrag anzeigen
    im WARNING Log erscheint dann wieder der Fehler:


    Code:

    jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'startup'
    jeder Aufruf im webif führt zu dem error 500.
    Außerdem: Poste bitte mal die vollständige Fehlermeldung mit Trace.

    Die anderen Posts mit INFO und DEBUG Meldungen helfen mit nicht weiter. Die zeigen ein ganz normales Verhalten (sonst wären es ja auch keine INFO und DEBUG Meldungen). Die könnten höchstens im direkten Zusammenhang mit der Fehlermeldung weiterhelfen.
    ​​​​​​​

    Einen Kommentar schreiben:


  • whe
    antwortet
    ich benutze nicht nur Philips hardware sondern auch zwei Steckdosen von OSRAM und stripes von Paulmann.
    zudem einen Philips Motion Sensor.

    das hue API liefert mir folgende lights:

    Code:
    {
       "1": {
          "state": {
             "on": false,
             "bri": 1,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-02-07T13:21:56"
          },
          "type": "Dimmable light",
          "name": "Lampe Stehle",
          "modelid": "LWB010",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue white lamp",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 2000,
                "maxlumen": 806
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:02:a2:f7:91-0b",
          "swversion": "1.57.12_r30949",
          "swconfigid": "754CE4FC",
          "productid": "Philips-LWB010-1-A19DLv4"
       },
       "2": {
          "state": {
             "on": false,
             "bri": 1,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-02-07T13:21:54"
          },
          "type": "Dimmable light",
          "name": "Lampe Sideboard",
          "modelid": "LWB010",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue white lamp",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 2000,
                "maxlumen": 806
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:02:ee:c8:ee-0b",
          "swversion": "1.57.12_r30949",
          "swconfigid": "754CE4FC",
          "productid": "Philips-LWB010-1-A19DLv4"
       },
       "5": {
          "state": {
             "on": false,
             "bri": 1,
             "ct": 399,
             "alert": "select",
             "colormode": "ct",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-03-14T12:14:24"
          },
          "type": "Color temperature light",
          "name": "Hue phoenix 1",
          "modelid": "HML006",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue phoenix",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 5000,
                "maxlumen": 315,
                "ct": {
                   "min": 153,
                   "max": 454
                }
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "recessedceiling",
             "function": "functional",
             "direction": "downwards",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:02:45:0d:de-0b",
          "swversion": "5.138.3.30911"
       },
       "6": {
          "state": {
             "on": false,
             "bri": 1,
             "ct": 399,
             "alert": "select",
             "colormode": "ct",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-03-14T12:14:18"
          },
          "type": "Color temperature light",
          "name": "Hue phoenix 2",
          "modelid": "HML006",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue phoenix",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 5000,
                "maxlumen": 315,
                "ct": {
                   "min": 153,
                   "max": 454
                }
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "recessedceiling",
             "function": "functional",
             "direction": "downwards",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:02:45:1e:6c-0b",
          "swversion": "5.138.3.30911"
       },
       "7": {
          "state": {
             "on": false,
             "bri": 1,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "notupdatable",
             "lastinstall": null
          },
          "type": "Dimmable light",
          "name": "Stripes 1",
          "modelid": "Dimmablelight ",
          "manufacturername": "Paulmann Licht GmbH ",
          "productname": "Dimmable light",
          "capabilities": {
             "certified": false,
             "control": {},
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional"
          },
          "uniqueid": "00:15:8d:00:01:5c:57:b8-01",
          "swversion": "1218-0909"
       },
       "8": {
          "state": {
             "on": false,
             "bri": 1,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-02-07T13:22:01"
          },
          "type": "Dimmable light",
          "name": "Lampe Lowboard",
          "modelid": "LWB010",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue white lamp",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 2000,
                "maxlumen": 806
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:03:e8:94:8f-0b",
          "swversion": "1.57.12_r30949",
          "swconfigid": "754CE4FC",
          "productid": "Philips-LWB010-1-A19DLv4"
       },
       "9": {
          "state": {
             "on": false,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": false
          },
          "swupdate": {
             "state": "notupdatable",
             "lastinstall": "2018-11-22T21:00:37"
          },
          "type": "On/Off plug-in unit",
          "name": "On/Off plug 1",
          "modelid": "Plug 01",
          "manufacturername": "OSRAM",
          "productname": "On/Off plug",
          "capabilities": {
             "certified": false,
             "control": {},
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional"
          },
          "uniqueid": "84:18:26:00:00:0d:ac:4c-03",
          "swversion": "V1.04.12"
       },
       "10": {
          "state": {
             "on": false,
             "alert": "none",
             "mode": "homeautomation",
             "reachable": false
          },
          "swupdate": {
             "state": "notupdatable",
             "lastinstall": "2018-11-22T21:10:28"
          },
          "type": "On/Off plug-in unit",
          "name": "On/Off plug 2",
          "modelid": "Plug 01",
          "manufacturername": "OSRAM",
          "productname": "On/Off plug",
          "capabilities": {
             "certified": false,
             "control": {},
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "classicbulb",
             "function": "functional",
             "direction": "omnidirectional"
          },
          "uniqueid": "7c:b0:3e:aa:00:a7:84:31-03",
          "swversion": "V1.04.12"
       },
       "12": {
          "state": {
             "on": false,
             "bri": 127,
             "alert": "select",
             "mode": "homeautomation",
             "reachable": true
          },
          "swupdate": {
             "state": "noupdates",
             "lastinstall": "2020-11-06T14:33:01"
          },
          "type": "Dimmable light",
          "name": "Deckenlicht Galerie",
          "modelid": "LWE002",
          "manufacturername": "Signify Netherlands B.V.",
          "productname": "Hue white candle",
          "capabilities": {
             "certified": true,
             "control": {
                "mindimlevel": 2000,
                "maxlumen": 470
             },
             "streaming": {
                "renderer": false,
                "proxy": false
             }
          },
          "config": {
             "archetype": "candlebulb",
             "function": "functional",
             "direction": "omnidirectional",
             "startup": {
                "mode": "powerfail",
                "configured": true
             }
          },
          "uniqueid": "00:17:88:01:08:15:1c:65-0b",
          "swversion": "1.76.10",
          "swconfigid": "06A38B4E",
          "productid": "Philips-LWE002-1-E14DLv1"
       }
    }
    Zuletzt geändert von bmx; 23.02.2021, 11:11. Grund: JSON eingerückt

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Meine Frage war aber explizit nach den Leuchten.

    Ob Du bereits Items für das Plugin definiert hast ist unerheblich.
    Das Problem tritt auf, mit den Konfigurationsdaten, die das Plugin aus der Bridge abfragt.
    Eine leere Bridge (ohne an sie angemeldete Devices) liefert nachweislich keinen Fehler.
    Ich komme deshalb nur weiter, wenn Du die Frage beantwortest, was für Leuchten/Devices an der Bridge angemeldet sind.

    Einen Kommentar schreiben:


  • whe
    antwortet
    Die Hue-Bridge selbst habe ich bisher auch in smartvisu angezeigt mit den antspr. Attributen.
    das ist wohl mit dem neuen Plugin nicht mehr möglich; einige Informationen sind wohl im webif untergebracht.

    hue_bridge.JPG

    Aber die Bridge ist ja m.E. auch eine Komponente des SmartHome Systems, nicht nur die Leuchten und Sensoren

    Einen Kommentar schreiben:


  • whe
    antwortet
    Ich habe noch kein einziges Item auf die HUE2 Bridge umgestellt.

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Zitat von whe Beitrag anzeigen
    die Port-Nummer ist hier neu.
    Ja, die wird benötigt um die deconz Bridge von Dresden Elektronik zu unterstützen, die als SW Bridge normalerweise nicht auf Port 80 läuft.


    Zitat von whe Beitrag anzeigen
    m WARNING Log erscheint dann wieder der Fehler:
    Code:

    jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'startup'
    jeder Aufruf im webif führt zu dem error 500.
    Was für Devices/Leuchtmittel hast Du im Einsatz? Sind da Leuchtmittel dabei die kein Startup unterstützen (weil nicht von Philips oder die Firmware nicht upgedated wurde)?

    Einen Kommentar schreiben:


  • whe
    antwortet
    tut mir Leid, aber auch mit dem update auf 1.8.2 ist das Problem bei mir nicht behoben.
    zunächst mal habe ich in der plugins.yaml die Angaben der HUE2 Bridge gelöscht und neu discovered.
    bei mir sehe ich im Web Interface neben der Bridge auch meinen zweiten Raspi mit dem System 1.7.2

    hue2_182_1.JPG
    wenn ich auf Vebinden klicke erscheint wieder dieser ERROR 500.
    im plugins.yaml sind aber die Definitionen ergänzt:
    Code:
    HUE2:
        plugin_name: hue2
        bridge_serial: 001788762a60
        bridge_user: 57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj
        bridge_ip: 192.168.178.50
        bridge_port: 80
    die Port-Nummer ist hier neu.
    im log finde ich dann diese Einträge:
    Code:
    2021-02-22  13:49:32 INFO     plugins.hue2        Connect: connect=001788762a60
    2021-02-22  13:49:32 INFO     plugins.hue2        create_new_username: Generated username = 57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj
    2021-02-22  13:49:32 INFO     plugins.hue2        get_bridgeinfo: self.bridge = {'mac': '001788762a60', 'ip': '192.168.178.50', 'port': '80', 'friendlyName': 'Philips hue (192.168.178.50)', 'manufacturer': 'Signify', 'manufacturerURL': 'http://www.philips-hue.com', 'modelDescription': 'Philips hue Personal Wireless Lighting', 'modelName': 'Philips hue bridge 2015', 'modelURL': 'http://www.philips-hue.com', 'modelNumber': 'BSB002', 'serialNumber': '001788762a60', 'UDN': 'uuid:2f402f80-da50-11e1-9b23-001788762a60', 'gatewayName': '', 'URLBase': 'http://192.168.178.50:80/', 'version': 'v2', 'datastoreversion': '99', 'apiversion': '1.42.0', 'swversion': '1943082030', 'username': '57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj'}
    2021-02-22  13:49:32 DEBUG    plugins.hue2        update_config_section: Beginning to update section 'HUE2' of ../etc/plugin.yaml
    2021-02-22  13:49:32 DEBUG    plugins.hue2        update_config_section: valid parameter names to update = ['polltime_lights', 'polltime_sensors', 'polltime_bridge', 'bridge_serial', 'bridge_user', 'bridge_ip', 'bridge_port']
    2021-02-22  13:49:32 INFO     plugins.hue2        update_config_section: Config file = '/usr/local/smarthome/etc/plugin', update data = {'bridge_serial': '001788762a60', 'bridge_user': '57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj', 'bridge_ip': '192.168.178.50', 'bridge_port': '80'}
    2021-02-22  13:49:32 INFO     plugins.hue2        update_config_section: Changing Parameter 'bridge_serial' -> type = 'str' from 'None' to '001788762a60'
    2021-02-22  13:49:32 INFO     plugins.hue2        update_config_section: Changing Parameter 'bridge_user' -> type = 'str' from 'None' to '57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj'
    2021-02-22  13:49:32 INFO     plugins.hue2        update_config_section: Changing Parameter 'bridge_ip' -> type = 'ip' from 'None' to '192.168.178.50'
    2021-02-22  13:49:32 INFO     plugins.hue2        update_config_section: Changing Parameter 'bridge_port' -> type = 'int' from 'None' to '80'
    2021-02-22  13:49:32 DEBUG    plugins.hue2        update_config_section: Config section content = 'ordereddict([('plugin_name', 'hue2'), ('bridge_serial', '001788762a60'), ('bridge_user', '57hrgCztUAnA94-a4w9ymNLyW20Wmm5tCBugeLqj'), ('bridge_ip', '192.168.178.50'), ('bridge_port', 80)])'
    2021-02-22  13:49:32 DEBUG    plugins.hue2        update_config_section: Finished updating section 'HUE2' of ../etc/plugin.yaml
    im WARNING Log erscheint dann wieder der Fehler:

    Code:
    jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'startup'
    jeder Aufruf im webif führt zu dem error 500.

    Einen Kommentar schreiben:


  • whe
    antwortet
    sorry habe ich noch nicht getestet; habe ich aber auch schon vermutet.
    dann schau ich mal nach der Korrektur.

    danke

    Einen Kommentar schreiben:


  • Msinn
    antwortet
    Die hue Plugins sind unabhängig und können parallel betrieben werden.

    Abgesehen davon, dass Du im Moment das Webinterface nicht aufrufen kannst funktioniert das Plugin aber, oder?
    Der Webinterface Fehler 'dict object' has no attribute 'startup' ist im Develop Branch bereits gefixt.

    Einen Kommentar schreiben:

Lädt...
X