HUEBridge deCONZ RaspBee Modul Einbindung

Begonnen von !nVisible, 15 November 2017, 00:40:21

Vorheriges Thema - Nächstes Thema

!nVisible

Hallo,

ich versuche seit mehreren Tagen mein deCONZ RaspBee Modul in FHEM (läuft auf dem gleichen RaspberryPi3) einzubinden. Leider schlägt dies immer fehl. Das Device wird angelegt und sofort (ohne Unlockbefehl/Link Button) ein ungültiger Key angelegt. Auch wenn ich diesen auf einen gültigen korrigiere tut sich nichts. Der State bleibt bei "initialized".

FHEM ist aktuell, das deCONZ läuft auf der aktuellsten Beta, habe aber auch schon die letzte Stable Version getestet.

Zum Test habe ich bereits eine originale Hue Bridge eingebunden, dies funktioniert problemlos.

Manuell kann ich erfolgreich auf die REST Api des deCONZ zugreifen, im direkten Vergleich mit der Philips Bridge sieht es auch weitestgehend identisch aus, bis auf die API Version (deCONZ: 1.0.4, Philips: 1.21.0).


Mir gehen die Ideen aus, woran es noch liegen könnte, da es ja eigentlich klappen sollte..


Anbei ein Log Auszug vom Device anlegen:


2017.11.14 18:57:16 5: Cmd: >define RaspBee HUEBridge 127.0.0.1<
2017.11.14 18:57:16 5: Starting notify loop for RaspBee, 1 event(s), first is initialized
2017.11.14 18:57:16 5: createNotifyHash
2017.11.14 18:57:16 5: End notify loop for RaspBee
2017.11.14 18:57:16 4: HttpUtils url=http://127.0.0.1/description.xml
2017.11.14 18:57:16 5: HttpUtils request header:
GET /description.xml HTTP/1.0
Host: 127.0.0.1
User-Agent: fhem

2017.11.14 18:57:16 4: http://127.0.0.1/description.xml: HTTP response code 200
2017.11.14 18:57:16 4: HttpUtils http://127.0.0.1/description.xml: Got data, length: 1351
2017.11.14 18:57:16 5: HttpUtils response header:
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length:1351
Connection: close
2017.11.14 18:57:16 5: HUEBridge_OpenDev: got description: <?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://192.168.178.58:80/</URLBase>
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    <friendlyName>Philips hue (192.168.178.58) compatible Wireless Light Control Gateway</friendlyName>
    <manufacturer>Royal Philips Electronics</manufacturer>
    <manufacturerURL>http://www.dresden-elektronik.de</manufacturerURL>
    <modelDescription>dresden elektronik Wireless Light Control</modelDescription>
    <modelName>Philips hue bridge 2012</modelName>
    <modelNumber>929000226503</modelNumber>
    <modelURL>http://www.dresden-elektronik.de</modelURL>
    <serialNumber>00212EFFFF013D9A</serialNumber>
    <UDN>uuid:c80af094-2a9a-4ad0-8eed-2fb9b626b8f7</UDN>
    <gatewayName>RaspBee-GW</gatewayName>
    <presentationURL>index.html</presentationURL>
    <iconList>
      <icon>
        <mimetype>image/png</mimetype>
        <height>48</height>
        <width>48</width>
        <depth>24</depth>
        <url>hue_logo_0.png</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <height>120</height>
        <width>120</width>
        <depth>24</depth>
        <url>hue_logo_3.png</url>
      </icon>
    </iconList>
  </device>
</root>


2017.11.14 18:57:16 4: using HUEBridge_HTTP_Request: GET config
2017.11.14 18:57:16 5: HUEBridge_HTTP_Request http://127.0.0.1/api/929830ebeec9c6ddc98228500024fb24/config: Got data, length: 223
2017.11.14 18:57:16 5: HUEBridge_OpenDev: got config $VAR1 = {
          'bridgeid' => '00212EFFFF013D9A',
          'datastoreversion' => '60',
          'name' => 'RaspBee-GW',
          'mac' => 'b8:27:eb:00:6d:c7',
          'swversion' => '2.4.86',
          'modelid' => 'deCONZ',
          'factorynew' => bless( do{\(my $o = 0)}, 'JSON::XS::Boolean' ),
          'apiversion' => '1.0.4',
          'replacesbridgeid' => undef,
          'starterkitid' => ''
        };

2017.11.14 18:57:16 5: Starting notify loop for RaspBee, 1 event(s), first is pairing
2017.11.14 18:57:16 5: End notify loop for RaspBee
2017.11.14 18:57:16 4: using HUEBridge_HTTP_Request: POST
2017.11.14 18:57:20 1: HUEBridge_HTTP_Request http://127.0.0.1/api: Select timeout/error:
2017.11.14 18:57:20 3: HUEBridge_Call: failed, retrying
2017.11.14 18:57:20 4: using HUEBridge_HTTP_Request: POST
2017.11.14 18:57:24 1: HUEBridge_HTTP_Request http://127.0.0.1/api: Select timeout/error:
2017.11.14 18:57:24 3: HUEBridge_Call: failed, retrying
2017.11.14 18:57:24 3: HUEBridge_Call: failed
2017.11.14 18:57:24 5: Starting notify loop for RaspBee, 1 event(s), first is paired
2017.11.14 18:57:24 5: End notify loop for RaspBee
2017.11.14 18:57:24 4: HttpUtils url=http://127.0.0.1/description.xml
2017.11.14 18:57:24 5: HttpUtils request header:
GET /description.xml HTTP/1.0
Host: 127.0.0.1
User-Agent: fhem

2017.11.14 18:57:24 4: http://127.0.0.1/description.xml: HTTP response code 200
2017.11.14 18:57:24 4: HttpUtils http://127.0.0.1/description.xml: Got data, length: 1351
2017.11.14 18:57:24 5: HttpUtils response header:
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length:1351
Connection: close
2017.11.14 18:57:24 5: HUEBridge_OpenDev: got description: <?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://192.168.178.58:80/</URLBase>
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    <friendlyName>Philips hue (192.168.178.58) compatible Wireless Light Control Gateway</friendlyName>
    <manufacturer>Royal Philips Electronics</manufacturer>
    <manufacturerURL>http://www.dresden-elektronik.de</manufacturerURL>
    <modelDescription>dresden elektronik Wireless Light Control</modelDescription>
    <modelName>Philips hue bridge 2012</modelName>
    <modelNumber>929000226503</modelNumber>
    <modelURL>http://www.dresden-elektronik.de</modelURL>
    <serialNumber>00212EFFFF013D9A</serialNumber>
    <UDN>uuid:c80af094-2a9a-4ad0-8eed-2fb9b626b8f7</UDN>
    <gatewayName>RaspBee-GW</gatewayName>
    <presentationURL>index.html</presentationURL>
    <iconList>
      <icon>
        <mimetype>image/png</mimetype>
        <height>48</height>
        <width>48</width>
        <depth>24</depth>
        <url>hue_logo_0.png</url>
      </icon>
      <icon>
        <mimetype>image/png</mimetype>
        <height>120</height>
        <width>120</width>
        <depth>24</depth>
        <url>hue_logo_3.png</url>
      </icon>
    </iconList>
  </device>
</root>


2017.11.14 18:57:24 4: using HUEBridge_HTTP_Request: GET config
2017.11.14 18:57:28 1: HUEBridge_HTTP_Request http://127.0.0.1/api/929830ebeec9c6ddc98228500024fb24/config: Select timeout/error:
2017.11.14 18:57:28 3: HUEBridge_Call: failed, retrying
2017.11.14 18:57:28 4: using HUEBridge_HTTP_Request: GET config
2017.11.14 18:57:32 1: HUEBridge_HTTP_Request http://127.0.0.1/api/929830ebeec9c6ddc98228500024fb24/config: Select timeout/error:
2017.11.14 18:57:32 3: HUEBridge_Call: failed, retrying
2017.11.14 18:57:32 3: HUEBridge_Call: failed
2017.11.14 18:57:32 2: HUEBridge_OpenDev: got empty config
2017.11.14 18:57:32 5: Starting notify loop for global, 1 event(s), first is DEFINED RaspBee
2017.11.14 18:57:32 5: createNotifyHash
2017.11.14 18:57:32 5: End notify loop for global
2017.11.14 18:57:32 4: WEB_192.168.178.30_55272 GET /fhem?detail=RaspBee&fw_id=141; BUFLEN:0
2017.11.14 18:57:32 4: WEB: /fhem?detail=RaspBee&fw_id=141 / RL:3432 / text/html; charset=UTF-8 / Content-Encoding: gzip
/
2017.11.14 18:57:32 4: WEB_192.168.178.30_55272 GET /fhem?cmd=%7BReadingsVal(%22RaspBee%22%2C%22active%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_134489631651873; BUFLEN:0
2017.11.14 18:57:32 5: Cmd: >{ReadingsVal("RaspBee","active","")}<
2017.11.14 18:57:32 4: WEB: /fhem?cmd=%7BReadingsVal(%22RaspBee%22%2C%22active%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_134489631651873 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/
2017.11.14 18:57:32 4: Connection accepted from WEB_192.168.178.30_55275
2017.11.14 18:57:32 4: WEB_192.168.178.30_55275 GET /fhem?cmd=%7BAttrVal(%22RaspBee%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_134489631651873; BUFLEN:0
2017.11.14 18:57:32 5: Cmd: >{AttrVal("RaspBee","room","")}<
2017.11.14 18:57:32 4: WEB: /fhem?cmd=%7BAttrVal(%22RaspBee%22%2C%22room%22%2C%22%22)%7D&XHR=1&fwcsrf=csrf_134489631651873 / RL:21 / text/plain; charset=UTF-8 / Content-Encoding: gzip
/




berniie

Hallo,
kannst du zum Testen Mal die deconz Version 2.04.35 probieren?
Bei mir funktioniert die Harmony Ferbedienung nicht mit der beta.
Mit 2.04.35 hat die Harmony keine Probleme.

!nVisible

Ich habe die 2.04.35 unter anderem auch getestet, ohne Erfolg. Habe auch den Raspberry komplett neu aufgesetzt, auch dies zeigte keine Änderung.

Allerdings hat das setzen von httpUtils 1 letztenendes zum Erfolg geführt, allerdings musste ich den key manuell erzeugen und in FHEM setzen..

AssiY2K

#3
Moin zusammen,

Auch wenn das Thema schon etwas her ist, aber für die Nachwelt wird es bestimmt hilfreich sein. Ich habe auch stundenlang nach der Lösung gesucht und die Vorgehensweise auf der folgenden Seite brachte dann den Erfolg:

http://coldcorner.de/2018/04/02/deconz-hue-bridge-auf-dem-raspberry-pi-emulieren/#8

Folgende Schritte musste ich noch machen, damit die Bridge connected ist:

define deCONZ HUEBridge ip.vom.deconz.gateway

attr deCONZ httpUtils 1

set deCONZ active

Viele Grüße,
Stephan