[solved]Enocean Rocker Switch Item Configuration

I’m having some trouble with the EchoFlex Enocean single rocker switch. I’ve also got a couple of Enocean temperature sensors and they are working fine, so I believe that I’ve got the binding configured properly. I can see the rocker switch packets being received in the openhab.log and in the events.log I can see the corresponding ON and OFF commands. However; the openhab.app fails to update the Stairs Switch icon. Any idea on what I’m missing here?

Thanks,
Dave

Setup

Hardware:
Raspberry Pi 2
Razberry Z-Wave Daughter Card
Enocean USB300U
EchoFlex PTM265U Rocker Switch
Enocean STM310U Temperature Sensor
Enocean STM320U Magnetic Contact Transmitter Module

Below is my default.items

Group	All
Group	gThirdFloor	"3rd Floor"	<firstfloor>	(All)	
Group	TF_Landing	"Landing"	(gThirdFloor)	
Switch	TF_Landing_Switch	"Landing Switch"	<switch>	(TF_Landing)		{   zwave="2:0:command=SWITCH_BINARY" }
Group	gSecondFloor	"2nd Floor"	<firstfloor>	(All)	
Group	SF_Landing	"Landing"	(gSecondFloor)	
Switch	SF_TF_Stairs_Switch	"Third Floor Switch"	(SF_Landing)		{enocean="{id=00:89:84:CC, eep=F6:02:01}"}
Group	SF_Emmetts_Room	"Emmett's Room"	<bedroom>	(gSecondFloor)	
Number	Emmetts_Room_Temp	"Temperature [%.1f °C]"	<temperature>	(SF_Emmetts_Room)		{ enocean="id=01:80:E4:BD, eep=A5:02:05, parameter=TEMPERATURE" }
Number	TF_Temperature	"Temperature [%.1f °C]"	<temperature>	(gThirdFloor)		{ enocean="id=01:81:11:99, eep=A5:02:05, parameter=TEMPERATURE" }

Default.sitemap

sitemap default label="Main Menu"
{
	Frame label="3rd Floor"  {
		Switch item=TF_Landing_Switch label="Landing Switch" 		
		Text item=TF_Temperature icon="temperature" 		
	}	
	Frame label="2nd Floor"  {
		Switch item=SF_TF_Stairs_Switch label="Stairs Switch" 		
		Frame label="Emmett's Room"  {
			Text item=Emmetts_Room_Temp icon="temperature" 			
		}		
	}	
}

Here’s an example of the packets being received from the openhab.log

2015-09-11 00:12:35.073 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 42, 00], crc8d=-62], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 42, 00, C2], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:35.380 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 45, 00], crc8d=-87], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 45, 00, A9], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:38.085 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 40, 00], crc8d=-24], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 40, 00, E8], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:38.303 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 45, 00], crc8d=-87], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 45, 00, A9], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:39.116 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 48, 00], crc8d=64], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 48, 00, 40], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:39.324 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 48, 00], crc8d=64], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 48, 00, 40], [sender=00:2B:26:39, repeaterCount=0]
2015-09-11 00:12:39.866 [DEBUG] [.e.internal.bus.EnoceanBinding] - Packet received: RadioPacketRPS[header=[Header: dataLength=00, optionalDataLength=07, packetType=01, crc8h=6C], payload=Payload: data=[], optionaldata=[01, FF, FF, FF, FF, 3F, 00], crc8d=-119], raw=[55, 00, 00, 07, 01, 6C, 01, FF, FF, FF, FF, 3F, 00, 89], [sender=00:2B:26:39, repeaterCount=0]

Events.log

2015-09-11 00:12:39 - TF_Landing_Switch received command ON
2015-09-11 00:12:39 - TF_Landing_Switch received command OFF
2015-09-11 00:12:42 - TF_Temperature state updated to 24

Found the problem…configuration issue of the switch binding. I had the wrong id for the rocker switch, it was also using channel A, not B as I’d tried

Hi davet72,
I need help to implement Enocean in Openhab. This post helped me, but I have no clear the most important:

You say you use chanel A, not B… I´m checking your items configuration but you are not specifying the channel (nor parameter):
Switch SF_TF_Stairs_Switch “Third Floor Switch” (SF_Landing) {enocean="{id=00:89:84:CC, eep=F6:02:01}"}

…How Wiki says:
Switch Button_Up () {enocean="{id=00:00:00:00, eep=F6:02:01, channel=B, parameter=I}"}

When I´m pushing my Enocean Rocket, Openhab receives two packets, ON and OFF for “I” parameter, and two packets for “O” parameter. On and off to TURN ON, and On and off to TURN OFF is a concept that I can’t still understand… I know is to control the time from press to release, but the UI has one Switch with I/O per line items configuration. If I put two lines with both parameters I would have two switches in the UI.

A basic beginner question:
Maybe I need to use Rules configuration? Where are you specifying the channel? Could you show the complete configuration for use an Enocean Rocket Switch?

And last question, can Openhab send telegrams from USB300 to Enocean relay? or only to receive from rocket to USB300? I think it would be a poor functionality…

Thanks in advance.
Diego Cimadevilla