Type Mismatch Problem?


#1

1) Give a description of the problem
Condition doesn’t trigger execution… Comparison between type enum and type string fails when it should evaluate to true. How do I fix the type mismatch?

2) What is the expected behavior?
Piston should trigger when Garage door is opened.

3) What is happening/not happening?
Piston isn’t triggering. Or, I swear, it works sometimes but not others?!?!?

4) Post a Green Snapshot of the piston!

**5) Attach any logs **
Trace2


#2

It’s not evaluating false because of a type mismatch, it’s for some other reason. What if you put your state comparison below your trigger for gage contact sensor? Maybe the “changes to” expires by the time it executes that step.

See below, mine has the same thing in the logs but evaluates correctly


#3

Interesting. A timing issue would explain why it seems to work sometimes. I’ll try messing with the order of the conditions. Thanks!