thkl / homebridge-homematic

Homematic plugin for homebridge: https://github.com/nfarina/homebridge
179 stars 49 forks source link

Support for Eve fake History (fakegato) #198

Closed to0b closed 6 years ago

to0b commented 6 years ago

Is it possible to implement the fakegato history service? (https://github.com/simont77/fakegato-history)

thkl commented 6 years ago

this looks not like a homematic device so it will not make it into this plugin ...

thkl commented 6 years ago

Uhh I totally misinterpreted that thing. Working on that to implement.

to0b commented 6 years ago

Thank you!

thkl commented 6 years ago

Seems to work ...

Image

Samfox2 commented 6 years ago

Cool

thkl commented 6 years ago

Thank you. There is still some stuff to do before i am able to release that version.

Currently supported are thermostats, virtual heating groups, and motion sensors ...

Eve is able to show power measurement devices also. I’ve implemented the service also on them but it didn’t work so far. 🤔🙈

Samfox2 commented 6 years ago

Doors and windows should also work, they have a characteristic that counts „times opened“

thkl commented 6 years ago

yeah but one step after another ... :)

Samfox2 commented 6 years ago

Does history log for thermostats (HM-CC-RT-DN) already work? Your last commit shows only an empty graph and no messurements.

thkl commented 6 years ago

Due the fact that i have no access to these old thermostates i was not able to implement the history. If you are able to add this, please do ...

Samfox2 commented 6 years ago

No prob, I see what I can do.

Samfox2 commented 6 years ago

Ok, I think the problem is in function HomeMaticHomeKitThermalControlService.prototype.queryData. Logging is done in the humidity request. If the device has no humidity sensor nothing is logged.

thkl commented 6 years ago

Ahh ok that’s a good point 😜. Ich will change that soon.

thkl commented 6 years ago

should work with https://github.com/thkl/homebridge-homematic/commit/8fff1e9916ed9276ec427d7061a423b8eeac7cf5

Samfox2 commented 6 years ago

Works 👍

thkl commented 6 years ago

Nice ... so i will close this

jb-home commented 6 years ago

@thkl Hallo Thomas, ich habe die .104 installiert und habe bemerkt, dass die History Einträge irgendwie nicht permanent gesichert werden. Kann es sein, wenn man es als Service laufen lässt und nicht als User pi mit homebridge -D das dann die History nicht geschrieben werden kann? Hatte es heute um 15h mit Homebridge -D kurz laufen. Danach dann als Service und um 18h sah ich dann in der History, dass seit 3h keine Daten mehr geschrieben worden sind. Dann habe ich es um 18h nochmal als User pi mit homebridge -D laufen lassen und dann kam direkt ein Wert hinzu. Oder ist das ein OSI Layer 8 Problem?

thkl commented 6 years ago

die Einträge werden im .homebridge Verzeichnis gespeichert. Also da, wo auch die Config steht. Da braucht der User, unter dem homebridge liegt Schreibrechte.

jb-home commented 6 years ago

Hmm die scheint er zu haben. Last Entry ist auf 50. Also sollte er generell 50 Eintrage aufgezeichnet haben. Komischerweise zeigt mir EVE das so nicht an. Ich werde das mal beobachten.

Könntest du noch einbauen, dass die RotaryHandle und wenn die als Window deklariert sind dann nicht auf 'Schließend' stehen, sondern auf 'Geschlossen' bzw. auf 'Geöffnet' stehen? Erst wenn ich den Status eines Fensters ändere wird er korrekt in HomeKit dargestellt.

thkl commented 6 years ago

Also bei mir sind die Einträge seit ca 3 Wochen da. Und auch die nach dem Update heute auf latest. Gerade noch mal neu gestartet die Files (heißen hostname_seriennummer.json) haben ein aktuelles Datum+Zeit. Da wird also reingeschrieben. Das siehst Du auch in -D

Für den Fenstergriff bitte neuen Issue. Sonst komme ich durcheinander.

Den habe ich aber soweit ich mich erinnere, vor ein paar Tagen gefixt.

nicoh88 commented 6 years ago

@JensBonse

Ich habe da eine Idee. Ich brauche noch ein paar Infos von dir. 😄

  1. Wenn du im Debug-Mode startest, startest du Homebridge als welcher User?
  2. Wenn Homebridge normal läuft, läuft es unter welchen User? service homebridge start?

Ich denke das entweder der User, unter dem normalerweise, Homebridge läuft, kein Homeverzeichnis hat, der Ordner .homebridge nicht existiert, es nicht ausreichend Berechtigungen gibt oder die User-Zeile in dem homebridge.service File fehlt.

Wenn ich die Infos habe, baue ich dir ein paar Befehle, mit welchen wir deinem Problem auf den Grund gehen können. 👍

jb-home commented 6 years ago

Danke, hat sich komischerweise erledigt. Die 3 Stunden gestern hatte er nichts aufgezeichnet. Als ich dann heute Morgen geschaut habe, waren alle Daten da.

box99h commented 5 years ago

Ich musste meine Homebridge neu aufsetzen und habe nun das Problem, dass meine WDS100 die Temperatur und die Luftfeuchtigkeit nicht mehr aufzeichnet. Für alle anderen Sensoren (WDS40 und WDS10) werden die Daten aufgezeichnet.

Vor der Neuinstallation hat aber auch die WDS 100 funktioniert. Wäre super, wenn mir jemand helfen könnte, da ich derzeit keine Idee habe wo der Fehler liegen könnte.