Synchronous sendCommand

Hello together,
I have installed openHAB version: 2.4 and added two lamp via an homematic actor (2-channels).

Now I want to switch on both lamps (individual channels) at the same time.

Currently I´m doing:
rule “Switch1”
when
Item SKUECHE_1_PressShort changed to ON
then
SA_KUECHE_FENSTER_LAMPE_RECHTS_1_State.sendCommand(ON)
SA_KUECHE_FENSTER_LAMPE_LINKS_2_State.sendCommand(ON)

end

But here the lamps go on one after each other. Is there a way to switch on the lights at the same time.

Looks currently a little bit funny if the lamps going on with a delay of 1 second.

Greets
XarraX

Hi,

maybe you try to merge the affected lights into a group (of type switch) and then send the ON command to this group instead of each individual light – I usually do it this way I’m fine with that :slight_smile:

Cheers,
Marianne

1 Like

Hi,

I tried it like this: gKitchenSwitch.allMembers.forEach [ item | item.sendCommand(ON) ]

But still 1st light switching on, than short break, then 2nd light switching on…

Do you have another idea?

Greets

gKitchenSwitch.sendCommand(ON)
is another approach. But behind the scenes it’s still doing one at a time.

I don’t know Homematic, how many things can that do at once?

Hi,
if you pair the light switch directly with the actor, then it works parallel…

Greets