I’m trying to create a simple piston that takes the state from my Abode door sensors and converts them into proper (virtual) contact switch states in SmartThings.
I’ve got the WebHook created in IFTTT, configured to invoke the piston directly via the URL in the piston’s quick info box. It’s set to POST with application/json for the content type and a single ingredient called DoorName in the json body.
When the piston runs my if statement always evaluates to false. The statement is:
{$args.DoorName} is 'Garage Door'
The log shows:
Comparison (dynamic) null is (string) Garage Door = false
I’ve also tried
{$args.params.DoorName} is 'Garage Door'
and that doesn’t work either.
Based on past comments by @ady642 this should work. Is there a way to debug the POST body and see what IFTTT is actually sending? Anything that I’m missing?