Project

General

Profile

Bug #45

events : conditions

Added by Anonymous over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
-
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
fixed

Description

1/
2010/11/06 19:19:00 [Events] 2d. Condition with id 14 returned True
2010/11/06 19:19:00 [Events] 2d. Condition with id 10 returned True
2010/11/06 19:19:00 [Events] 2e. CheckConditions checking iCondition1 id 14 AND iCondition2 id 10
2010/11/06 19:19:00 [Events] 2f. Event id 28 named 'TH : m<>61 on 5' is validated, running action(s).
2010/11/06 19:19:00 [Events] 3a. Running action with id 11 for Event with id 28
2010/11/06 19:19:00 [Events] 3b. Action with id 11 named 'tellstick rfcmd A11 off' executed!
2010/11/06 19:19:00 [Events] 2c. Check condition '19 <> 61' = True
2010/11/06 19:19:00 [Events] 2c. GlobalVar Change trigger on event id 29 named 'TH : m<>61 on 6' with trigger condition 'Minute <> 61'
2010/11/06 19:19:00 [Events] 2d. Condition with id 15 returned True
2010/11/06 19:19:00 [Events] 2d. Condition with id 10 returned True
2010/11/06 19:19:00 [Events] 2e. CheckConditions checking iCondition1 id 15 AND iCondition2 id 10
2010/11/06 19:19:00 [Events] 2f. Event id 29 named 'TH : m<>61 on 6' is validated, running action(s).
2010/11/06 19:19:00 [Events] 3a. Running action with id 11 for Event with id 29
2010/11/06 19:19:00 [Events] 3b. Action with id 11 named 'tellstick rfcmd A11 off' executed!
2010/11/06 19:19:00 [Events] 2c. Check condition '19 <> 61' = True
2010/11/06 19:19:00 [Events] 2c. GlobalVar Change trigger on event id 30 named 'TH : m<>61 on 2' with trigger condition 'Minute <> 61'
2010/11/06 19:19:00 [Events] 2d. Condition with id 11 returned True
2010/11/06 19:19:00 [Events] 2d. Condition with id 10 returned True
2010/11/06 19:19:00 [Events] 2e. CheckConditions checking iCondition1 id 11 AND iCondition2 id 10
2010/11/06 19:19:00 [Events] 2f. Event id 30 named 'TH : m<>61 on 2' is validated, running action(s).
2010/11/06 19:19:00 [Events] 3a. Running action with id 11 for Event with id 30
2010/11/06 19:19:00 [Events] 3b. Action with id 11 named 'tellstick rfcmd A11 off' executed!

=> all conditions are "true" ( the tested is "false" )

2/ no empty or zero ( ocondition2 id 0 )

Condition with id 8 returned True
2010/11/06 19:23:00 [Events] 2e. [[CheckConditions]] checking iCondition1 id 8 OR iCondition2 id 0
2010/11/06 19:23:00 [Events] 2f. Event id 24 named 'TH : m<>61 on 1' is validated, running action(s).

id =0 isn't in the database mysql
OR iCondition2 id 0 => all is "true"

thanks

History

#1 Updated by rdnzl over 8 years ago

  • Status changed from New to In Progress

id 0 means it wasn't found. Maybe you deleted it or renamed it, but the event wasn't updated...

Can you upgrade your version try with latest code on svn? (version 0.1.190 and revision 471)
You have to check the event with false condition, and repair it first.
Since you left out debug code I cannot tell which id it has.

#2 Updated by Anonymous over 8 years ago

Can you upgrade your version try with latest code on svn? (version 0.1.190 and revision 471)

no version 0.1.186 => error - all tests are version 0.0.190

Please, where is the revision ? ( no : ? / About domotiga )

#3 Updated by rdnzl over 8 years ago

Are you running 0.1.186 or 0.1.190? Still not clear sorry...

You cannot see revision in About window.

You have to install/upgrade your code via svn.
http://domotiga.nl/wiki/Domotiga/Installation

If you type svn info inside the directory where you downloaded it you see the revision.

When installed earlier with the method above simply type svn up inside that install/domotiga dir, and you get the lastet version and revision.
Then copy the files in there over your exisiting code (make a backup first)
And start DomotiGa, it will upgrade your db (make a backup too)

If you need any more help tell me where you get stuck...

#4 Updated by rdnzl over 8 years ago

Another possibility is that you e-mail me a backup of your database.
You can clear passwords for e-mail etc if you want.
You can make a backup via tools/database admin menu.
My e-mail address can be found in the README file in the domotiga directory.

#5 Updated by Anonymous over 8 years ago

id 0 means it wasn't found, it's present in events

New 1.1.190 revision 473
http://www.jfchasse.fr/capture-202.png
http://www.jfchasse.fr/capture-203.png
http://www.jfchasse.fr/capture-204.png
http://www.jfchasse.fr/capture-205.png
http://www.jfchasse.fr/capture-206.png

all conditions id (8,11,12,13,14,15 are false, but ng iCondition1 id 15 OR iCondition2 id 0
in final all 'true' with "iCondition2 id 0"

#6 Updated by rdnzl over 8 years ago

Ok I see the problem you have (finally, sorry ;-)
Condition2 and operand are empty but due to that all conditions are true.

I have added a fix (I think), can you overwrite your Events.module with latest one from svn and recompile DomotiGa and retry.
You have to start it from Gambas ide, compiled binaries are not yet updated.

#7 Updated by Anonymous over 8 years ago

resolved in version 0.1.190 release 479 compilated:

#8 Updated by rdnzl over 8 years ago

  • Status changed from In Progress to Closed
  • Resolution set to fixed

Also available in: Atom PDF