Apple Homekit: die Hoffnung stirbt zuletzt

Begonnen von eldrik, 23 Januar 2015, 13:57:07

Vorheriges Thema - Nächstes Thema

binford6000

Hallo Zusammen,
ich habe mich auch mal an eine komplette Neuinstallation laut Wiki gewagt und bekomme auch die Homebridge mit allen Geräten zum Laufen.
Allerdings nur für 5 bis 10 Minuten und danach beendet sie sich. Manuell oder per daemon ist dabei egal.

Die verwendeten Versionen sind:

node -v && npm -v
v5.0.0
3.6.0


Homebridge in Version 0.3.1 und homebridge-fhem in Version 0.2.6. Das Ganze läuft auf einem Raspi 2B mit aktuellem Jessie und fhem 5.7.
Hat noch jemand ähnliche Erfahrungen gemacht oder einen konkreten Tipp?

VG Sebastian

justme1968

du soltest posten was auf der konsole steht...
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

binford6000

Ja sorry, dass wäre in der Tat eine gute Idee gewesen...

undefined:1
["gds-c_altitude","",""]
                   ^

SyntaxError: Unexpected token
    at Object.parse (native)
    at Request.<anonymous> (/usr/lib/node_modules/homebridge-fhem/index.js:454:31)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-fhem/node_modules/request/request.js:960:12)
    at emitOne (events.js:77:13)
    at IncomingMessage.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at IncomingMessage.Readable.push (_stream_readable.js:110:10)
    at HTTPParser.parserOnBody (_http_common.js:109:22)




justme1968

bitte entferne mal in index.js kurz über der zeile 454 den kommentar am anfang der zeile mitconsole.log( 'Rcvd: ' + (l.length>132 ? l.substring(0,132)+'...('+l.length+')':l) ); und poste dann die konsolen ausgabe.

was steht zeitgleich in fhem im event monitor?

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

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

binford6000

#2149
Hallo Andre,
hier nochmal in komplett von heute Morgen:

Rcvd: ["gds","active","<div id=\"gds\"  class=\"col2\"><svg class=\" rc_dot green\" alt=\"active\" title=\"active\"    xmlns:dc=\"http://p...(1096)
Rcvd: ["gds-_dataSource","Quelle: Deutscher Wetterdienst","Quelle: Deutscher Wetterdienst"]
Rcvd: ["gds-_dataSource-ts","2016-03-13 08:27:55","2016-03-13 08:27:55"]
Rcvd: ["gds-c_temperature","",""]
undefined:1
["gds-c_temperature","",""]
                      ^

SyntaxError: Unexpected token
    at Object.parse (native)
    at Request.<anonymous> (/usr/lib/node_modules/homebridge-fhem/index.js:454:31)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/lib/node_modules/homebridge-fhem/node_modules/request/request.js:960:12)
    at emitOne (events.js:77:13)
    at IncomingMessage.emit (events.js:169:7)
    at readableAddChunk (_stream_readable.js:146:16)
    at IncomingMessage.Readable.push (_stream_readable.js:110:10)
    at HTTPParser.parserOnBody (_http_common.js:109:22)


Und hier das Eventlog:

2016-03-13 08:27:55 GDS gds _dataSource: Quelle: Deutscher Wetterdienst
2016-03-13 08:27:55 GDS gds c_temperature:
2016-03-13 08:27:55 GDS gds c_windSpeed:
2016-03-13 08:27:55 GDS gds c_windPeak:
2016-03-13 08:27:55 GDS gds c_pressure-nn:
2016-03-13 08:27:55 GDS gds c_windDir:
2016-03-13 08:27:55 GDS gds c_altitude:
2016-03-13 08:27:55 GDS gds c_rain1h:
2016-03-13 08:27:55 GDS gds c_stationName:
2016-03-13 08:27:55 GDS gds a_valid: 0
2016-03-13 08:27:55 GDS gds a_count: 0
2016-03-13 08:27:55 GDS gds REREADCONDITIONS
2016-03-13 08:27:55 GDS gds c_temperature:
2016-03-13 08:27:55 GDS gds _dataSource: Quelle: Deutscher Wetterdienst
2016-03-13 08:27:55 GDS gds c_rain1h:
2016-03-13 08:27:55 GDS gds c_stationName:
2016-03-13 08:27:55 GDS gds c_altitude:
2016-03-13 08:27:55 GDS gds c_windDir:
2016-03-13 08:27:55 GDS gds c_windPeak:
2016-03-13 08:27:55 GDS gds c_pressure-nn:
2016-03-13 08:27:55 GDS gds c_windSpeed:
2016-03-13 08:27:55 GDS gds a_count: 0
2016-03-13 08:27:55 GDS gds a_valid: 0

fh168

Ich habe mich auch lt. Wiki für mein Raspbi 3 Jessi dran gewagt,

bekomme aber auch eine Fehlermeldung

root@raspberrypi:~# sudo npm install -g homebridge
npm ERR! Linux 4.1.18-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge"
npm ERR! node v5.7.1
npm ERR! npm  v3.8.2
npm ERR! file /root/.npm/homebridge/0.3.1/package/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR!
npm ERR! ^
npm ERR! File: /root/.npm/homebridge/0.3.1/package/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     /root/npm-debug.log
Hue, Lacrosse, PCA301, MySensors, V 1.67 CUL 868 V3.4, Lacrosse-WLAN-Gateway, Tasmota RF-

Odin

Hallo Leute,

ich habe gesehen das nun auch MiLight Geräte unterstützt werden.

Kann mir jemand erklären wie ich die Homebridge update? Vielen Dank.

Odin

OK, sorry - hab's überlesen...  ::)

Läuft die Homebridge auch auf Jessie oder gibt es da Probleme?

MartinPetri

Hallo Leute


komme leider nicht weiter mit der Installation .....

node version ist diese
node -v && npm -v
v0.10.28
3.8.2


und bei Eingabe von homebridge kommt ständig das er das plugin nicht laden kann

homebridge
*** 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>

/usr/local/lib/node_modules/homebridge-fhem/index.js:51
    for( var subscription of FHEM_subscriptions[inform_id] ) {
                          ^^
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] ====================
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] ERROR LOADING PLUGIN homebridge-fhem:
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] SyntaxError: Unexpected identifier
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Plugin.load (/usr/local/lib/node_modules/homebridge/lib/plugin.js:65:22)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:112:14)
    at Array.forEach (native)
    at Server._loadPlugins (/usr/local/lib/node_modules/homebridge/lib/server.js:108:22)
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] ====================
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] No plugins found. See the README for information on installing plugins.
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] Loaded config.json with 0 accessories and 1 platforms.
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] ---
[Fri Mar 18 2016 17:59:12 GMT+0100 (CET)] Loading 1 platforms...
Error: The requested platform 'homebridge-fhem.fhem' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:112:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:263:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:71:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)


ich hoffe ihr könnt mir helfen :)
Intel NUC , HMLan , RaspberryPI
diverse Homematic komponenten

justme1968

deine node version ist zu alt. mindestens 0.12. aktuell ist 4.4

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

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

Breaked

Blöde Frage:

Welche Versionen von node usw. benötigt man derzeit mindestens, oder im Bestfall.
Finde dazu leider keine Übersicht.

Danke  ;)
Bereit für dein eigenes Smart Home?
http://ownsmarthome.de

hanfreyy

Ich hab nun auch FHEM mit der Homebridge laufen, hauptsächlich für meine VU+. Aktuell bietet das Plugin mir Lautstärke und An/Aus an. Kann man das irgendwie auch machen das er die Sender umschalten anbietet? Bin neu im Thema.
Danke für eure Infos!

justme1968

der thread zur aktuellen version ist hier: https://forum.fhem.de/index.php/topic,48558.0.html und da sind auch alle möglichkeiten der konfiguration beschrieben.

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

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

MartinPetri

DANKE :)


hab es auch hinbekommen leider schmiert mir fhem beim benutzen des doif zum start ab hab es laut wiki installiert autostart geht auch
wenn man nun stoppt oder status drückt stoppt die homebridge aber fhem friert ein

im fhem log ist leider nichts zu sehen.......
Intel NUC , HMLan , RaspberryPI
diverse Homematic komponenten

justme1968

zu doif kann ich dir nichts sagen,

abschmieren und einfrieren sind aber zwei unterschiedliche dinge...
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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