Openhab homematic question

hey, i have a homematic switch actor running to control my roomlight and its actually working. now i boght a 6 channel wireless button from homematic and now i am looking for an example how to configure that one of this 6 buttons can be used to switch my homematic actor to controll my roomlight too.
the binding of ithe item is already done and working, i can track the actions on the events.log.

i think i have to create a rule but i cant find a good example.

i need an example for everything i need to get this running.

2 channel actor homematic
6 channel wireless button homematic

Hi Sven,
there are many sample rules available:

I’m also using the homematic components. Yes, you need rules to use the 6 channel device.

E.g. something like this:

rule "Press button"
Item [your_button_item] received update ON
sendCommand([your_light_item], ON)

This is just an easy example. You can do whatever you want with short and long press.
I implemented some toggle keys. If ON switch OFF and the other way round.
There is no limitation.

oh this is interessting with the toggle keys, can you give me your configuration here?

Find below an example for toggle key including light off after 15 minutes:

import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*

var Timer onTimerCeiling = null

rule "Light Ceiling timer On"
Item Button_UG_Frank_Door_RO_PS received update ON or
Item Button_UG_Frank_Desk_RO_PS received update ON
if (onTimerCeiling!=null) onTimerCeiling.cancel()
if (Light_UG_Frank_Ceiling.state==OFF) {
sendCommand(Light_UG_Frank_Ceiling, ON)
onTimerCeiling = createTimer(now.plusMinutes(15)) [|
sendCommand(Light_UG_Frank_Ceiling, OFF)
} else if (Light_UG_Frank_Ceiling.state==ON) {
if (onTimerCeiling!=null) onTimerCeiling.cancel()
sendCommand(Light_UG_Frank_Ceiling, OFF)