Skip to content

EnOcean Binding ​

The EnOcean binding connects openHAB to the EnOcean ecosystem.

The binding uses an EnOcean gateway to retrieve sensor data and control actuators. For bidirectional actuators it is even possible to update the openHAB item state if the actuator gets modified outside of openHAB. This binding has been developed on an USB300 gateway and was also tested with an EnOceanPi. As this binding implements a full EnOcean stack, we have full control over these gateways. This binding can enable the repeater function (level 1 or 2) of these gateways and retrieve detailed information about them.

Concepts/Configuration ​

First of all you have to configure an EnOcean transceiver (gateway). A directly connected USB300 can be auto discovered, an EnOceanPi has to be added manually to openHAB. Both gateways are represented by an EnOcean gateway in openHAB. If you want to place the gateway for better reception apart from your openHAB server, you can forward its serial messages over TCP/IP (ser2net). In this case you have to define the path to the gateway like this rfc2217://x.x.x.x:3001. When using ser2net make sure to use telnet instead of raw in the set2net config file. If everything is running fine you should see the base id of your gateway in the properties of your bridge.

Another way to improve sending and reception reliability is to setup a wired connection. In this case you directly connect to your RS485 EnOcean bus (use USB connection of an Eltako FAM14 e.g.). However communication on RS485 bus is mostly done with an older ESP2 protocol which does not support advanced telegrams like VLD. Furthermore you have to be aware that not all radio telegrams are published on the bus.

The vast majority of EnOcean messages are sent as broadcast messages without an explicit receiver address. However each EnOcean device is identified by an unique id, called EnOceanId, which is used as the sender address in these messages. To receive messages from an EnOcean device you have to determine its EnOceanId and add an appropriate thing to openHAB.

If the device is an actuator which you want to control with your gateway from openHAB, you also have to create an unique sender id and announce it to the actuator (teach-in). For security reasons you cannot choose a random id, instead each gateway has 127 unique ids build in, from which you can choose. A SenderId of your gateway is made up its base id and a number between 1 and 127. This number can be chosen manually or the next free/unused number can be determined by the binding.

Supported Things ​

This binding is developed on and tested with the following devices

  • USB300 and EnOceanPi gateways
  • The following Eltako actuators:
    • FSR14 (light switch)
    • FSB14, FJ62 (rollershutter)
    • FUD14 (dimmer)
    • FSSA-230V (smart plug)
    • FWZ12-65A (energy meter)
    • FTKE (window / door contact)
    • FPE-1 & FPE-2 (window / door contact)
    • TF-FGB (window handle)
    • TF-FKB (window contact)
    • TF-AHDSB (outdoor brightness sensor)
    • FAFT60 (outdoor temperature & humidity sensor)
    • FLGTF55 (air quality & temperature & humidity sensor)
  • The following Opus actuators:
    • GN-A-R12V-SR-4 (light)
    • GN-A-R12V-MF-2 (light)
    • GN-A-R12V-LZ/UD (dimmer)
    • GN-A-R12V-JRG-2 (rollershutter)
    • GN-A-U230V-JRG (rollershutter)
    • OPUS-FUNK PLUS Jalousieaktor 1fach UP (rollershutter)
    • OPUS-Funk PLUS Steckdosenleiste (smart multiple socket)
  • NodOn:
    • Smart Plug (ASP-2-1-10)
    • In Wall Switch (SIN-2-2-00, SIN-2-1-0x)
    • In Wall Rollershutter (SIN-2-RS-01)
    • Temperature & humidity sensor (STPH-2-1-05)
  • Permundo
    • PSC234 (smart plug with metering) = Afriso APR234
    • PSC132 (smart switch actor with metering)
    • PSC152 (smart blinds control)
  • Thermokon SR04 room control
  • Hoppe SecuSignal window handles
  • Rocker switches (NodOn, Eltako FT55 etc)
  • Siegenia Senso Secure window sensors
  • Soda window handles
  • Nexelec INSAFE+ Carbon

However, because of the standardized EnOcean protocol it is more important which EEP this binding supports. Hence if your device supports one of the following EEPs the chances are good that your device is also supported by this binding.

Thing typeEEP familyEEP TypesChannels¹Devices²Pairing
bridge--repeaterMode, setBaseIdUSB300, EnOceanPi-
pushButtonF6-01/D2-030x01/0x0ApushButton, doublePress, longPress, batteryLevelNodOn soft buttonManually/Discovery
rockerSwitchF6-020x01-02rockerswitchA, rockerswitchB, rockerSwitchActionEltako FT55Discovery
mechanicalHandleF6-10/D2-060x00-01/0x01windowHandleState, contact and a lot more for soda handles³Hoppe SecuSignal handles, Eltako TF-FGB, Soda handlesDiscovery
contactD5-000x01contactEltako FTK(E) & TF-FKBDiscovery
temperatureSensorA5-020x01-30temperatureThermokon SR65Discovery
temperatureHumiditySensorA5-040x01-03humidity, temperatureEltako FTSBDiscovery
gasSensorA5-090x02,04,05, 08,09,0C,0Dco, co2, totalVolatileOrganicCompounds, volatileOrganicCompounds, volatileOrganicCompoundsId, humidity, temperatureNexelec, Eltako FLGTF55Discovery
occupancySensorA5-070x01-03illumination, batteryVoltage, motionDetectionNodON PIR-2-1-01Discovery
lightTemperatureOccupancySensorA5-080x01-03illumination, temperature, occupancy, motionDetectionEltako FABHDiscovery
lightSensorA5-060x01illuminationEltako TF-AHDSBDiscovery
roomOperatingPanelA5-100x01-23temperature, setPoint, fanSpeedStage, occupancy, dayNightModeState, conntact, humidity, illumination, batteryLevel, batteryLowThermokon SR04Discovery
automatedMeterSensorA5-120x00-03counter, currentNumber, instantpower, totalusage, amrLitre, amrCubicMetreFWZ12Discovery
environmentalSensorA5-130x01-02temperature, windspeed, illumination, rainStatusFWS61Discovery
centralCommandA5-380x08dimmer, generalSwitchEltako FUD14, FSR14Teach-in
rollershutterA5-3F/D2-05/A5-380x7F/00/08rollershutterEltako FSB14 / FJ62, NodOn SIN-2-RS-01Teach-in/Discovery
measurementSwitchD2-010x00-0F,11,12generalSwitch(/A/B), dimmer, pilotWire, instantpower, totalusage, repeaterModeNodOn In Wall SwitchDiscovery
windowSashHandleSensorD2-060x50windowHandleState, windowSashState, batteryLevel, batteryLow, windowBreachEvent, windowCalibrationState, windowCalibrationStepSiegenia Senso SecureDiscovery
multiFunctionSmokeDetectorD2-14/F6-050x30/02smokeDetection, batteryLowInsafe+, Afriso ASDDiscovery
heatRecoveryVentilationD2-500x00,01,10,11a lot of different state channelsDimplex DL WE2Discovery
classicDeviceF6-020x01-02virtualRockerswitchA, virtualRockerswitchB-Teach-in
datagramInjectorD5-00-01/A5-07-010x01/01switchFTK-like contact and motion use casesManually

¹ Not all channels are supported by all devices, it depends which specific EEP type is used by the device, all thing types additionally support rssi, repeatCount and lastReceived channels

² These are just examples of supported devices

³ Note that the soda handles potentially contain a wide range of different sensors and buttons. However the amount of built-in sensors and buttons may vary between different models. In case your particular device does not contain one of the potentially supported features the corresponding channel will never trigger an update. Please see the manual of your particular model to check which channels should be supported before opening an issue.

Furthermore following supporting EEP family is available too: A5-11, types 0x03 (rollershutter position status), 0x04 (extended light status) and D0-06 (battery level indication).

A rockerSwitch is used to receive messages from a physical EnOcean Rocker Switch. Channel rockerswitchA and rockerswitchB just react if corresponding rocker switch channel is pressed as single action. These channels do not emit an event if ChannelA and ChannelB are pressed simultaneously. To handle simultaneously pressed channels you have to use the rockerSwitchAction channel. A classicDevice is used for older EnOcean devices which react only on rocker switch messages (like Opus GN-A-R12V-SR-4). As these devices do not send their current status, you have to add additional listener channels for each physical Rocker Switch to your thing. In this way you can still sync your item status with the physical status of your device whenever it gets modified by a physical rocker switch. The classic device simulates a physical Rocker Switch. Per default the classic device uses the channel A of the simulated rocker switch. If you want to use channel B you have to use virtualRockerswitchB in conjunction with rules to send commands.

Pairing ​

Most of the EnOcean devices can be automatically created and configured as an openHAB thing through the discovery service. The EnOcean protocol defines a so called "teach-in" process to announce the abilities and services of an EnOcean device and pair devices. To pair an EnOcean device with its openHAB thing representation, you have to differentiate between sensors and actuators.

Sensors ​

To pair a sensor with its thing, you first have to start the discovery scan for this binding. Then press the "teach-in" button of the sensor. The sensor sends a teach-in message which contains the information about the EEP and the EnOceanId of the sensor. If the EEP is known by this binding the thing representation of the device is created. The corresponding channels are created dynamically, too.

Actuators ​

If the actuator supports UTE teach-in, the corresponding thing can be created and paired automatically. First you have to start the discovery scan for a gateway. Then press the teach-in button of the actuator. If the EEP of the actuator is known, the binding sends an UTE teach-in response with a new SenderId and creates a new thing with its channels.

This binding supports so called smart acknowlegde (SMACK) devices too. Before you can pair a SMACK device you have to configure your gateway bridge as a SMACK postmaster. If this option is enabled you can pair up to 20 SMACK devices with your gateway.

Communication between your gateway and a SMACK device is handled through mailboxes. A mailbox is created for each paired SMACK device and deleted after teach out. You can see the paired SMACK devices and their mailbox index in the gateway properties. SMACK devices send periodically status updates followed by a response request. Whenever such a request is received a requestAnswer event is triggered for channel statusRequestEvent. Afterwards you have 100ms time to recalculate your items states and update them. A message with the updated item states is built, put into the corresponding mailbox and automatically sent upon request of the device. Pairing and unpairing can be done through a discovery scan. The corresponding thing of an unpaired device gets disabled, you have to delete it manually if you want to.

If the actuator does not support UTE teach-ins, you have to create, configure and choose the right EEP of the thing manually. It is important to link the teach-in channel of this thing to a switch item. Afterwards you have to activate the pairing mode of the actuator. Then switch on the teach-in item to send a teach-in message to the actuator. If the pairing was successful, you can control the actuator and unlink the teach-in channel now. The content of this teach-in message is device specific and can be configured through the teach-in channel.

To pair a classicDevice with an EnOcean device, you first have to activate the pairing mode of the actuator. Then switch the virtualRockerSwitchA On/Off.

Each EnOcean gateway supports 127 unique SenderIds. The SenderId of a thing can be set manually or determined automatically by the binding. In case of an UTE teach-in the next unused SenderId is taken automatically. To set this SenderId to a specific one, you have to use the nextSenderId parameter of your gateway. For actuator things you can also set a full senderId (8 hex chars) directly. This option is available as advanced parameter and is only applicable when the bridge parameter rs485=true (Eltako RS485 bus).

Thing Configuration ​

The pairing process of an openHAB thing and an EnOcean device has to be triggered within the UI. Therefore if you do not want to use the UI, a mixed mode configuration approach has to be done. To determine the EEP and EnOceanId of the device and announce a SenderId to it, you first have to pair an openHAB thing with the EnOcean device. Afterwards you can delete this thing and manage it with its necessary parameters through a configuration file. If you change the SenderId of your thing, you have to pair again the thing with your device.

For actuator thing types (centralCommand, classicDevice, genericThing, measurementSwitch, rollershutter, thermostat, heatRecoveryVentilation) the optional senderId parameter is marked as advanced and only used when the bridge is configured with rs485=true. Otherwise senderIdOffset is used and direct senderId values are rejected during validation.

Thing typeParameterMeaningPossible Values
bridgepathPath to the EnOcean GatewayCOM3, /dev/ttyAMA0, rfc2217://x.x.x.x:3001
nextSenderIdSet SenderId of next created thing. If omitted, the next unused SenderId is taken1-127
espVersionESP Version of gatewayESP3, ESP2
rs485If gateway is directly connected to a RS485 bus the BaseId is set to 0x00true, false
rs485BaseIdOverride BaseId 0x00 if your bus contains a telegram duplicator (FTD14 for ex)4 byte hex value
enableSmackEnables SMACK pairing and handling of SMACK messagestrue, false
sendTeachOutsDefines if a repeated teach in request should be answered with a learned in or teach out responsetrue, false
pushButtonreceivingEEPIdEEP used for receiving msgF6_01_01, D2_03_0A
enoceanIdEnOceanId of device this thing belongs tohex value as string
rockerSwitchreceivingEEPIdF6_02_01, F6_02_02
enoceanId
mechanicalHandlereceivingEEPIdF6_10_00, F6_10_01, A5_14_09, D2_06_01
enoceanId
receivingSIGEEP
contactreceivingEEPIdD5_00_01, A5_14_01_ELTAKO
enoceanId
receivingSIGEEPAdds a batteryLevel channel to thing and let thing interpret SIG messagestrue, false
temperatureSensorreceivingEEPIdA5_02_01-0B, A5_02_10-1B, A5_02_20, A5_02_30
enoceanId
receivingSIGEEP
temperatureHumiditySensorreceivingEEPIdA5_04_01-03
enoceanId
receivingSIGEEP
gasSensorreceivingEEPIdA5_09_02, A5_09_04, A5_09_05, A5_09_08, A5_09_09, A5_09_0C, A5_09_0D
enoceanId
receivingSIGEEP
occupancySensorreceivingEEPIdA5_07_01-03
enoceanId
receivingSIGEEP
lightTemperatureOccupancySensorreceivingEEPIdA5_08_01-03, A5_08_01_FXBH
enoceanId
receivingSIGEEP
lightSensorreceivingEEPIdA5_06_01, A5_06_01_ELTAKO
enoceanId
receivingSIGEEP
roomOperatingPanelreceivingEEPIdA5_10_01-0D, A5_10_10-1F, A5_10_20-23
enoceanId
automatedMeterSensorreceivingEEPIdA5_12_00-03
enoceanId
environmentalSensorreceivingEEPIdA5_13_01
enoceanId
centralCommandsenderIdOffsetSenderId used for sending msg. If omitted, nextSenderId of bridge is used1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
enoceanId
sendingEEPIdEEP used for sending msgA5_38_08_01, A5_38_08_02
broadcastMessagesSend broadcast or addressed msgtrue, false
receivingEEPIdF6_00_00, A5_38_08_02, A5_11_04
suppressRepeatingSuppress repeating of msgtrue, false
rollershuttersenderIdOffset1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
enoceanId
sendingEEPIdA5_3F_7F_EltakoFSB, A5_3F_7F_EltakoFRM, A5_38_08_07, D2_05_00_NODON
broadcastMessagestrue, false
receivingEEPId¹A5_3F_7F_EltakoFSB, A5_3F_7F_EltakoFRM, F6_00_00_EltakoFJ62, A5_11_03, D2_05_00_NODON
suppressRepeatingtrue, false
pollingIntervalRefresh interval in secondsInteger
measurementSwitchsenderIdOffset1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
enoceanId
sendingEEPIdD2_01_00-0F, D2_01_11, D2_01_12, D2_01_09_PERMUNDO, D2_01_0F_NODON, D2_01_12_NODON
receivingEEPId¹D2_01_00-0F, D2_01_11, D2_01_12, D2_01_09_PERMUNDO, D2_01_0F_NODON, D2_01_12_NODON, A5_12_01
broadcastMessagestrue, false
pollingIntervalInteger
suppressRepeatingtrue, false
windowSashHandleSensorreceivingEEPIdD2_06_50
enoceanId
multiFunctionSmokeDetectorreceivingEEPIdF6_05_02, D2_14_30
enoceanId
heatRecoveryVentilationsenderIdOffset1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
enoceanId
sendingEEPIdD2_50_00, D2_50_01, D2_50_10, D2_50_11
receivingEEPIdD2_50_00, D2_50_01, D2_50_10, D2_50_11
broadcastMessagestrue, false
suppressRepeatingtrue, false
classicDevicesenderIdOffset1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
sendingEEPIdF6_02_01, F6_02_02
broadcastMessagestrue, false
receivingEEPIdF6_02_01, F6_02_02
suppressRepeatingtrue, false
datagramInjectorsenderIdVirtual sender address used by injector telegrams (RS485 only)8 hex chars
sendingProfileIdProfile used for command encodingFTK_D5_00_01, MOTION_A5_07_01
suppressRepeatingSuppress repeating of msgtrue, false

¹ multiple values possible, EEPs have to be of different EEP families. If you want to receive messages of your EnOcean devices you have to set the enoceanId to the EnOceanId of your device.

In some cases you can have more than one receivingEEPId. For example, an Eltako FTKB typically has the receivingEEPId D5_00_01. However, this means that the additional data available for the energy storage and the battery voltage is not accessible. By adding an additional receivingEEPId A5_14_01_ELTAKO (for example, configuring receivingEEPId as D5_00_01, A5_14_01_ELTAKO), the corresponding channels for the energy storage and the battery voltage will be created.

Channels ​

The channels of a thing are determined automatically based on the chosen EEP.

ChannelItemDescription
repeaterModeStringSet repeater level to 1, 2 or disable
setBaseIdStringChanges the BaseId of your gateway. This can only be done 10 times! So use it with care.
pushButtonTriggerChannel type system:rawbutton, emits PRESSED and RELEASED events
pushButton2TriggerChannel type system:rawbutton, emits PRESSED and RELEASED events
doublePressTriggerChannel type system:rawbutton, emits PRESSED
longPressTriggerChannel type system:rawbutton, emits PRESSED and RELEASED events
rockerswitchA/BTriggerChannel type system:rawrocker, emits DIR1_PRESSED, DIR1_RELEASED, DIR2_PRESSED, DIR2_RELEASED events
rockerSwitchActionTriggerEmits combined rocker switch actions for channel A and B and RELEASED events
windowHandleStateStringTextual representation of handle position (UP, DOWN, LEFT, RIGHT for the D2_06_01 EEP and OPEN, CLOSED, TILTED for all others)
windowSashStateStringTextual representation of sash position (TILTED or NOT TILTED for the D2_06_01 EEP and OPEN, CLOSED, TILTED for all others)
windowCalibrationStateStringTextual representation of the calibration state (OK, ERROR, INVALID)
windowCalibrationStepStringTextual representation of the next step that must be performed for calibrating the device (e.g. NONE, SASH CLOSED HANDLE CLOSED, SASH CLOSED HANDLE OPEN, SASH OPEN HANDLE TILTED, and so on)
contactContactState OPEN/CLOSED (tilted handle => OPEN)
temperatureNumber:TemperatureTemperature in degree Celsius
humidityNumberRelative humidity level in percentages
coNumber:DimensionlessCarbonmonoxide level in ppm
co2Number:DimensionlessCarbondioxide level in ppm
totalVolatileOrganicCompoundsNumber:DimensionlessTotal volatile organic compounds in ppb
volatileOrganicCompoundsNumber:DimensionlessVOC level
volatileOrganicCompoundsIdStringVOC Identification
illuminationNumber:IlluminanceIllumination in lux
illuminationWestNumber:IlluminanceIllumination in lux
illuminationSouthNorthNumber:IlluminanceIllumination in lux
illuminationEastNumber:IlluminanceIllumination in lux
rainStatusSwitchRain indicator
windspeedNumber:Speedwindspeed in m/s
occupancySwitchOccupancy button pressed (ON) or released (OFF)
motionDetectionSwitchOn=Motion detected, Off=not
setPointNumberlinear set point
fanSpeedStageNumberFan speed: -1 (Auto), 0, 1, 2, 3, 4, 5, 6
dimmerDimmerDimmer value in percent
generalSwitch(/A/B)SwitchSwitch something (channel A/B) ON/OFF
rollershutterRollershutterShut time (shutTime) in seconds can be configured
angleNumber:AngleThe angle for blinds
pilotWireNumberDevice mode: 1 - Off, 2 - Comfort, 3 - Eco, 4 - Anti-freeze, 5 - Comfort1, 6 - Comfort2
instantpowerNumber:PowerInstant power consumption in Watts
totalusageNumber:EnergyUsed energy in Kilowatt hours
teachInCMDSwitchSends a teach-in msg, content can configured with parameter teachInMSG
virtualSwitchASwitchUsed to convert switch item commands into rocker switch messages (channel A used). Time in ms between sending a pressed and release message can be defined with channel parameter duration. The switch mode (rocker switch: use DIR1 and DIR2, toggle: use just one DIR) can be set with channel parameter switchMode (rockerSwitch, toggleButtonDir1, toggleButtonDir2)
virtualRollershutterARollershutterUsed to convert rollershutter item commands into rocker switch messages (channel A used)
rockerswitchListenerSwitchSwitchUsed to convert rocker switch messages into switch item state updates
rockerswitchListenerRollershutterRollershutterUsed to convert rocker switch messages into rollershutter item state updates
virtualRockerswitchBStringUsed to send plain rocker switch messages (channel B used)
batteryVoltageNumber:ElectricPotentialBattery voltage for things with battery
energyStorageNumber:ElectricPotentialEnergy storage, don't know what this means...
batterLevelNumberBattery level in percent
batterLowSwitchBattery low indicator
smokeDetectionSwitchSmoke detected
sensorFaultSwitchSmoke sensor fault
timeSinceLastMaintenanceNumber:TimeTime since last maintenance
remainingPLTNumber:TimeRemaining product life time
hygroComfortIndexStringHygrothermal Comfort Index
indoorAirAnalysisStringIndoor Air Analysis
ventilationOperationModeStringDirect Operation Mode Control
fireplaceSafetyModeSwitchFireplace Safety Mode
heatExchangerBypassStatusContactHeat Exchanger Bypass Status
supplyAirFlapStatusContactSupply Air Flap Position
exhaustAirFlapStatusContactExhaust Air Flap Position
defrostModeSwitchDefrost Mode
coolingProtectionModeSwitchCooling Protection Mode
outdoorAirHeaterStatusSwitchOutdoor Air Heater Status
supplyAirHeaterStatusSwitchSupply Air Heater Status
drainHeaterStatusSwitchDrain Heater Status
timerOperationModeSwitchTimer Operation Mode
weeklyTimerProgramStatusSwitchWeekly Timer Program Status
roomTemperatureControlStatusSwitchRoom Temperature Control Status
airQualityValue1Number:DimensionlessAir Quality Value in percent
airQualityValue2Number:DimensionlessAir Quality Value in percent
outdoorAirTemperatureNumber:TemperatureOutdoor Temperature
supplyAirTemperatureNumber:TemperatureSupply Air Temperature
indoorAirTemperatureNumber:TemperatureIndoor Temperature
exhaustAirTemperatureNumber:TemperatureExhaust Air Temperature
supplyAirFanAirFlowRateNumber:VolumetricFlowRateSupply Air Fan Air Flow Rate
exhaustAirFanAirFlowRateNumber:VolumetricFlowRateExhaust Air Fan Air Flow Rate
supplyFanSpeedNumber:DimensionlessSupply Fan Speed in rpm
exhaustFanSpeedNumber:DimensionlessExhaust Fan Speed
rssiNumberReceived Signal Strength Indication (dBm) of last received message
repeatCountNumberNumber of repeaters involved in the transmission of the telegram
lastReceivedDateTimeDate and time the last telegram was received
statusRequestEventTriggerEmits event 'requestAnswer'
windowBreachEventTriggerEmits event 'ALARM'
protectionPlusEventTriggerEmits event 'ALARM'
vacationModeToggleEventTriggerEmits events 'ACTIVATED', 'DEACTIVATED'
dayNightModeStateNumber0 = Night mode on, 1 = day mode on

Items linked to bi-directional actuators (actuator sends status messages back) should always disable the autoupdate. This is especially true for Eltako rollershutter, as their position is calculated out of the current position and the moving time.

Channel Configuration ​

Some channels can be configured with parameters.

Channel typeParameterMeaningPossible values
rollershuttershutTimeTime (in seconds) to completely close the rollershutter
dimmerrampingTimeDuration of dimmingA5-38-08: Ramping Time (in seconds), 0 = default ramping, 1..255 = seconds to 100%; D2-01-01: 0 = switch, 1-3 = timer 1-3, 4 = stop
eltakoDimmerFlag for Eltako dimmers, because Eltako does interpret this EEP differentlyTrue for Eltako dimmer, false otherwise. Defaults to true for compatibility purpose.
storeValueStore final value. For Eltako devices, block dimming value.True or false. Defaults to false.
teachInCMDmanufacturerIdId is used for 4BS teach in with EEPHEX
teachInMSGUse this message if teach in type and/or manufacturer id are unknownHEX
totalusagevalidateValueFilter out increases more than 10.0 kWh and decreases less than 1.0 kWhtrue / false
tariffTariff info or measurement channel to listen to0-15
contactinvertedSwap OPEN / CLOSED. Set True for Eltako FPE-2.true / false. Defaults to false.

Possible declaration in Thing DSL:

dsl
Thing centralCommand 11223344 "Light" @ "Living room" [ enoceanId="11223344", senderIdOffset=15, sendingEEPId="A5_38_08_02", receivingEEPId="A5_38_08_02" ] {
    Channels:
        Type teachInCMD : teachInCMD [ teachInMSG="E0400D80" ]
        Type dimmer : dimmer [ rampingTime=0 ]
}

Rules and Profiles ​

The rockerSwitch things use system:rawrocker channel types. So they trigger _DIR1[/2]__PRESSED and _DIR1[/2]__RELEASED events. These channels can be directly linked to simple items like Switch, Dimmer or Player with the help of profiles. If you want to do more advanced stuff, you have to implement rules which react to these events

rules
rule "Advanced rocker rule"
when
    Channel 'enocean:rockerSwitch:gtwy:AABBCC00:rockerswitchA' triggered DIR1_PRESSED
then
    // do some advanced stuff
end

If you also want to react to simultaneously pressed channels you have to use the rockerSwitchAction channel. This channel emits events in the following form "DirectionChannelA|DirectionChannelB" (for example "Dir1|Dir2"). If a channel is not pressed a "-" is emitted. To bind this channel to an item you have to use the rockerswitchaction-toggle-switch or the rockerswitchaction-toggle-player profile. To define for which button press combination the linked item should toggle you have to set the configuration parameters channelAFilter and channelBFilter accordingly. The options for these parameters are "*" (any direction), "Dir1", "Dir2", "-" (corresponding channel not pressed at all). An example can be found below.

Example ​

dsl
Bridge enocean:bridge:gtwy "EnOcean Gateway" [ path="/dev/ttyAMA0" ] {
   Thing rockerSwitch rs01 "Rocker" @ "Kitchen" [ enoceanId="aabbcc01", receivingEEPId="F6_02_01" ]
   Thing mechanicalHandle mh01 "Door handle" @ "Living room" [ enoceanId="aabbcc02", receivingEEPId="F6_10_00" ]
   Thing roomOperatingPanel p01 "Panel" @ "Floor" [ enoceanId="aabbcc03", receivingEEPId="A5_10_06" ]
   Thing centralCommand cc01 "Light" @ "Kitchen" [ enoceanId="aabbcc04", senderIdOffset=1, sendingEEPId="A5_38_08_01", receivingEEPId="F6_00_00", broadcastMessages=true, suppressRepeating=false ]
   Thing centralCommand cc02 "Dimmer" @ "Living room" [ enoceanId="aabbcc05", senderIdOffset=2, sendingEEPId="A5_38_08_02", receivingEEPId="A5_38_08_02", broadcastMessages=true, suppressRepeating=false ]
   Thing rollershutter r01 "Rollershutter" @ "Kitchen" [ enoceanId="aabbcc06", senderIdOffset=3, sendingEEPId="A5_3F_7F_EltakoFSB", receivingEEPId="A5_3F_7F_EltakoFSB", broadcastMessages=true, suppressRepeating=false ] {Channels: Type rollershutter:rollershutter [shutTime=25]}
   Thing measurementSwitch ms01 "TV Smart Plug" @ "Living room" [ enoceanId="aabbcc07", senderIdOffset=4, sendingEEPId="D2_01_09", broadcastMessages=false, receivingEEPId="D2_01_09","A5_12_01", suppressRepeating=false, pollingInterval=300]
   Thing classicDevice cd01 "Garage_Light" @ "Garage" [
        senderIdOffset=5,
        sendingEEPId="F6_02_01",
        broadcastMessages=true,
        receivingEEPId="F6_02_01",
        suppressRepeating=false
   ] {
        Type virtualSwitchA             : virtualSwitchA              [duration=300, switchMode="rockerSwitch"]
        Type rockerswitchListenerSwitch : Listener1 "Schalter links"  [enoceanId="aabbcc08", channel="channelA", switchMode="toggleButtonDir1"]
        Type rockerswitchListenerSwitch : Listener2 "Schalter rechts" [enoceanId="aabbcc09", channel="channelB", switchMode="toggleButtonDir2"]
   }
}
dsl
Player Kitchen_Sonos "Sonos" (Kitchen) {channel="sonos:PLAY1:ID:control", channel="enocean:rockerSwitch:gtwy:rs01:rockerswitchA" [profile="system:rawrocker-to-play-pause"]}
Switch Light_Switch { channel="enocean:rockerSwitch:gtwy:rs01:rockerSwitchAction" [profile="enocean:rockerswitchaction-toggle-switch", channelAFilter="DIR1", channelBFilter="DIR1"]}
Dimmer Kitchen_Hue "Hue" <light> {channel="enocean:rockerSwitch:gtwy:rs01:rockerswitchB" [profile="system:rawrocker-to-dimmer"], channel="hue:0220:0017884f6626:9:brightness"}
Rollershutter Kitchen_Rollershutter "Roller shutter" <blinds> (Kitchen) {channel="enocean:rollershutter:gtwy:r01:rollershutter", autoupdate="false"}
Switch Garage_Light "Switch" {
        channel="enocean:classicDevice:gtwy:cd01:virtualRockerswitchA",
        channel="enocean:classicDevice:gtwy:cd01:Listener1",
        channel="enocean:classicDevice:gtwy:cd01:Listener2"
}

Datagram Injector ​

The datagramInjector thing is a send-only profile based injector for EnOcean telegrams. It can only be used when RS485 mode is enabled on the bridge. It supports the following profiles: FTK_D5_00_01, MOTION_A5_07_01.

For profile FTK_D5_00_01 the channel command is converted as follows (only ON/OFF are supported):

  • ON -> telegram payload 0x09
  • OFF -> telegram payload 0x08

For profile MOTION_A5_07_01 the channel command is converted as follows:

  • ON -> sends motion detected telegram (retriggers periodically while ON)
  • OFF -> stops periodic retrigger, no telegram sent

Example Thing DSL definition:

dsl
Bridge enocean:bridge:gtwy "EnOcean Gateway" [ path="/dev/ttyAMA0" ] {
  Thing datagramInjector ftkTx "FTK TX" [
    sendingProfileId="FTK_D5_00_01",
    senderId="00AABBCC",
    suppressRepeating=false
  ]
}

Example Item linking:

dsl
Switch Window_Contact_TX "Window Contact TX" { channel="enocean:datagramInjector:gtwy:ftkTx:switch" }

Generic Things ​

If an EnOcean device uses an unsupported EEP or A5-3F-7F, you have to create a genericThing. Generic things support all channels like switch, number, string etc as generic channels. However you have to specify how to convert the EnOcean messages of the device into openHAB state updates and how to convert the openHAB commands into EnOcean messages. These conversion functions can be defined with the help of transformation functions like MAP.

Thing typeParameterMeaningPossible Values
genericThingsenderIdOffset1-127
senderIdFull 32-bit Sender Base Id in hex format (advanced, only used when bridge rs485=true)hex string (8 digits, e.g. FF00AA01)
enoceanIdEnOceanId of device this thing belongs tohex value as string
sendingEEPIdEEP used for sending msgF6_FF_FF, A5_FF_FF, D2_FF_FF
receivingEEPIdEEP used for receiving msgF6_FF_FF, A5_FF_FF, D2_FF_FF
broadcastMessagestrue, false
suppressRepeatingtrue, false

Supported channels: genericSwitch, genericRollershutter, genericDimmer, genericNumber, genericString, genericColor, genericTeachInCMD. You have to define the transformationType (e.g. MAP) and transformationFunction (e.g. for MAP: file name of mapping file) for each of these channels.

For an inbound transformation (EnOcean message => openHAB state) you receive the channel id and the EnOcean data in hex separated by a pipe. Your transformation function has to return the openHAB State type and value separated by a pipe. If you want to use a mapping transformation, your mapping file has to look like this for a genericThing using EEP F6_FF_FF:

text
ChannelId|EnoceanData(Hex)=openHABState|Value
genericSwitch|70=OnOffType|ON
genericSwitch|50=OnOffType|OFF
genericRollershutter|70=PercentType|0
genericRollershutter|50=PercentType|100

For an outbound transformation (openHAB command => EnOcean message) you receive the channel id and the command separated by a pipe. Your transformation function has to return the payload of the EnOcean message. You do not have to worry about CRC and header data. If you want to use a mapping transformation, your mapping file has to look like this for a genericThing using EEP A5_FF_FF:

text
ChannelId|openHABCommand=EnoceanData(Hex)
genericSwitch|ON=01000009
genericSwitch|OFF=01000008

FSB14 Advanced Blind Control ​

The Eltako FSB14 supports advanced blind control with independent positioning of height and slat angle when using configMode="blinds". For detailed information see the community discussion.

Configuration Example ​

dsl
Thing enocean:rollershutter:gateway:fsb14 [ 
    enoceanId="000000EC", 
    senderIdOffset=108, 
    sendingEEPId="A5_3F_7F_EltakoFSB", 
    receivingEEPId="F6_00_00,A5_3F_7F_EltakoFSB" 
] {
    Channels:
        Type rollershutter:rollershutter [shutTime=65, swapTime=14, configMode="blinds"]
}

Available Channels ​

When configMode="blinds" is set, three channels are available:

ChannelTypeDescription
rollershutterRollershutterHeight control (0-100%), requires autoupdate="false"
dimmerDimmerSlat angle control (0-100%), requires autoupdate="false"
state-machineStringCurrent state (IDLE, MOVEMENT_*, POSITION_REACHED, INVALID)

Channel Configuration Parameters ​

ParameterTypeDescription
shutTimeintFull travel time in seconds (required)
swapTimeintSlat rotation time in 100ms units (e.g., 14 = 1.4s)
configModeStringSet to "blinds" or "rollershutter" for advanced control with state machine; omit or set to "legacy" for simple rollershutter control without state machine

Calibration ​

On first use, the state machine must be calibrated. Two methods are available:

  1. Automatic: Send an UP or DOWN command via openHAB to move the blind/rollershutter to an end position
  2. Manual: Physically operate the blind/rollershutter (e.g., via wall switch) until it reaches an end stop

In both cases, the state machine transitions from INVALID to IDLE state once calibration is complete. The calibration/state-machine state is persisted internally by the binding using StorageService (JSON in userdata) and restored automatically after restart. No linked state-machine item or openHAB persistence configuration is required for this internal persistence. Only the states IDLE and INVALID are restored after a restart. Any other state, for example a movement that was running at shutdown, is replaced by INVALID and requires a new calibration.

Hardware Requirements ​

Important: The FSB14 must send its confirmation telegrams for state machine operation: the start of a movement, the stop with the driven time and the end position. The FAM14 polls these telegrams cyclically. Which actuators it polls and where it sends the telegrams depends on the position of its upper rotary switch:

  • Positions 2 to 4 poll all actuators found by the bus scan, positions 5 to 7 only the actuators of the device list (feedback list) created with the PCT14 tool. With positions 5 to 7 the FSB14 must be in that list.
  • Positions 2 and 5 send the telegrams into the Eltako wireless network, positions 3, 4, 6 and 7 only use the bus.
  • Positions 4 and 7 additionally poll the status telegrams of the actuators.

Use a position that sends into the wireless network (2 or 5) if the gateway is connected via radio, and a bus position (3, 4, 6 or 7, e.g. 7) if the gateway is connected to the bus (e.g. FGW14-USB). For FSB14 addresses > 126, a bus connection (FAM14/FGW14-USB) is required as feedback is not sent via radio.

Operation with Wall Switches ​

A wall switch acts directly on the FSB14 and is not seen by the binding. The binding follows such a movement through the feedback of the FSB14: it reports every start, every stop with the driven time and the reaching of an end position. The position channel is updated from the reported driven time, and the state machine is in the state MOVEMENT_MANUAL_UP or MOVEMENT_MANUAL_DOWN while the FSB14 is moving and no openHAB command is active. openHAB commands are ignored in this state, like in any other moving state.

The slats are not adjusted automatically after a movement started or interrupted with a wall switch. This also applies when a movement requested by openHAB is interrupted with a wall switch. A movement stopped with a STOP command from openHAB is still followed by the slat adjustment.

In mode blinds the binding calculates the effect of such a movement on the slats and updates the dimmer channel (angle) together with the position. When moving down the slats close first (angle 100) and only then the position changes, when moving up they open first (angle 0). The time for turning the slats from one end to the other is taken from swapTime. If the dimmer channel has no value, the angle is only set when the movement lasted longer than swapTime.

The FSB14 reports the end position only after the run time set at the device has elapsed. A movement started with a wall switch therefore stays in MOVEMENT_MANUAL_* until then, and for at most five minutes. After that time without feedback, the state machine is set to INVALID.

Missing Feedback ​

The state machine waits for the feedback of the FSB14 during every movement started by openHAB. The feedback reaches openHAB with a delay of up to one polling cycle of the FAM14 (about 6 seconds, longer with many actuators). If no feedback arrives within the configured shutTime (plus swapTime in mode blinds) plus 15 seconds, the binding logs a warning and sets the state machine to INVALID. The next UP or DOWN command then calibrates the state machine again. A slat adjustment in mode blinds is supervised separately, because it does not change the position and the gateway sometimes drops a telegram. If no feedback arrives within the swapTime plus 15 seconds, the binding sends the telegram once more. If there is still no feedback after another swapTime plus 15 seconds, the binding logs a warning and the state machine returns to IDLE without a new calibration. A position request that arrived during the slat adjustment is executed afterwards. If this warning appears, check that the FSB14 is in the feedback list of the FAM14 (if the FAM14 is operated with a device list) and that the FAM14 sends the telegrams to the network of the gateway, see Hardware Requirements.