- Platform information:
- Hardware: x86/2G ram /16GB ssd
- OS: Lubuntu Xenial
- Java Runtime Environment: openjdk 1.8
- openHAB version: 2.3.0
Some times I find my rules don’t trigger when they should be.
I have a group for presence detection SA_gPresence with multiple items in it.
I also have 3 different rules for this item
rule "No presence detected"
when
Item SA_gPresence changed from ON to OFF
then
logInfo("SA", "global presence changed to OFF, ie no someone home")
end
rule "Presence detected"
when
Item SA_gPresence changed from OFF to ON
then
logInfo("SA", "global presence changed to ON, ie someone home ")
end
rule "debug status printout"
when
Item SA_downstairs_occupancy changed
or Item SA_girls_occupancy changed
or Item SA_boys_occupancy changed
or Item SA_parents_occupancy changed
or Item SA_gPresence changed
then
logInfo("SA", String::format("pres(%-3s)="
+ "Sen[D(%-3s)/P(%-3s)/G(%-3s)/B(%-3s)]"
SA_gPresence.state, SA_downstairs_occupancy.state,SA_parents_occupancy.state,SA_girls_occupancy.state,SA_boys_occupancy.state))
end
Some times this works as is, but sometimes it only fires the debug print one and not the others.
Am I doing something wrong?
I did check the event log and that does report the change, but the output log only has the debug print out and not the Presence detection.
2018-06-08 10:57:06.966 [INFO ] [rg.eclipse.smarthome.model.script.SA] - pres(OFF)=Sen[D(OFF)/P(OFF)/G(OFF)/B(OFF)]
2018-06-08 10:57:06.972 [INFO ] [rg.eclipse.smarthome.model.script.SA] - global presence changed to OFF, ie no someone home
2018-06-08 18:13:15.398 [INFO ] [rg.eclipse.smarthome.model.script.SA] - pres(ON )=Sen[D(ON )/P(OFF)/G(OFF)/B(OFF)]
2018-06-08 18:13:15.402 [INFO ] [rg.eclipse.smarthome.model.script.SA] - pres(ON )=Sen[D(ON )/P(OFF)/G(OFF)/B(OFF)]
2018-06-08 18:16:15.828 [INFO ] [rg.eclipse.smarthome.model.script.SA] - pres(ON )=Sen[D(ON )/P(OFF)/G(ON )/B(OFF)]
2018-06-08 18:16:15.920 [INFO ] [rg.eclipse.smarthome.model.script.SA] - pres(ON )=Sen[D(ON )/P(ON )/G(ON )/B(OFF)]