[HUE] FHEM stürzt ab nach set autocreate

Begonnen von Loredo, 20 November 2015, 23:03:12

Vorheriges Thema - Nächstes Thema

Loredo

Hallo André,


nachdem ich meine Bridge neu aufgesetzt habe, muss ich die Geräte in FHEM neu anlegen.
Dafür habe ich die bisherigen HUEDevice Geräte alle gelöscht und wollte sie mittels "set HUE autocreate" neu anlegen.
Dabei stürzt FHEM leider ab.


Hier ein Log mit verbose=5:




2015.11.20 22:57:52 4: using HttpUtils_BlockingGet: GET lights
2015.11.20 22:57:52 4: HUE: create new device 'HUEDevice4' for address '4'
2015.11.20 22:57:52 3: HUEDevice4: I/O device is HUE
2015.11.20 22:57:52 4: using HttpUtils_NonblockingGet: GET lights/4
2015.11.20 22:57:52 4: HUE: create new device 'HUEDevice1' for address '1'
2015.11.20 22:57:52 3: HUEDevice1: I/O device is HUE
2015.11.20 22:57:52 4: using HttpUtils_NonblockingGet: GET lights/1
2015.11.20 22:57:52 4: HUE: create new device 'HUEDevice3' for address '3'
2015.11.20 22:57:52 3: HUEDevice3: I/O device is HUE
2015.11.20 22:57:52 4: using HttpUtils_NonblockingGet: GET lights/3
2015.11.20 22:57:52 4: HUE: create new device 'HUEDevice2' for address '2'
2015.11.20 22:57:52 3: HUEDevice2: I/O device is HUE
2015.11.20 22:57:52 4: using HttpUtils_NonblockingGet: GET lights/2
2015.11.20 22:57:52 4: HUE: create new device 'HUEDevice5' for address '5'
2015.11.20 22:57:52 3: HUEDevice5: I/O device is HUE
2015.11.20 22:57:52 4: using HttpUtils_NonblockingGet: GET lights/5
2015.11.20 22:57:53 4: using HttpUtils_BlockingGet: GET groups
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at /usr/share/perl5/JSON.pm line 171.



Ich habe daraufhin das Attribut pollDevices gelöscht, was auch keinen Erfolg brachte.
Erst mit dem löschen des Attributs httpUtils ging es dann ohne Absturz und einer kleinen Warnung:




2015.11.20 23:01:41 4: using HUEBridge_HTTP_Request: GET lights
2015.11.20 23:01:41 4: HUE: create new device 'HUEDevice4' for address '4'
2015.11.20 23:01:41 3: HUEDevice4: I/O device is HUE
2015.11.20 23:01:41 4: using HUEBridge_HTTP_Request: GET lights/4
2015.11.20 23:01:41 4: HUE: create new device 'HUEDevice1' for address '1'
2015.11.20 23:01:41 3: HUEDevice1: I/O device is HUE
2015.11.20 23:01:41 4: using HUEBridge_HTTP_Request: GET lights/1
2015.11.20 23:01:41 4: HUE: create new device 'HUEDevice3' for address '3'
2015.11.20 23:01:41 3: HUEDevice3: I/O device is HUE
2015.11.20 23:01:41 4: using HUEBridge_HTTP_Request: GET lights/3
2015.11.20 23:01:41 4: HUE: create new device 'HUEDevice2' for address '2'
2015.11.20 23:01:41 3: HUEDevice2: I/O device is HUE
2015.11.20 23:01:41 4: using HUEBridge_HTTP_Request: GET lights/2
2015.11.20 23:01:42 4: HUE: create new device 'HUEDevice5' for address '5'
2015.11.20 23:01:42 3: HUEDevice5: I/O device is HUE
2015.11.20 23:01:42 4: using HUEBridge_HTTP_Request: GET lights/5
2015.11.20 23:01:42 4: using HUEBridge_HTTP_Request: GET groups
2015.11.20 23:01:42 4: HUE: create new group 'HUEGroup0' for address '0'
2015.11.20 23:01:42 3: HUEGroup0: I/O device is HUE
2015.11.20 23:01:42 4: using HUEBridge_HTTP_Request: GET groups/0
2015.11.20 23:01:42 1: PERL WARNING: Use of uninitialized value in hash element at fhem.pl line 1404.
2015.11.20 23:01:49 4: using HUEBridge_HTTP_Request: GET config
2015.11.20 23:01:49 4: parse status message for HUE



Empfiehlst du denn eigentlich gerade pollDevices und httpUtils zu verwenden?






Gruß
Julian
Hat meine Arbeit dir geholfen? ⟹ https://paypal.me/pools/c/8gDLrIWrG9

Maintainer:
FHEM-Docker Image, https://github.com/fhem, Astro(Co-Maintainer), ENIGMA2, GEOFANCY, GUEST, HP1000, Installer, LaMetric2, MSG, msgConfig, npmjs, PET, PHTV, Pushover, RESIDENTS, ROOMMATE, search, THINKINGCLEANER

justme1968

pollDevices ja. das sollte nichts mit dem problem zu tun haben.

httpUtils wenn non blocking gearbeitet werden soll. das ist eigentlich besser. aber die bridge scheint ab und zu ein problem damit zu haben.

deinen fehler kann ich noch garnicht interpretieren. kannst du mal ein log mit stacktrace erzeugen?

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

justme1968

ps: ich habe eben eine version von 30_HUEBridge.pm eingecheckt die sich nicht mehr durch json fehler aus dem tritt bringen lassen sollte.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968