01-24-2017, 04:29 PM
I've been trying to poll the status of my garage door using the Echo but can't seem to get it to work.  The skill is set up and working properly, and I can see in the log monitor that the phrase is being picked up correctly so I believe the config file is correct.
This is the global action I have:
If System::Equals(GC100-Garage1.IRSensor1,False, No Case)
   GlobalVars::SetVariable(GVar:EchoReply, The Garage Door is Closed)
Else
   GlobalVars::SetVariable(GVar:EchoReply, The Garage Door is Open)
End
When I run this I always get the response "The Garage Door is Open," even when it's closed.  I can see from the driver that the sensor shows a False value when the door is closed and a True value when the door is open.  Is there something wrong with my action statement?
This is the global action I have:
If System::Equals(GC100-Garage1.IRSensor1,False, No Case)
   GlobalVars::SetVariable(GVar:EchoReply, The Garage Door is Closed)
Else
   GlobalVars::SetVariable(GVar:EchoReply, The Garage Door is Open)
End
When I run this I always get the response "The Garage Door is Open," even when it's closed.  I can see from the driver that the sensor shows a False value when the door is closed and a True value when the door is open.  Is there something wrong with my action statement?