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.
hardware:
2 channel actor homematic
6 channel wireless button homematic
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"
when
Item [your_button_item] received update ON
then
sendCommand([your_light_item], ON)
end
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.
rule "Light Ceiling timer On"
when
Item Button_UG_Frank_Door_RO_PS received update ON or
Item Button_UG_Frank_Desk_RO_PS received update ON
then
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)
}
end