Hi Guys,
I have a rule which I have used for some time and that has worked fine. The rule basically tracks the outside light and the outside temperature and sets the heater inside depending on the combinations of light and temperature in relation to a given threshold value for each variable.
Today I was going to adjust and extend the rule a bit. The changes I made was to remove hard coded values and replace the hard coded values with variables. I also wanted to ad a check to see if any door was open before turning on the heat. But after the changes was complete and I pressed 'Done' I got an error message. Since the error message I am no longer allowed to access the rule. When I try to open the rule, I only get the error message. The error message is as follows:
The log says:
I am having issues interpreting what this means. So I am none the wiser if this is a coding error or if this is a bug or some other option.
The rule looks like this:
-
I am not sure if you can do an IF-statement within an ELSIF statement and I wondered if that was the problem, so I disabled the IF-statements. Even if that was the error I should still be able to save right as the lines now are disabled?
-
And the defined variables are as below. I have not used all of the variables yet, I just defined them for future use. Can that be an issue?
-
If I use an ELSIF statement, can I only use the same variables in all ELSIF statements (I had to ad a temperature reading in two of them which does not occure in the other statements)?