Settings up EnOcean

Hi,

I am a total newbie on OpenHAB trying to switch from Home Assistant because it look like EnOcean there is totaly forgotten despite the huge advantage of battery-free devices.

So, my initial “ready-to-go-for-openhab” setup I am trying to reach is to switch on a hue light with an EnOcean Wall Switch (PTM210 from NodOn).

STEPS :

1/ Validated the switch communication on my computer (using software from EnOcean)

2/ Configured Hue on OpenHAB : Tested and worked.

3/ Installed the EnOcean USB Key on OpenHAB. Seems like it was recognised automagically (seen in the logs when OpenHAB is starting)

4/ Installed the EnOcean addon

5/ created the Switch in enocean.items

Switch TestButton (All) {enocean="{id=00:11:22:33, eep=F6:02:01, channel=A}"}

And… that’s it… It tried to activate the button and I don’t know how OpenHAB could show me if it receive it. The only thing I can see is the USB Key blinking when I push a button.

In fact, there is no logs in the log folder of the samba server of the pi.

The next step if I manage to see that working should be to create the rule to link the switch to a hue light.

Can someone take my hand and help me ? =)

Hi @rlcx ,

I have no experience with EnOcean binding, but you can find information about whats happening within openHAB in these two log files:

tail -f /var/log/openhab2/events.log
tail -f /var/log/openhab2/openhab.log

Cheers
Bernd

1 Like

Try this as a start in terminal,

ssh -p 8101 openhab@localhost

Password authentication
Password: habopen
openhab>log:tail

Push the button,
I have only an temperature-sensor, but with an button and when I click thiscan I see the signals from the sensor as:
11:13:42.811 [INFO ] [marthome.event.ItemStateChangedEvent] - Weather_Temp_Ug changed from 24.5 to 24.9
11:13:42.814 [INFO ] [marthome.event.ItemStateChangedEvent] - Weather_LastUpdate_Ug changed from 2017-01-31T11:12:15.077+0100 to 2017-01-31T11:13:42.812+0100
11:13:42.851 [INFO ] [marthome.event.ItemStateChangedEvent] - Weather_Temp_Ug_Max changed from 24.5 to 24.9

//Örjan

1 Like

Hello and thank you :slight_smile:

It took me some time but I managed to handle my hue lights properly !
Logs helped a lot. In fact, when I change a Switch in the items file, openhab handle it (I can see it in openhab.log) but the EnOcean need something like a reinitialisation.

At this time I don’t know how to do something like a “hot restart” of OpenHab to handle my new configuration so I just restart the pi everytime I change something regarding an EnOcean module.

I have the same problem with DMX. Every time I changed some settings, especially groups in items, I have to restart service to see results :frowning:

Yep, everything is perfectly working and what is the most strange is that when I want to add a button I can see in the logs that the button is properly detected but adding it to any rules will need a restart.

Hi, I have two Eltako FT4 EnOcean double rockers(PTM 215 DB, date 50/14), that work nicely.
Now I bought a Jung ENOA595MPAL (PTM210 DB, date 12/17) double rocker that does not work.

items:

Switch FT4_1_A_Up {enocean="{id=FE:FD:2F:BF,eep=F6:02:02,channel=A,parameter=O}"}
Switch FT4_1_A_Dn {enocean="{id=FE:FD:2F:BF,eep=F6:02:02,channel=A,parameter=I}"}
Switch FT4_1_B_Up {enocean="{id=FE:FD:2F:BF,eep=F6:02:02,channel=B,parameter=O}"}
Switch FT4_1_B_Dn {enocean="{id=FE:FD:2F:BF,eep=F6:02:02,channel=B,parameter=I}"}

Switch FT4_2_A_Up {enocean="{id=FE:FD:2F:BC,eep=F6:02:02,channel=A,parameter=O}"}
Switch FT4_2_A_Dn {enocean="{id=FE:FD:2F:BC,eep=F6:02:02,channel=A,parameter=I}"}
Switch FT4_2_B_Up {enocean="{id=FE:FD:2F:BC,eep=F6:02:02,channel=B,parameter=O}"}
Switch FT4_2_B_Dn {enocean="{id=FE:FD:2F:BC,eep=F6:02:02,channel=B,parameter=I}"}

Switch Jung_1_A_Up {enocean="{id=00:2F:17:B3,eep=F6:02:02,channel=A,parameter=O}"}
Switch Jung_1_A_Dn {enocean="{id=00:2F:17:B3,eep=F6:02:02,channel=A,parameter=I}"}
Switch Jung_1_B_Up {enocean="{id=00:2F:17:B3,eep=F6:02:02,channel=B,parameter=O}"}
Switch Jung_1_B_Dn {enocean="{id=00:2F:17:B3,eep=F6:02:02,channel=B,parameter=I}"}

sitemap:

		Text label="HausGart/Diagnose/EnOcean" icon="light-on" {
			Switch		item=FT4_1_A_Up			label="FT4_1_A_Up"
			Switch		item=FT4_1_A_Dn			label="FT4_1_A_Dn"
			Switch		item=FT4_1_B_Up			label="FT4_1_B_Up"
			Switch		item=FT4_1_B_Dn			label="FT4_1_B_Dn"			
			Switch		item=FT4_2_A_Up			label="FT4_2_A_Up"
			Switch		item=FT4_2_A_Dn			label="FT4_2_A_Dn"
			Switch		item=FT4_2_B_Up			label="FT4_2_B_Up"
			Switch		item=FT4_2_B_Dn			label="FT4_2_B_Dn"	
			Switch		item=Jung_1_A_Up			label="Jung_1_A_Up"
			Switch		item=Jung_1_A_Dn			label="Jung_1_A_Dn"
			Switch		item=Jung_1_B_Up			label="Jung_1_B_Up"
			Switch		item=Jung_1_B_Dn			label="Jung_1_B_Dn"	
		}

logs:

pi@haus:/opt/openhab-1.8.3-runtime/logs $ tail -f *.log | grep -i enocean
16:42:09.410 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="A", parameter="O"}
16:42:09.420 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 44, 00], crc8d=-68], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 44, 00, BC], [sender=FE:FD:2F:BF, repeaterCount=0]
16:42:09.661 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="A", parameter="O"}
16:42:09.665 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 44, 00], crc8d=-68], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 44, 00, BC], [sender=FE:FD:2F:BF, repeaterCount=0]
16:42:12.161 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 43, 00], crc8d=-41], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 43, 00, D7], [sender=00:2F:17:B3, repeaterCount=0]
16:42:12.439 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="00:2F:17:B3", channel="A", parameter="O"}
16:42:12.442 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 43, 00], crc8d=-41], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 43, 00, D7], [sender=00:2F:17:B3, repeaterCount=0]
^C
pi@haus:/opt/openhab-1.8.3-runtime/logs $

For Eltako, I can see the key presses in the web GUI switches, but not for Jung.
Both Eltako and Jung key presses show up in the logs.

Perhaps a change in eep=…?

Logs from first pressing Eltako FT4 upper-left, lower-left, upper-right, lower-right,
then same sequence for the Jung ENO. - The Jung returns the same channel B, parameter I for all taps.

I am on old OpenHAB 1.8.3 and should probably upgrade to the latest Enocean binding.

pi@haus:/opt/openhab-1.8.3-runtime/logs $ tail -f *.log | grep -i enocean
18:40:40.552 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="A", parameter="O"}
18:40:40.553 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 46, 00], crc8d=-106], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 46, 00, 96], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:40.759 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="A", parameter="O"}
18:40:40.760 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 41, 00], crc8d=-3], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 41, 00, FD], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:42.638 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="I"}
18:40:42.640 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="A", parameter="I"}
18:40:42.642 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 41, 00], crc8d=-3], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 41, 00, FD], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:42.848 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="I"}
18:40:42.849 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 43, 00], crc8d=-41], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 43, 00, D7], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:43.954 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="O"}
18:40:43.955 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4A, 00], crc8d=106], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4A, 00, 6A], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:44.121 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="O"}
18:40:44.122 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4A, 00], crc8d=106], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4A, 00, 6A], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:44.715 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Pressed for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="I"}
18:40:44.718 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 46, 00], crc8d=-106], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 46, 00, 96], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:44.877 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="FE:FD:2F:BF", channel="B", parameter="I"}
18:40:44.880 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 47, 00], crc8d=-125], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 47, 00, 83], [sender=FE:FD:2F:BF, repeaterCount=0]
18:40:49.278 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 46, 00], crc8d=-106], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 46, 00, 96], [sender=00:2F:17:B3, repeaterCount=0]
18:40:49.504 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="00:2F:17:B3", channel="B", parameter="I"}
18:40:49.507 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 47, 00], crc8d=-125], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 47, 00, 83], [sender=00:2F:17:B3, repeaterCount=0]
18:40:53.501 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4F, 00], crc8d=43], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4F, 00, 2B], [sender=00:2F:17:B3, repeaterCount=0]
18:40:53.717 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="00:2F:17:B3", channel="B", parameter="I"}
18:40:53.720 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4D, 00], crc8d=1], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4D, 00, 01], [sender=00:2F:17:B3, repeaterCount=0]
18:40:56.365 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 44, 00], crc8d=-68], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 44, 00, BC], [sender=00:2F:17:B3, repeaterCount=0]
18:40:56.592 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="00:2F:17:B3", channel="B", parameter="I"}
18:40:56.596 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 47, 00], crc8d=-125], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 47, 00, 83], [sender=00:2F:17:B3, repeaterCount=0]
18:40:57.650 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4F, 00], crc8d=43], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4F, 00, 2B], [sender=00:2F:17:B3, repeaterCount=0]
18:40:57.907 [DEBUG] [.e.internal.bus.EnoceanBinding:285  ] - Received new value Released for device at EnoceanParameter: {id="00:2F:17:B3", channel="B", parameter="I"}
18:40:57.911 [DEBUG] [.e.internal.bus.EnoceanBinding:329  ] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 4C, 00], crc8d=20], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 4C, 00, 14], [sender=00:2F:17:B3, repeaterCount=0]
^C
pi@haus:/opt/openhab-1.8.3-runtime/logs $

Did you allready restart your oh-system?
That’s my workouraount - after defining new items, sitemaps or rules I allways had to restart the system for getting the enocean-binding work as aspected.:disappointed:

Same problem here :frowning: