-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
" and " in rules either not implemented or not working. #33
Comments
It's interesting as "and" worked in my first testings.. could you switch Log level to Debug and see "Parsed condition" lines? I will check it today evening. /it's morning now here :) / |
"Station" is a dummy device where I store values. The hours value is incremented up 1 every hour. After a set time this value is used to start the watering sequence. So [station#hours] is just a dummy value.
Debug Developer Level. Above line is all that shows. I get that via syslog. I do not have serial connected. If need be I can set that up. |
== is not equal to = in python.. using eval() is convenient choice, but equal signes needs to be converted back and forth.. i think it is fixed in commit 60ec0f8 |
Another bug seems to have been exterminated!! |
I am afraid there are some more hidden bugs.. But thanks, this one closed. |
I have a rule I am trying to use with an "and" statement in it. I know this was implemented in ESPEasy but not sure about here.
The rule I am using....
if [station#hours]>47 and [auto#switch]=0 do
This evaluates as false. The switch is indeed at "0" and the station hours are indeed more than 47if [station#hours]>47
Evals as true by itselfif [auto#switch]=0
Evals as true by itself.Like the issue title says. Either not implemented or not working.
If not implemented can you? :)
If a bug, can you exterminate? :)
No big rush. Whenever you have the time.....
Thanks again for this awesome software!!
The text was updated successfully, but these errors were encountered: