OH2 and EnOcean?

Hi Hubertus

Thanks for the tip. I’ve already ordered a different one (“Unterputz”) but also from Elatko, I think.

Steve

Hello Stephen,
I don’t want to take over your thread, but as you succeeded in running enocean with openhab2 I hope you can give me a hint what I’m doing wrong:
I have several unidirectional actuators of which I don’t have any IDs.
Under FHEM I could simulate a switch which is sending a command over the Enocean USB.
With that I was able to train the actuators to the Enocean USB Stick.
In FHEM I am not able to adress the actuators directly but I simply send a command like AI and the actuator reacts on that.
Now I’m searching for a solution in Openhab like in FHEM.
I hope I’m on the right way, but actually my actuators don’t react on my commands.

My Enocean USB has the following IDs:
BaseID FFB59680
ChipID 019E6B2D

I made several tests with the item configuration, like this one:
Switch Rocker (All) {enocean="{id=FF:B5:96:80, eep=F6:02:01, channel=B}"}
But the actuators don’t react.

Do you have any idea where to look for the solution.
Unfortunately enocean seems to be not very common in the openhab community…
Thanks in advance,
Patrick

Hi Patrick

Take a look at https://groups.google.com/forum/m/#!topic/openhab/REmsBmOaCyU

Perhaps that will help you.

As I understand it, EnOcean switches don’t have state so they can’t be declared as a Switch in OpenHAB. To make them work you have to associate them with another OH item, as in the given examples (which are Hue _Switch_es).

My interpretation may be wrong, but it helps me to understand how it works! :slight_smile:

Steve

1 Like

Hi Steve,
Thanks for your answer.
Maybe that’s my misunderstanding.
I’ll give it a try.

Greetings,
Patrick

Helle Steve,

it’s still not working.
I’m getting really frustrated about it right now.
My problem is that I don’t have an Enocean Switch, only the USB 300 stick an unidirectional Enocean actuator.
In FHEM I’m able to send an command over the USB stick. When something is transmittet the led on stick is blinking.
But in openhab I’m stil not able to send any command.
I made several tests, but no reaction on the USB Stick.

My Enocean USB has the following IDs:
BaseID FFB59680
ChipID 019E6B2D

my items file:

Group All
Group:Switch:OR(ON, OFF) 		Lights 		"All Lights [(%d)]" 								(All)

Switch TestRocker1 "TestRocker1" (All,Lights) {enocean="{id=AA:BB:CC:02, eep=F6:02:01}"}
Switch TestRocker2 "TestRocker2" (All,Lights) {enocean="{id=FF:B5:96:80, eep=F6:02:01}"}
Switch TestRocker3 "TestRocker3" (All,Lights) {enocean="{id=01:9E:6B:2D, eep=F6:02:01}"}
Switch Rocker1 "Rocker1" (All,Lights) {enocean="{id=FF:B5:96:80, eep=F6:02:01, channel=A}"}
Switch Rocker2 "Rocker2" (All,Lights) {enocean="{id=FF:B5:96:80, eep=F6:02:01, channel=B}"}      
Switch Rocker3 "Rocker3" (All,Lights) {enocean="{id=01:9E:6B:2D, eep=F6:02:01, channel=A}"}
Switch Rocker4 "Rocker4" (All,Lights) {enocean="{id=01:9E:6B:2D, eep=F6:02:01, channel=B}"}   

my sitemap:

sitemap neu label="Neu"
{
	 Frame label="EnOcean Pi"
    {
		Switch item=TestRocker1 label="TestRocker1"
		Switch item=TestRocker2 label="TestRocker2"
		Switch item=TestRocker3 label="TestRocker3"
		Switch item=Rocker1 label="Rocker1"
    	Switch item=Rocker2 label="Rocker2"
    	Switch item=Rocker3 label="Rocker3"
    	Switch item=Rocker4 label="Rocker4"
    }  
}

my rules:

var Number counter = 1
var Timer timer = null

/**
 * This is a demo rule which simulates a real dimmer by reacting to increase/decrease commands 
 * and posting an updated state on the bus 
 */

rule "TestLight1"
	when
		Item TestRocker1 received command
	then
	if(receivedCommand==ON) {
		sendCommand(Rocker1, ON)
		sendCommand(Rocker2, ON)
		sendCommand(Rocker3, ON)
		sendCommand(Rocker4, ON)
		/*sendCommand(Rocker5, ON)
		sendCommand(Rocker6, ON)*/
	}
	else if (receivedCommand==OFF) {
		sendCommand(Rocker1, OFF)
		sendCommand(Rocker2, OFF)
		sendCommand(Rocker3, OFF)
		sendCommand(Rocker4, OFF)
		/*sendCommand(Rocker5, OFF)
		sendCommand(Rocker6, OFF)*/
	}
end
rule "TestLight2"
	when
		Item TestRocker2 received command
	then
	if(receivedCommand==ON) {
		sendCommand(Rocker1, ON)
		sendCommand(Rocker2, ON)
		sendCommand(Rocker3, ON)
		sendCommand(Rocker4, ON)
		/*sendCommand(Rocker5, ON)
		sendCommand(Rocker6, ON)*/
	}
	else if (receivedCommand==OFF) {
		sendCommand(Rocker1, OFF)
		sendCommand(Rocker2, OFF)
		sendCommand(Rocker3, OFF)
		sendCommand(Rocker4, OFF)
		/*sendCommand(Rocker5, OFF)
		sendCommand(Rocker6, OFF)*/
	}
end
rule "TestLight3"
	when
		Item TestRocker3 received command
	then
	if(receivedCommand==ON) {
		sendCommand(Rocker1, ON)
		sendCommand(Rocker2, ON)
		sendCommand(Rocker3, ON)
		sendCommand(Rocker4, ON)
		/*sendCommand(Rocker5, ON)
		sendCommand(Rocker6, ON)*/
	}
	else if (receivedCommand==OFF) {
		sendCommand(Rocker1, OFF)
		sendCommand(Rocker2, OFF)
		sendCommand(Rocker3, OFF)
		sendCommand(Rocker4, OFF)
/*		sendCommand(Rocker5, OFF)
		sendCommand(Rocker6, OFF)*/
	}
end

Do you have an suggestions what’s going wrong?

Greetings,
Patrick

Hi Patrick

I don’t use EnOcean switches like that, and I’m not really an expert on all aspects of them.

In your example, TestRockerN needs to have the channel specified, at least, I think.

Steve

Hi Steve,

thanks for your help.
I will try it as I’m back home by the end of the week.
Anyway I’m a bit frustrated how EnOcean is supported in openHAB, because I think it is a very interesting technology.
If I don’t get any further I will stop my little project to get EnOcean running with openHAB and remain with FHEM.

Do you have any suggestions for wireless actuators with flush installation? Which are supported by openHAB…

Thanks and greetings,
Patrick

I agree that EnOcean is extremely interesting technology. But they don’t seem to have got their marketing and licensing together, with the resultant weak support for OpenHAB.

The EnOcean binding is adequate for simple actuators (wall switches etc.). I’ve not used anything else.

I have used Peha Easyfit actuators with Gira System 55 frames (55mm), which you can get from ELV. In Switzerland, where I live, you can get exactly the same actuator under the name Omnio from AWAG that fits in EdizioDue frames (61mm). Both “look nice” in my opinion.

I’m currently trying to work out how to compensate for the relative weakness of the EnOcean signal (EnOcean : Swiss reinforced concrete 0:1). Fortunately, I think I’ve found a way using MQTT. More in due course.

Steve

Hello Steve,
I added the channels tho the “TestRockers”, but still my configuration doesn’t work.

Switch TestRocker1 "TestRocker1" (All,Lights) {enocean="{id=AA:BB:CC:02, eep=F6:02:01, channel=A}"}

Maybe I will try it again with a real EnOcean Switch like the one from Peha or Gira.
But currently I have lost my fun playing with openHab as I have a working solution with FHEM.

Thanks for your efforts to help me!

Greetings,
Patrick