aleoncean: New EnOcean binding with support for sending

1,447 views
Skip to first unread message

Markus Rathgeb

unread,
Aug 22, 2014, 9:24:30 AM8/22/14
to ope...@googlegroups.com
Hello!

I started a new library for communication with EnOcean devices.
There is also a new openHAB binding using this library.

The binding could be found here:

Some documentation how to configure this binding and the supported EEPs could be found here:

If you do not want to build the binding, you could download the attached jar file for openHAB 1.6 / master.

Perhaps someone would like to test it and give me feedback.

Happy testing
org.openhab.binding.aleoncean-1.6.0-SNAPSHOT.jar

Marc

unread,
Dec 23, 2014, 10:11:48 AM12/23/14
to ope...@googlegroups.com
Hello,

that looks great.
I am happy to test it to be able to steer my home (I have a few Enocean Actors...)
Do you have in between a new version of it?

Cheers

Marc

Marc

unread,
Dec 23, 2014, 4:10:19 PM12/23/14
to ope...@googlegroups.com
Hi Markus,

first of all a big thank you. I was struggling with EnOcean and my F6-10-00 Window Actors.
I tested it and it works. Only the converter is not working properly - but I can manage to have the decimals and to work with it.

However I am struggling with Switches. Can you help on those?
I am happy to test it - but I am not good enough to help you program the binding

Best

Markus Rathgeb

unread,
Dec 30, 2014, 7:03:48 AM12/30/14
to ope...@googlegroups.com
Hello!
On github you should always find the latest source code.

What is the problem with the converter (window actors)?
What converter are you using, what is not working (as expected)?

What is not working with your switches?
Could you give me further details? 

Best regards,
Markus

Marc

unread,
Jan 5, 2015, 9:19:46 AM1/5/15
to ope...@googlegroups.com
Hi Markus,

Thanks for your reply!
After a lot of trial and error I got my installation working with your binding. Thanks again, now my home is fully running on OpenHAB.
> Do you think there is chance that your binding replaces the default EnOcean Binding of OpenHab? EnOcean os for sending & receiving telegrams!

The Window contacts are working perfectly (my mistake was to having defined the Item as a Contact - Number is working great). With rules I could include them in KNX properly.

With regards to the actors, the Converter is interpreting ON as OFF and OFF as ON when using the "RCM 250 (OEM)"

Switch EnOcean1 "Sat" (GF_Wohnzimmer, Multimedia) {aleoncean="LOCALID=XX:XX:XX:XX,TYPE=LD_F6-02-01,PARAMETER=BUTTON_DIM_A,CONVPARAM=PressedUpDown"}


With a Toggle rule It is working. 

> It would be great to have a CONVPARAM=PressedDownUp. How can I support you here?


I also managed to use the "Permundo -Zwischenstecker PSC234" with the following:

Switch EnOcean3 "Halogen" (GF_Arbeitszimmer, Lights) {aleoncean="LOCALID=XX:XX:XX:XX,REMOTEID=XX:XX:XX:XX,TYPE=RD_D2-01-08,PARAMETER=SWITCH"}

after having changed their behavior to rocker (Mode 3) and having them teached in using the previous config.

The Energy and Switching are well read. 

> The Power Consumption can not be converted (indeed Permundo'EEP is D2-01-09) 
I would love to help you integrating them, but my know how in Java is too bad. At least I can support you with testing!

Thanks again

Best 

Marc

ps: I struggled a lot having the right OpenHab developer environment on my Mac. If you could post your latest compiled binding for download it would be great for others like myself who are not as good as you guys are (I can do it, but do not want to take the credit for your work!)

Markus Rathgeb

unread,
Jan 5, 2015, 5:05:48 PM1/5/15
to ope...@googlegroups.com
With regards to the actors, the Converter is interpreting ON as OFF and OFF as ON when using the "RCM 250 (OEM)"

Have a look at http://www.enocean-alliance.org/eep/ - at the time of writing the EEP version is 2.6.2
There are two profiles F6-02-01 and F6-02-02 - the profiles differ in the translation of A/BI and A/BO to dim up / down event.
Up / down (converter) is interpret as dim up / down (not button upper side / lower side).
So try to use F6-02-02 instead of F6-02-01. 
 
> It would be great to have a CONVPARAM=PressedDownUp. How can I support you here?

Should not be necessary if the correct EEP is used. 
 
If you could post your latest compiled binding for download it would be great for others like myself who are not as good as you guys are (I can do it, but do not want to take the credit for your work!)

Sorry, I will not provide any compiled version as long as there no clear statement of the EnOcean Alliance if the code can be used without any consultation with the EnOcean Alliance.
IMHO an implementation of the EEPs is allowed regardless of the "for information only" watermark in the PDF. But I am not a lawyer ...

Christian Spiegel

unread,
Feb 19, 2015, 11:17:03 AM2/19/15
to ope...@googlegroups.com
Hallo Marc,

du schreibst, dass du es geschafft hast den Permundo -Zwischenstecker PSC234 über das aleoncean-binding erfolgreich anzusteuern. Augrund deiner Item-Bezeichnung bin ich davon ausgegangen, dass du Deutsch sprichst, darum meine Fragen nicht in Englisch.

Ich wollte auch mit Enocean und Openhab starten und dachte ich fange mit etwas einfachem wie so einer schaltbaren Steckdose an. Falsch gedacht wie sich nun rausstellt. Ich nutze Openhab in Verbindung mit KNX Bindung nun schon erfolgreich mehrere Jahre. Neu ist für mich die EnOcean Integration. Ich habe auf meinem Pi das EnOceanPi Modul stecken und FHEM erfolgreich am laufen. (So wie ich das sehe). Ich kann über FHEM den PSC234 ein und ausschalten und im Event-Monitor kommen sauber die Readings an. Was ich aber bisher nicht geschafft habe, ist den PSC234 über Openhab ein- und auszuschalten.

Openhab ist denke ich korrekt eingerichtet. Die Bindings werden beim Start korrekt geladen auch wenn ich den Switch auf meiner Sitemap betätige, finde ich im Log entsprechende Einträge welche eigtl. sehr vielversprechend sind und mich erhoffen ließen, dass das PSC234 geschalten wird. Leider nein.

Ich habe als Item deine Konfiguration verwendet, wobei sich mir hier die erste Frage stellt: Was ist die LOCALID bzw. was muss ich hier eintragen?
Ich habe das PSC234 wie du geschrieben hast auf den Rocker Mode 3 konfiguriert. Nächste Frage, muss ich nun nochmal quasi Openhab auf dem PSC234 einlernen und wenn ja wie? Ich weiß wie ich das PSC234 in den Lernmodus bekomme, aber wenn ich dann den Openhab Switch betätige passiert nichts!? Reicht es nicht, wenn ich das PSC234 über FHEM steuern kann? Steuert Openhab nicht über FHEM?

Ich kann na klar auch ein paar Logs und Details bereitstellen.

Danke für deine helfende Antwort.

Grüße
Christian

Marc

unread,
Feb 19, 2015, 5:18:29 PM2/19/15
to ope...@googlegroups.com
Hallo Christian,

Deutsch ist bei mir auch richtig ;)
Du sagst du nutzt FHEM und Openhab. Falls FHEM auch offen ist, bitte schließen und OpenHab neustarten damit der Port frei wird.
Du scheinst ein Problem mit der Kommunikation mit dem Modul zu haben...

Sende mir bitte:
- Debug log bezogen auf aleoncean (Start)
- Logs beim Schalten
- Config-Part für das Binding

VG

Marc

Christian Spiegel

unread,
Feb 20, 2015, 9:50:56 AM2/20/15
to ope...@googlegroups.com
Hallo Marc,

ich habe FHEM nun gestoppt. Klingt logisch, dass nur ein Prozess auf die Serielle Schnittstelle auf der das EnOceanPi steckt zugreifen kann. 

Ich nutzte Openhab 1.6.2 und das org.openhab.binding.aleoncean-1.6.0-SNAPSHOT.jar

Das Binding sieht so aus:
Switch EnO_sensor_0187C1BB "EnOcean SmartPlug PSC234" <socket> (EG_Wohnen) {aleoncean="REMOTEID=01:87:C1:BB,TYPE=RD_D2-01-08,PARAMETER=SWITCH"}

Angehängt findest du noch den Auszug aus dem Openhab.log bzw. dem Event.log. 

Kannst du daraus den Fehler erkennen? Die eine Zeile "Received new ESP3 packet" klingt, als ob das Modul prinzipiell funktioniert.

Muss ich denn nun noch das PSC234 auf Openhab einlernen? Das habe ich nicht hin bekommen, bzw. weiß nicht wie? Muss ich eine LOCALID angeben und wenn ja, welche?

Danke für deine Hilfe.

Grüße
Christian



--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/ws6TFH-rNB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/8afd43da-f92e-4ce4-9a1f-f79b500c8164%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

log.txt

Marc

unread,
Feb 21, 2015, 6:34:59 AM2/21/15
to ope...@googlegroups.com
Hallo Christian,

das Modul scheint zu funktionieren und die Konfiguration scheint ok zu sein.
Probier mal ob dies funktioniert (Bitte anlernen) (Du bekommst in dem Fall die Rückkopplung An/Aus, aber es ist ein guter Start)

{aleoncean="LOCALID=FF:80:0D:01,TYPE=LD_F6-02-01,PARAMETER=BUTTON_DIM_B,CONVPARAM=UpPressedReleased"}


Die LokalID ist wichtig (Diese fehlt bei dir) da diese einen Rocker simuliert (ist so wie du einen richtigen Schalter hättest). Ich habe je Switch die LocalID angepasst (z.B. FF:80:0D:02) , 

Die richtige Konfiguration sieht so aus bei dir.

{aleoncean="LOCALID=FF:80:0D:01,REMOTEID=01:87:C1:BB,TYPE=RD_D2-01-08,PARAMETER=SWITCH"}


Die RemoteID ist die aus den Logs (Kannst du erzwingen mit einem An/Aus direkt am Switch.

Freue mich auf deine Rückmeldung

VG

Marc

Christian Spiegel

unread,
Feb 22, 2015, 10:37:26 AM2/22/15
to ope...@googlegroups.com
Hi Marc,

ich stehe noch etwas auf dem Schlauch.

Du schreibst:  (Bitte anlernen) (Du bekommst in dem Fall die Rückkopplung An/Aus, aber es ist ein guter Start)
Wie soll ich das tun? Ich kann den PSC234 per 5 Sekunden Tastendruck in den Lernmodus versetzen, richtig? Aber was muss ich auf Openhab Seite tun? Egal was ich tue, am PSC234 tut sich gar nichts.

Welche Konfiguration aus deinen Beispielen benötige ich nun? Beide, eine fürs anlernen und die andere dann danach zum Schalten?

Noch eine Frage: Wie hast du die LOCALID ermittelt?

Sorry aber ich bin ein EnOcean Newbie.

Danke für deinen Antworten.

Viele Grüße
Christian



Marc

unread,
Feb 24, 2015, 2:45:21 PM2/24/15
to ope...@googlegroups.com
Hi Christian,

Probier bitte genau diese Item Konfiguration in OpenHab: 
{aleoncean="LOCALID=FF:80:0D:01,TYPE=LD_F6-02-01,PARAMETER=BUTTON_DIM_B,CONVPARAM=UpPressedReleased"}
Die LokalID kannst du selber festlegen (Probier aber genau diese Konfig als Anfang), es ist wie gesagt eine Emulation eines Rockers.  Bei EnOcean hat jeder Sensor/ Autor eine ID.

Beim anlernen, bitte 5 sek den Permundo in den Lernmodus versetzen und dann in OpenHab An/Aus probieren. Die Lampe sollte Grün werden. Falls sich nichts tut:
1) Resete den Permundo und a) Konfiguriere den Rocker in den Modus 3 und b) probiere es nochmal mit dem anlernen und diesmal etwas näher.
2) Sende mir erneut deine Logs

Achte bitte darauf, dass FHEM nicht im Einsatz ist!

VG

Marc

Markus Rathgeb

unread,
Feb 24, 2015, 2:57:40 PM2/24/15
to ope...@googlegroups.com

> Die LokalID kannst du selber festlegen

Das ist nicht ganz richtig, wenn du damit "beliebig" meinst. Sie lokale ID muss entweder der Chip ID der EnOcean-Moduls entsprechen oder eine der 128 BaseIDs (der programmierten BaseID sein).

Christian Spiegel

unread,
Mar 1, 2015, 7:36:12 AM3/1/15
to ope...@googlegroups.com
Hi Marc und Markus,

der Hinweis von Markus hat mich zur Lösung des Problems gebracht. Ich habe zum Anlernen des Permundos die SubDefID meines EnOceanPi Moduls verwendet. Abgelesen habe ich die ID in FHEM. Nach dem Reset und erfolgreichem Anlernen im Rocker Mode 3 kann ich nun den Permundo schalten! Danke für Eure Hilfe!!!

Funktioniert denn das Auslesen von POWER und ENERGY auch? 

Ich finde im Log folgenden Hinweis:
2015-03-01 13:31:37.817 [DEBUG] [o.o.b.a.internal.worker.Worker] - Received new ESP3 packet: RadioPacket4BS{RadioPacket{ESP3Packet{packetType=0x01, dataLen=10, optionalDataLen=7, data=[-91, 0, 0, 38, 12, 1, -121, -63, -69, 0], optionalData=[3, -1, -1, -1, -1, 77, 0]}, choice=0xA5, senderId=01:87:C1:BB, destinationId=FF:FF:FF:FF, status=0x00, subTelNum=0x03, dBm=0x4D, securityLevel=0x00}}
2015-03-01 13:31:37.818 [WARN ] [d.remote.RemoteDeviceEEPD20108] - Don't know how to handle radio choice 0x%02X.

Grüße
Christian


Markus Rathgeb

unread,
Mar 2, 2015, 8:38:39 AM3/2/15
to ope...@googlegroups.com
Hallo,
warum verwendest du den "Rocker Mode"?
Ich verwende das Profil D2-01-08 (reicht hier, da -- bis auf Dimmen,
was der Schalter eigentlich nicht kann -- 08 nur mehr kann, als 09
[siehe EEP Spec]).
Energie- und Leistungswerte werden zwar vom Stecker übertragen, jedoch
sind hier bei mir die letzten vier Bytes (also die, die den Messwert
beinhalten) alle 0.
Etwas seltsam.
Hast du das mit FHEM hinbekommen?
Könnte auch sein, dass mein Stecker mist sendet, vom Code her sollte es passen.
Gruß,
Markus
> https://groups.google.com/d/msgid/openhab/CAHcx6rCC5a-jmcRrQia32Nfp_xA95o0NOKW1LSrjCpBfu6KZXQ%40mail.gmail.com.

Markus Rathgeb

unread,
Mar 2, 2015, 12:56:05 PM3/2/15
to ope...@googlegroups.com
Habe mal eben das Profil A5-12-01 implementiert, das der Stecker ja
ebenso verwendet, um seine Messwerte zu versenden.
Auch hier Empfange ich als Wert nur "0".

Markus Rathgeb

unread,
Mar 2, 2015, 1:59:46 PM3/2/15
to ope...@googlegroups.com
Ok, es muss letztendlich an dem PSC234 gelegen haben. Habe soeben
einen anderen probiert und dort geht es sowohl über A5-12-01, als auch
über D2-01-08.
Message has been deleted

Marc

unread,
Mar 2, 2015, 4:24:04 PM3/2/15
to
Hallo Markus, 

ich schaffe es nur den Energy-Wert zu bekommen.  Den Verbrauchswert will er mir nicht liefern...
Wie hast du ein neues Profil implementiert? Würde gerne dabei unterstützen!

VG 

Marc

Markus Rathgeb

unread,
Mar 2, 2015, 5:34:49 PM3/2/15
to ope...@googlegroups.com
Was meinst du mit "Wie hast du ein neues Profil implementiert"?
Du weißt, wer der Autor der aleoncean Bibliothek und des aleoncean
openHAB bindings ist? ;-)

Christian Spiegel

unread,
Mar 3, 2015, 11:34:28 AM3/3/15
to ope...@googlegroups.com
Hallo Markus,

ich verwende den Rocker Mode weil es Marc so vorgeschlagen hatte und ich es nicht besser weiß. ;-(

In welchen Mode soll ich denn den Permundo konfigurieren, damit auch die Energiewerte auslesen kann? Und wie muss dann die Openhab Item Konfig fürs Einlernen aussehen?

Danke für deine Hilfe.

Grüße
Christian

P.S.: vlt merkst du dass ich EnOcean Newbie bin ;-)

Am 2. März 2015 um 14:38 schrieb Markus Rathgeb <magg...@gmail.com>:

Markus Rathgeb

unread,
Mar 3, 2015, 11:43:59 AM3/3/15
to ope...@googlegroups.com
Eigentlich ja egal, was du zum Schalten verwendest, solange es
funktioniert. Ich wollte nur wissen, warum du den Tastenmodus gewählt
hast.

Alternativ:
- lege die Itemkonfiguration (D2-01-08) an und start OH
- folge der Anweisung "Gateway connection / Invoke UTE learn-in / 4BS
learn-in" vom Datenblatt
(http://www.batterielos.de/shop/media/products/Datasheet-PSC234.pdf)

Für Leistung / Energie einfach mal beides testen und schauen, was funktioniert.
Beispielkonfiguration befindet sich in der Doku zum Binding:
https://github.com/aleon-GmbH/aleoncean-openhab-binding/blob/master/doc/config/item.md

Christian Spiegel

unread,
Mar 4, 2015, 3:27:51 AM3/4/15
to ope...@googlegroups.com
Hallo Markus,

kaum macht man es richtig, funktioniert alles. Danke für die Hilfe.

Habe bis jetzt erfolgreich drei unterschiedliche EnOcean Sensoren mit
eurem Binding am laufen.

Grüße Christian
> --
> You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/ws6TFH-rNB8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.
> To post to this group, send email to ope...@googlegroups.com.
> Visit this group at http://groups.google.com/group/openhab.
> To view this discussion on the web visit https://groups.google.com/d/msgid/openhab/CAOcK%3DCMv3jRiffR4xModneumnH5KQrhHYz7O9aHFwFBPuj_z0Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages