openhab-core icon indicating copy to clipboard operation
openhab-core copied to clipboard

Member of <group> received update is triggered multiple times

Open krzyk opened this issue 5 years ago • 4 comments

Version: 2.5.0M1 (on raspbian)

I have a rule:

rule "LastUpdateTest"                                                           
when                                                                            
    Member of gMonitorLastUpdate received update                                                                                                                                                                     
then                                                                            
    logInfo("lastUpdate", "Result:" + triggeringItem.name)                      
end                                                                             

And when a member of gMonitorLastUpdate is updated the rule is triggered multiple times (it can be 3, 4, or even > 200 times). This should not happen, it is a single event so it should trigger the rule only once. gMonitorLastUpdate has only 3 members.

When I change the Member of gMonitorLastUpdate received update to Member of gMonitorLastUpdate changed it correctly triggers the rule only once.

krzyk avatar Apr 16 '19 09:04 krzyk

@krzyk, have you asked about this behavior in the forum? Your rule will not trigger multiple times unless multiple events have been received. You will need to troubleshoot why you are receiving multiple events, but the forum would be the appropriate place for that discussion. @ me in the topic and I will be happy to help.

5iver avatar Apr 16 '19 10:04 5iver

@openhab-5iver Yes I have and there was already another thread related to that:

  1. https://community.openhab.org/t/prevent-openhab-from-triggering-rule-multiple-times/63195
  2. https://community.openhab.org/t/item-update-fires-rule-multiple-times/71886

So from that I just assumed this is a bug, not just misconfiguration in both cases (considering that in the first thread it was written that this happens in openhab triggering).

krzyk avatar Apr 16 '19 10:04 krzyk

I can't reproduce this issue. Do you have others groups as members of the gMonitorLastUpdate group? And if so, do you have items that are members of two or more of these groups?

J-N-K avatar May 10 '22 15:05 J-N-K

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 09 '22 16:07 stale[bot]