Send same command to one group except one

Hello,
I Have a rule with these 2 lines :

    gVoletsJour.sendCommand(DOWN)
    Cuisine_Volet.sendCommand(80)

Cuisine_Volet is in gVoletsJour group.
But in the events log, the commands doesn’t fire in the good order (item recevie 80 but immediately “DOWN” which is send by the group command :

2019-11-18 20:00:00.001 [ome.event.ItemCommandEvent] - Item 'gVoletsJour' received command DOWN
2019-11-18 20:00:00.002 [ome.event.ItemCommandEvent] - Item 'Terrasse_Volet' received command DOWN
2019-11-18 20:00:00.004 [ome.event.ItemCommandEvent] - Item 'Cuisine_Volet' received command 80
2019-11-18 20:00:00.007 [ome.event.ItemCommandEvent] - Item 'Cuisine_Volet' received command DOWN
2019-11-18 20:00:00.008 [ome.event.ItemCommandEvent] - Item 'Salon_Volet' received command DOWN
2019-11-18 20:00:00.013 [ome.event.ItemCommandEvent] - Item 'VoletBureauRollerControl' received command DOWN
2019-11-18 20:00:00.015 [nt.ItemStatePredictedEvent] - Terrasse_Volet predicted to become DOWN
2019-11-18 20:00:00.016 [nt.ItemStatePredictedEvent] - Cuisine_Volet predicted to become 80
2019-11-18 20:00:00.017 [nt.ItemStatePredictedEvent] - Cuisine_Volet predicted to become DOWN
2019-11-18 20:00:00.018 [nt.ItemStatePredictedEvent] - Salon_Volet predicted to become DOWN

So which is the best way to solve this problem. I want to let this item in group because I need it in anothers rules.

Then you can’t send the command to the Group. You need to send it to each Item in the Group except for that one individually. See Design Pattern: Working with Groups in Rules for how to best do this.

1 Like

Will the end device do what you want if you wait a bit?

gVoletsJour.sendCommand(DOWN)
createTimer(now.plusMillis(100), [ |
      Cuisine_Volet.sendCommand(80)
] )
1 Like

In OH2.5 sending command to group doesn’t work. I will look for DP with Groups.

I’m sure that’s not true? Show us the events.log of that not happening, please.

Thank you ! Just find that I have a String item in my group !