Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse SmartHome » Bug with rules(bug on state of rules)
Bug with rules [message #1727641] Thu, 24 March 2016 16:31 Go to next message
Julien Da Silva is currently offline Julien Da SilvaFriend
Messages: 7
Registered: March 2016
Junior Member
Hello,

I tested rules and I saw a problem.

I have 2 rules:
    Rules 1:
      Trigger : Item State Trigger
      Actions : Post command to an item
      Conditions : Item state condition detect = 1

    Rules 2:
      Trigger : Item State Trigger
      Actions : Post command to an item
      Conditions : Item state condition detect = 2


When detect changes from 1 to 2 or 2 to 1 some time the condition is not true, the log is ConditionSatisfied --> false. The update of the state is perform after having tested the condition. Below the log of this test.

2016-03-24 17:24:46.418 [INFO ] [arthome.event.ItemCommandEvent:43 ] - Item 'satellite_satellite_00000000d41211f2_utterance_out' received command 1
2016-03-24 17:24:46.419 [DEBUG] [.c.h.ItemStateConditionHandler:92 ] - ItemStateCondition 'condition_4'checking if satellite_satellite_00000000d41211f2_utterance_out (State=2) = 1
2016-03-24 17:24:46.420 [DEBUG] [.c.h.ItemStateConditionHandler:96 ] - ConditionSatisfied --> false
2016-03-24 17:24:46.420 [DEBUG] [e.s.a.core.internal.RuleEngine:1105 ] - The condition 'condition_4' of rule 'rule_3' is unsatisfied.
2016-03-24 17:24:46.420 [DEBUG] [e.s.a.core.internal.RuleEngine:1007 ] - The rule 'rule_3' is NOT executed, since it has unsatisfied conditions.
2016-03-24 17:24:46.421 [DEBUG] [.c.thing.internal.ThingManager:391 ] - Delegating update '2' for item 'satellite_satellite_00000000d41211f2_utterance_out' to handler for channel 'satellite:satellite:00000000d41211f2:utterance-out'
2016-03-24 17:24:46.421 [INFO ] [smarthome.event.ItemStateEvent:43 ] - satellite_satellite_00000000d41211f2_utterance_out updated to 2
2016-03-24 17:24:46.422 [DEBUG] [.c.h.ItemStateConditionHandler:92 ] - ItemStateCondition 'condition_3'checking if satellite_satellite_00000000d41211f2_utterance_out (State=2) = 2
2016-03-24 17:24:46.422 [DEBUG] [.c.h.ItemStateConditionHandler:96 ] - ConditionSatisfied --> true
Re: Bug with rules [message #1728127 is a reply to message #1727641] Thu, 31 March 2016 09:35 Go to previous message
Marin Mitev is currently offline Marin MitevFriend
Messages: 22
Registered: December 2014
Junior Member
I think this is related to the known issue discussed here
https://github.com/eclipse/smarthome/issues/740#issuecomment-165024532
And the solution is to follow Benedikt's suggestion: "So changing the condition of the rule from ItemStateCondition to ItemStateEventCondition should help."
Please check the code of the test rules:
https://github.com/qivicon/smarthome/commit/1fe29473d78ed5e083b55a54223aa8b2157fd198
Previous Topic:What is the reason behind removing Groups
Next Topic:discovery service overwriting existing item configuration
Goto Forum:
  


Current Time: Sat Apr 20 01:22:44 GMT 2024

Powered by FUDForum. Page generated in 0.03647 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top