Montag, 15. September 2014

Heimautomatisierung: DIY

Heimautomatisierungen a la LoxoneHomematic, EnOcean und KNX sind zwar ganz toll, aber man ist doch arg an diesen einen Typus von Plattform gebunden und der Preis ist auch ganz ordentlich. Doch wozu eigentlich das ganze? Ich stelle mir da diverse Komponenten vor:

  • Akteure: Schalten von Verbrauchern (Steckdosen & Licht)
  • Akteure: Steuerung von Rollläden
  • Sensoren: Tür- und Fensterkontakte
  • Sensoren: Schalter & Taster
  • Sensoren: Bewegungsmelder
  • Sensoren: Temperatur- und Feuchtigkeitsfühler
  • Steuerung: Server & Clients
Das meiste lässt sich zwar schön mit den genannten kommerziellen Lösungen umsetzen, allerdings kostet der Spaß eine ganze Stange Kohle, und ich habe dabei wenig zu basteln. Daher werde ich soviel wie möglich selbst in die Hand nehmen und mir vom Elektriker alle notwendigen Leitungen legen lassen um das ganze selbst zu programmieren. Folgende Details habe ich mir überlegt.

Als Herzstück werde ich openHAB einsetzen, eine open-Source Lösung für Heimautomatisierung mit einer beachtlichen Anzahl an Bindings, mit denen man unterschiedlichste Technologien (auch die oben genannten kommerziellen) einbinden kann. Und falls etwas fehlt (wie das als nächstes beschriebene NET-PwrCtrl HUT), lässt es sich mit etwas Java-Kenntnissen ergänzen. Außerdem gibt's hübsche Clients. Erste Experimente sind vielversprechend.

Zur Schaltung von Verbrauchern: NET-PwrCtrl HUT
Damit lassen sich bis zu 8 Verbraucher mit einer Last bis zu 16A schalten. Die Schaltung funktioniert wahlweise über die 8 Eingänge (es können einfache Schalter/Taster angeschlossen werden), oder per HTTP/UDP. Erstes Experiment mit einem 'Taster' und einem Verbraucher ist erfolgreich:


Als fancy Lichter habe ich mir MiLight ausgeguckt. Nur halb so teuer wie Philipps Hue, kann vergleichbares und ein Binding für openHAB existiert auch bereits :-)
Per default ist der WLAN Controller sogar per Smartphone App von überall aus dem Internet steuerbar, indem er einen Tunnel über einen chinesischen Server aufbaut! Das lässt sich aber zum Glück einfach im Router blockieren.

Für die Tür- und Fensterkontakte, Temperatur- und Feuchtigkeitfühler werde ich wohl einen 1-wire Bus durchs Haus legen lassen, ähnlich wie hier. Nur werde ich wohl die Elektronik nicht unterm Putz verstecken sondern komplett hinter einem solchen Deckel. Sonst kommt man ja nicht mehr dran ;-)
Auswertung vermutlich mittels RasPi.

Tbd: Bewegungsmelder, Schalter, Taster, Rollladensteuerung.


7 Kommentare:

  1. Hi,
    I have a question, I 'm not sure I understand the video correctly, as I'm really bad in German.

    I think you configured this using Openhab.
    (or at least I'll assume that for my question)

    I wonder what happens when you disconnect the network (or the openhab servers stops working)
    Am I correct to that then your button still works just for on off?

    AntwortenLöschen
    Antworten
    1. It depends on the light bulbs. If they are switched on and off via the relais, then yes, they are still working if local network is down. Openhab can additionally be used (via local network) for indicating the light state and also to switch it on and off.

      For light MiLight or Philips Hue light bulbs (which are controlled via WiFi), local network is of course essential.

      Löschen
  2. thanks, that is what I hoped for.

    I see you plan to use a bunch of them.
    Are they connect in anyway, or is it only openhab that makes the connection?

    Aka if I have 2 of them, with 16 lights and let's say I have 10 button's, yet I want to use one of the buttons of the first hut to turn on a light of the second hut.

    Via openhab that will work, yet would that still be possible when openhab crashes?
    aka are the two hut's connected in anyway?

    I'm asking you as I don't find an English translation of the hut's manuel.

    AntwortenLöschen
    Antworten
    1. No, this is not possible AFAIK. This is one use case that I realized with openhab (switching a relais of one HUT with an input of another HUT). Maybe the latest our a future firmware may support this, but not the version I am using.

      Löschen
  3. just to be sure:
    the connection without OpenHab is not possible.
    the connection with openhab, is something you did.
    correct?

    AntwortenLöschen
    Antworten
    1. Correct: https://github.com/openhab/openhab/wiki/Anel-Binding

      Löschen
  4. Hi,

    I have been trying now for more then two weeks, but I can't seem to replicate what you are doing in the video.

    Can you also post the settings in the HUT?

    Aka how are the switches for the relais and the IO set?

    the switching with the buttons I can get to work, it's the link with OpenHab that is not working and I'm not sure its it's no due to a setting in OpenHab or a setting on the hub.

    AntwortenLöschen