Syntax issue with Capitalised variables


#1

1) Give a description of the problem
Getting errors using the WindowShade variable - looking like:

Comparison (enum) Partially open is_not_any_of (string) closing,open,opening,partially open,unknown = true

(Partially is capitalised)

2) What is the expected behavior?
I should be able to compare values from the variable in if statements etc

3) What is happening/not happening?
When a value is capitalised the comparison doesn’t pick it up


#2

I believe webCoRE is case-sensitive so you’ll need to match the case. If you want to ignore case then maybe reduce them to all lower (or upper) case before making the comparison using one of the available functions.


#3

webCoRE is definitely case sensitive. I had an issue with my TV (before it quit working all together) sending “On” when webCoRe is looking of “on” by default.

I just used the Expression option to make it look for a capitalize letter, but I was only looking for one state:

@SillyThing may have better luck setting the device section to expression so he can force its output to be lowercase for all possible states:


#4

Thanks @michicago - I was already using expressions (but will now use the lower-case comparison: thanks for that!)
I hope that the capitalisation gets tidied up as some point though as this was really confusing for a newbie like me.