Apple Homekit: die Hoffnung stirbt zuletzt

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

Vorheriges Thema - Nächstes Thema

justme1968

das kommt drauf an :) aber die chancen stehen gut das es daran liegt.

oder an falschem host oder port.

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

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

Pazekal

Wie verzögere ich homebridge am Schlauesten? Habe es gerade in rc?.d Datei bze. in den Datein versucht und S01 auf S99 gestellt. Das scheint aber nicht zu funktionieren oder reicht nicht aus von der Verzögerung.

VG
Pascal

volschin

Zitat von: justme1968 am 25 Juli 2015, 14:27:01beim systemstart reicht es aber homebridge einfach zu verzögern.
Ich frage mich gerade, wie man das am elegantesten macht. Eine Abhängigkeit zu FHEM in der Startdatei?
Ich befürchte aber, dass dort fertig gemeldet wird, wenn das darunterliegende Perl angelaufen ist. Man braucht aber eher die Abhängigkeit zu global:INITIALIZED. 
Intel NUC+Ubuntu 24.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7690, Echo Dots+Show8, HomeBridge

Newbee

Dann gehe ich es jetzt ruhig an.  ;) Warte geduldig bis die aktuelle Version von Dir zur Verfügung steht. Freue mich dann oder muss noch ein wenig tüfteln.  8)

Intel-NUC mit ubuntu server 20.04; FHEM 6.0
HM, Dect, Netatmo, Hue

MartinMuc

Man könnte es ja innerhalb von fhem mit forever Restart über ein System Kommando beim Start starten lassen. Probiere ich heute Abend


Gesendet von iPhone mit Tapatalk
Cubietruck mit CUL und HM USB

justme1968

#170
es gibt hier: http://forum.fhem.de/index.php/topic,32652.msg314166.html#msg314166 eine neue version:

- max und homematic thermostate gehen in einer ersten version mit ist und soll temperatur. der mode wird noch nicht unterstützt und tut nichts weiter.

- basic auth und ssl sind eingebaut und könnten gehen :). hierzu muss in der config folgendes ergänzt werden.

         "ssl": "true",
         "auth": {"user": "fhem", "pass": "fhempassword"},


gruss
  andre

ps: homekit sendet auch kleine änderungen sofort. d.h. jede 0.1 grad änderungen bei der temperatur und 1% änderungen beim dimmen. vermutlich ist es sinnvoll hier erst mal zu warten ob noch eine änderung kommt und erst dann das ergebniss an fhem zu senden. sonst hat man mit ein mal per slider von 0 auf 100 dimmen ein paar dutzend funk nachrichten produziert.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

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

MartinMuc

Klasse Probier ich auch heute Abend danke.
Cubietruck mit CUL und HM USB

volschin

#172
Ich habe bei mir mal eine kleine Startanalyse im OS gemacht. Hier sind es 2,5 Secs.
pi@ha ~ $ systemd-analyze
Startup finished in 2.169s (kernel) + 8.720s (userspace) = 10.890s
pi@ha ~ $ systemd-analyze blame
          2.739s wicd.service
          2.536s fhem.service
          1.243s systemd-logind.service
          1.218s networking.service
          1.124s console-kit-log-system-start.service
          1.096s nut-monitor.service


Dagegen im FHEM-Log:
2015.07.25 13:19:12 1: Including fhem.cfg
...
2015.07.25 13:20:44 0: Featurelevel: 5.6
2015.07.25 13:20:44 0: Server started with 463 defined entities (version $Id: fhem.pl 8952 2015-07-13 12:30:26Z rudolfkoenig $, os linux, user fhem, pid 30307)


Also bei mir in FHEM runde 90 Secs.
Intel NUC+Ubuntu 24.04+Docker+FHEM6
HomeMatic: HM-MOD-RPI-PCB+HM-USB-CFG2+hmland+diverse, HUE: Hue-Bridge, RaspBee+deCONZ+diverse
Amzn Dash-Buttons, Siro Rollos
4xRPi, 4xCO20, OWL+USB, HarmonyHub, FRITZ!Box 7690, Echo Dots+Show8, HomeBridge

Pazekal

Hallo Andre,

ich habe die neue Version eingespielt und erhalte einen Error beim Start von Homebridge.
Vielleicht kannst du ja mal danach schauen.

VG
Pascal


checking Change the power state function
Characteristics.js: registering Change the power state function
TCP server accepting connection on port: 51898
HAP Server is listening
events.js:85
      throw er; // Unhandled 'error' event
            ^
Error: listen EADDRINUSE
    at exports._errnoException (util.js:746:11)
    at Server._listen2 (net.js:1156:14)
    at listen (net.js:1182:10)
    at Server.listen (net.js:1267:5)
    at Object.startServer (/opt/homebridge/node_modules/HAP-NodeJS/TCPServer.js:31:15)
    at Object.publishAccessory (/opt/homebridge/node_modules/HAP-NodeJS/Accessory.js:13:28)
    at createHAPServer (/opt/homebridge/app.js:169:15)
    at /opt/homebridge/app.js:92:17
    at Request._callback (/opt/homebridge/platforms/FHEM.js:379:22)
    at Request.self.callback (/opt/homebridge/node_modules/request/request.js:373:22)

npm ERR! Linux 3.18.14-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "run"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! homebridge@0.0.0 start: `node app.js "run"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the homebridge@0.0.0 start script 'node app.js "run"'.
npm ERR! This is most likely a problem with the homebridge package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node app.js "run"
npm ERR! You can get their info via:
npm ERR!     npm owner ls homebridge
npm ERR! There is likely additional logging output above.
npm ERR! Linux 3.18.14-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "run"
npm ERR! node v0.12.6
npm ERR! npm  v2.11.2
npm ERR! path npm-debug.log.e848537c17c5ad2aa845707826984133
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, open 'npm-debug.log.e848537c17c5ad2aa845707826984133'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, open 'npm-debug.log.e848537c17c5ad2aa845707826984133']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: 'npm-debug.log.e848537c17c5ad2aa845707826984133' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /opt/homebridge/npm-debug.log

justme1968

du musst die bereits laufende version vorher anhalten.

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

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

Pazekal

Dachte das hatte ich... Habe einfach einmal komplett durchgestartet. Jetzt läuft es. Danke dir

Newbee

Hallo,

mit folgender config bekomme ich eine "401".

{
    "platforms": [
        {
            "platform": "FHEM",
            "name": "FHEM",
            "server": "192.168.178.37",
            "port": "8083",
            "ssl": "true",
            "auth": {"username": "xxxx", "password": "xxxx"},
            "filter": "room=Attic"
        }

    ],

    "accessories": []
}


npm run start

> homebridge@0.0.0 start /home/mpw/homebridge
> node app.js

Starting HomeBridge server...
*** 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>
Loading 1 platforms...
[FHEM] Initializing FHEM platform...
auth: [object Object]
starting longpoll: https://192.168.178.37:8083/fhem.pl?XHR=1&inform=type=status;filter=.*;since=null;fmt=JSON&timestamp=1437839962518
[FHEM] Fetching FHEM switchable devices...
[FHEM] fetching: https://192.168.178.37:8083/fhem?cmd=jsonlist2%20room=Attic&XHR=1
Loading 0 accessories...
[FHEM] There was a problem connecting to FHEM.
[FHEM]   401: Authorization Required


Was habe ich übersehen?

Danke vorab.

Gruß Newbee
Intel-NUC mit ubuntu server 20.04; FHEM 6.0
HM, Dect, Netatmo, Hue

justme1968

damit basic auth geht brauchst du ein fhem das so aktuell ist das der patch von hier :http://forum.fhem.de/index.php/topic,39203.msg313357.html#msg313357 mit drinnen ist.

ausserdem hatte ich oben die syntax fürs config file falsch angegeben. es muss user und pass heissen. nicht username und password.

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

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

MartinMuc

was muß man für die Homematic Thermostate denn koppeln ? mein Thermostat wenn ich koppen will kommt ein Fehler oder es ist eine Lampe.

Ich versuchte den Climate Kanal vom  HM-TC-IT-WM-W-EU da kommt beim koppeln in Eve ein Fehler und der Climate Kanal vom HM-CC-RT-DN ist immer eine Lampe

Cubietruck mit CUL und HM USB

justme1968

du musst den Climate channel verwenden. welcher fehler kommt ?

hast du genericDeviceType auf thermostat gesetzt ?

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

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