Set Variable / Log Variable not working

Any idea why my logs are not reporting the variables? Just 0.

Can you provide the Logs output that demonstrates this problem? It's not possible to say whether there is one from seeing the rule actions alone (note that the value in parentheses is just the current value).

Is your variable a number or decimal type? The number type is an integer, so if your Rain and Rain2 variables are number type, they can't take the 0.02 value.

Just to test I created two variables and tried this. I set var_decimal to 0.02, then set var_number to the value of var_decimal, then logged the value of var_number, which was 0

image

1 Like

You are absolutely correct. The number type variable did not work. Changed it to decimal. Thank you.