homebridge/homekit

Begonnen von justme1968, 01 Februar 2016, 16:16:37

Vorheriges Thema - Nächstes Thema

justme1968

ich brauche die komplette konsolen ausgabe beim starten mit --debug

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

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

Odin

Zitat von: justme1968 am 20 März 2016, 18:52:03
ich brauche die komplette konsolen ausgabe beim starten mit --debug

gruss
  andre

pi@raspberrypi ~ $ homebridge --debug
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[2016-03-20 18:55:48] Loaded plugin: homebridge-fhem
homebridge API version: 2
[2016-03-20 18:55:48] Registering platform 'homebridge-fhem.FHEM'
[2016-03-20 18:55:48] ---
[2016-03-20 18:55:48] Loaded plugin: homebridge-milight
[2016-03-20 18:55:48] Registering accessory 'homebridge-milight.MiLight'
[2016-03-20 18:55:48] Registering platform 'homebridge-milight.MiLight'
[2016-03-20 18:55:48] ---
[2016-03-20 18:55:48] Loaded config.json with 0 accessories and 1 platforms.
[2016-03-20 18:55:48] ---
[2016-03-20 18:55:48] Loading 1 platforms...
[2016-03-20 18:55:48] [FHEM] Initializing homebridge-fhem.FHEM platform...
starting longpoll: https://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1458496549558
[2016-03-20 18:55:49] [FHEM] Checking genericDeviceType...
[2016-03-20 18:55:49] [FHEM]   executing: https://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[2016-03-20 18:55:49] [FHEM] Fetching FHEM devices...
[2016-03-20 18:55:49] [FHEM] fetching: https://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=Homekit&XHR=1
[2016-03-20 18:55:49] Loading 0 accessories...
Server listening on: http://<ip>:8082
[2016-03-20 18:55:50] [FHEM] got: 9 results
[2016-03-20 18:55:50] [FHEM]  detected WifiLight
[2016-03-20 18:55:50] [FHEM] mappings for Lampe1: { Hue:
   { reading: 'hue',
     cmd: 'HSV',
     max: 359,
     maxValue: 359,
     homekit2reading: [Function: bound ] },
  Saturation:
   { reading: 'saturation',
     cmd: 'HSV',
     max: 100,
     maxValue: 100,
     homekit2reading: [Function: bound ] },
  Brightness:
   { reading: 'brightness',
     cmd: 'HSV',
     max: 100,
     maxValue: 100,
     delay: true,
     homekit2reading: [Function: bound ] },
  On: { reading: 'state', valueOff: 'off', cmdOn: 'on', cmdOff: 'off' } }
[2016-03-20 18:55:50] [FHEM] Lampe1 is light
[2016-03-20 18:55:50] [FHEM] Lampe1 has
[2016-03-20 18:55:50] [FHEM]   Hue [hue;HSV;0-359]
[2016-03-20 18:55:50] [FHEM]   Saturation [saturation;HSV;0-100]
[2016-03-20 18:55:50] [FHEM]   Brightness [brightness]
[2016-03-20 18:55:50] [FHEM]   On [state;on,off]
  2016-03-20 18:55:50 caching: Lampe1-hue: 0
[2016-03-20 18:55:50] [FHEM] Lampe1-hue value 0 scaled to: 0
[2016-03-20 18:55:50] [FHEM]     caching: Hue: 0 (as number; from '0')
  2016-03-20 18:55:50 caching: Lampe1-saturation: 0
[2016-03-20 18:55:50] [FHEM] Lampe1-saturation value 0 scaled to: 0
[2016-03-20 18:55:50] [FHEM]     caching: Saturation: 0 (as number; from '0')
  2016-03-20 18:55:50 caching: Lampe1-brightness: 100
[2016-03-20 18:55:50] [FHEM] Lampe1-brightness value 100 scaled to: 100
[2016-03-20 18:55:50] [FHEM]     caching: Brightness: 100 (as number; from '100')
  2016-03-20 18:55:50 caching: Lampe1-state: on
[2016-03-20 18:55:50] [FHEM] Lampe1-state valueOn/valueOff: value on mapped to 1
[2016-03-20 18:55:50] [FHEM]     caching: On: true (as boolean; from 'on')
[2016-03-20 18:55:50] [FHEM]  detected WifiLight
[2016-03-20 18:55:50] [FHEM] mappings for Lampe2: { Hue:
   { reading: 'hue',
     cmd: 'HSV',
     max: 359,
     maxValue: 359,
     homekit2reading: [Function: bound ] },
  Saturation:
   { reading: 'saturation',
     cmd: 'HSV',
     max: 100,
     maxValue: 100,
     homekit2reading: [Function: bound ] },
  Brightness:
   { reading: 'brightness',
     cmd: 'HSV',
     max: 100,
     maxValue: 100,
     delay: true,
     homekit2reading: [Function: bound ] },
  On: { reading: 'state', valueOff: 'off', cmdOn: 'on', cmdOff: 'off' } }
[2016-03-20 18:55:50] [FHEM] Lampe2 is light
[2016-03-20 18:55:50] [FHEM] Lampe2 has
[2016-03-20 18:55:50] [FHEM]   Hue [hue;HSV;0-359]
[2016-03-20 18:55:50] [FHEM]   Saturation [saturation;HSV;0-100]
[2016-03-20 18:55:50] [FHEM]   Brightness [brightness]
[2016-03-20 18:55:50] [FHEM]   On [state;on,off]
  2016-03-20 18:55:50 caching: Lampe2-hue: 0
[2016-03-20 18:55:50] [FHEM] Lampe2-hue value 0 scaled to: 0
[2016-03-20 18:55:50] [FHEM]     caching: Hue: 0 (as number; from '0')
  2016-03-20 18:55:50 caching: Lampe2-saturation: 0
[2016-03-20 18:55:50] [FHEM] Lampe2-saturation value 0 scaled to: 0
[2016-03-20 18:55:50] [FHEM]     caching: Saturation: 0 (as number; from '0')
  2016-03-20 18:55:50 caching: Lampe2-brightness: 100
[2016-03-20 18:55:50] [FHEM] Lampe2-brightness value 100 scaled to: 100
[2016-03-20 18:55:50] [FHEM]     caching: Brightness: 100 (as number; from '100')
  2016-03-20 18:55:50 caching: Lampe2-state: on
[2016-03-20 18:55:50] [FHEM] Lampe2-state valueOn/valueOff: value on mapped to 1
[2016-03-20 18:55:50] [FHEM]     caching: On: true (as boolean; from 'on')
[2016-03-20 18:55:50] [FHEM] mappings for MAX_117588: { CurrentTemperature: { reading: 'temperature', minValue: -30 },
  StatusLowBattery:
   { reading: 'battery',
     values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ] },
  FirmwareRevision: { reading: 'firmware', _isInformation: true },
  TargetTemperature:
   { reading: 'desiredTemperature',
     cmd: 'desiredTemperature',
     delay: true,
     minValue: 5,
     maxValue: 30,
     minStep: 0.5 },
  '4648454d-0201-686F-6D65-627269646765':
   { reading: 'valveposition',
     name: 'Actuation',
     format: 'UINT8',
     unit: 'PERCENTAGE',
     maxValue: 100,
     minValue: 0,
     minStep: 1 } }
[2016-03-20 18:55:50] [FHEM] MAX_117588 is thermostat
[2016-03-20 18:55:50] [FHEM] MAX_117588 has
[2016-03-20 18:55:50] [FHEM]   CurrentTemperature [temperature]
[2016-03-20 18:55:50] [FHEM]   StatusLowBattery [battery]
[2016-03-20 18:55:50] [FHEM]   FirmwareRevision [firmware]
[2016-03-20 18:55:50] [FHEM]   TargetTemperature [desiredTemperature]
[2016-03-20 18:55:50] [FHEM]   Custom Actuation [valveposition]
  2016-03-20 18:55:50 caching: MAX_117588-temperature: 14.9
/usr/local/lib/node_modules/homebridge-fhem/index.js:409
  if( format.match( /bool/i ) )
            ^

TypeError: Cannot read property 'match' of undefined
    at FHEM_reading2homekit_ (/usr/local/lib/node_modules/homebridge-fhem/index.js:409:13)
    at FHEM_reading2homekit (/usr/local/lib/node_modules/homebridge-fhem/index.js:113:13)
    at Object.Accessory (/usr/local/lib/node_modules/homebridge-fhem/index.js:1848:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/index.js:940:42)
    at Array.map (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/index.js:937:31)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-fhem/node_modules/request/request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/node_modules/request/request.js:1036:10)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at Gunzip.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/node_modules/request/request.js:963:12)
    at emitNone (events.js:72:20)
    at Gunzip.emit (events.js:166:7)
    at endReadableNT (_stream_readable.js:905:12)

roqsi

Zitat von: justme1968 am 20 März 2016, 18:52:03
ich brauche die komplette konsolen ausgabe beim starten mit --debug

gruss
  andre

pi@raspberrypi:~ $ homebridge --debug
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Loaded plugin: homebridge-fhem
homebridge API version: 2
Registering platform 'homebridge-fhem.FHEM'
---
Loaded config.json with 0 accessories and 1 platforms.
---
Loading 1 platforms...
[FHEM] Initializing FHEM platform...
starting longpoll: http://127.0.0.1:8083/fhem.pl?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1458496652111
[FHEM] Checking genericDeviceType...
[FHEM]   executing: http://127.0.0.1:8083/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1
[FHEM] Fetching FHEM devices...
[FHEM] fetching: http://127.0.0.1:8083/fhem?cmd=jsonlist2%20room=HomeKit&XHR=1
Loading 0 accessories...
Server listening on: http://<ip>:8082
[FHEM] got: 11 results
[FHEM] mappings for Kamera: { On: { reading: 'state', valueOff: 'off', cmdOn: 'on', cmdOff: 'off' } }
[FHEM] Kamera is switch
[FHEM] Kamera has
[FHEM]   On [state;on,off]
  2016-03-20 18:57:32 caching: Kamera-state: off
[FHEM] Kamera-state valueOn/valueOff: value off mapped to 0
[FHEM]     caching: On: false (as boolean; from 'off')
[FHEM] mappings for Schlafzimmer_heizung: { CurrentTemperature: { reading: 'temperature', minValue: -30 },
  StatusLowBattery:
   { reading: 'battery',
     values: [ 'ok:BATTERY_LEVEL_NORMAL', '/.*/:BATTERY_LEVEL_LOW' ] },
  FirmwareRevision: { reading: 'firmware', _isInformation: true },
  TargetTemperature:
   { reading: 'desiredTemperature',
     cmd: 'desiredTemperature',
     delay: true,
     minValue: 5,
     maxValue: 30,
     minStep: 0.5 },
  '4648454d-0201-686F-6D65-627269646765':
   { reading: 'valveposition',
     name: 'Actuation',
     format: 'UINT8',
     unit: 'PERCENTAGE',
     maxValue: 100,
     minValue: 0,
     minStep: 1 } }
[FHEM] Schlafzimmer_heizung is thermostat
[FHEM] Schlafzimmer_heizung has
[FHEM]   CurrentTemperature [temperature]
[FHEM]   StatusLowBattery [battery]
[FHEM]   FirmwareRevision [firmware]
[FHEM]   TargetTemperature [desiredTemperature]
[FHEM]   Custom Actuation [valveposition]
  2016-03-20 18:57:32 caching: Schlafzimmer_heizung-temperature: 19.9
/usr/local/lib/node_modules/homebridge-fhem/index.js:409
  if( format.match( /bool/i ) )
            ^

TypeError: Cannot read property 'match' of undefined
    at FHEM_reading2homekit_ (/usr/local/lib/node_modules/homebridge-fhem/index.js:409:13)
    at FHEM_reading2homekit (/usr/local/lib/node_modules/homebridge-fhem/index.js:113:13)
    at Object.Accessory (/usr/local/lib/node_modules/homebridge-fhem/index.js:1848:11)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/index.js:940:42)
    at Array.map (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/index.js:937:31)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-fhem/node_modules/request/request.js:199:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-fhem/node_modules/request/request.js:1036:10)

justme1968

ich denke ich habe es behoben.

bitte noch mal mit der version von gerade eben testen.

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

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

roqsi

Zitat von: justme1968 am 20 März 2016, 19:01:43
ich denke ich habe es behoben.

bitte noch mal mit der version von gerade eben testen.

danke
  andre


läuft alles wieder super danke :D

Odin

#455
Zitat von: justme1968 am 20 März 2016, 19:01:43
ich denke ich habe es behoben.

bitte noch mal mit der version von gerade eben testen.

danke
  andre

Super, läuft wieder. Daaaaaaaanke!  :)

Die Problematik mit den Farben und der Helligkeit bei MiLight Lampen besteht leider noch.  :-\
Die Werte werden jeweils korrekt ausgelesen, bei einer Änderung eben nur nicht gesetzt bzw. an die Homebridge übertragen.

Falls dir das was hilft, so siehts aus:

6-03-20 19:14:38] Homebridge is running on port 51826.
[2016-03-20 19:14:43] [FHEM] query: Brightness for Lampe2-brightness
[2016-03-20 19:14:43] [FHEM]   cached: 100
[2016-03-20 19:14:43] [FHEM] query: Brightness for Lampe1-brightness
[2016-03-20 19:14:43] [FHEM]   cached: 80
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 93
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 78
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 73
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 72
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 70
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 67
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 64
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 62
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 61
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 60
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 59
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 57
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 56
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 55
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 54
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 54
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 53
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 53
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 53
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 52
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 51
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:53] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 49
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:54] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:55] [FHEM] Lampe2 delaying command [object Object] with value 50
[2016-03-20 19:14:55] [FHEM] Lampe2 delaying command [object Object] with value 51
[2016-03-20 19:14:55] [FHEM] Lampe2 delaying command [object Object] with value 51
[2016-03-20 19:14:55] [FHEM] Lampe2 delaying command [object Object] with value 51
[2016-03-20 19:14:56] [FHEM] Lampe2: executing set cmd for Brightness with value 51
[2016-03-20 19:14:56] [FHEM]   value converted to 33,100,51
[2016-03-20 19:14:56] [FHEM]   executing: https://127.0.0.1:8083/fhem?cmd=set%20Lampe2%20HSV%20NaN&XHR=1

CarstenF

Nach dem Update auf IOS 9.3 hat EVE jetzt keine Daten mehr. Also wieder alles neu machen..... Hatte das noch jemand?


Gesendet von iPad mit Tapatalk
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

Odin

Zitat von: CarstenF am 21 März 2016, 22:47:21
Nach dem Update auf IOS 9.3 hat EVE jetzt keine Daten mehr. Also wieder alles neu machen..... Hatte das noch jemand?


Gesendet von iPad mit Tapatalk

Geht mir leider auch so (iPhone 6)...  ::)

DeeSPe

Zitat von: Odin am 21 März 2016, 23:05:35
Geht mir leider auch so (iPhone 6)...  ::)

Muss man es "nur" wieder alles neu zuweisen weil im Standardraum oder ist keine Verbindung zu HomeBridge möglich?

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

justme1968

#459
mit den aktuellsten versionen sollte es gehen:

https://github.com/nfarina/homebridge/issues/577#issuecomment-199516800

gruss
  andre

edit: gerade getestet und es geht.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

CarstenF

Verbindung zur Bridge war da. Nur keine Geräte. "sudo npm install homebridge -g" brachte alle Geräte zurück. Muss sie nur noch wieder den Räumen zuweisen.


Gesendet von iPad mit Tapatalk
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

justme1968

wenn man das homebridge update macht bevor man das iOS update macht bleibt alles in den richtigen räumen und man muss nichts neu zuweisen.

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

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

CarstenF

Hehe, wenn ich das vorher gewusst hätte...Egal, wieder was gelernt


Gesendet von iPhone mit Tapatalk
Raspberry Pi4
CUL 868, CUL 433, LaCrosse Gateway, Zigbeetomqtt2, HUE, Homematic
Max-Cube umgeflasht
MAX!, FhemtoFhem, Homebridge, FhemConnector, IR_Gateway und sonst auch noch allerlei Spielzeug....

DeeSPe

Hab mich gewagt das 9.3 Update zu installieren. Dank aktueller Homebridge Version läuft alles problemlos so wie vorher.

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

budy

Ich habe auch iOS 9.3 und die aktuelle homebridge, nebst homebridge-fhem installiert und ich musste bereits zweimal die homebridge neu starten, da EVE den Kontakt zu ihr verloren hatte, obwohl ich mich heute nur Zuhause aufhalte.  ;D Im Log der homebridge steht zu den Zeitpunkten nichts weiter drin...

Mal sehen, ob das so weitergeht.

Gruß,
Stephan
Debian stretch, FHEM 5.9.
HM-CC-RT-DN, HM-ES-PMSw1-Pl, HM-LC-Dim1TPBU-FM, HMUARTLGW, HMLAN, HM-SEC-KEY, HM-SEC-RHS, HM-SEC-SC-2, HM-SEC-SCo, HM-SEC-SD-2, HM-OU-CFM-TW, div. HUEs, Wifilight, Ring Video Pro