SELECT previous.state.reported.gdos AS previousGdos, current.state.reported.gdos AS currentGdos, topic(3) AS deviceId
FROM '$aws/things/+/shadow/update/documents'
WHERE 
((get(currentGdos, 0).status = 'unknown' OR get(currentGdos, 0).status = 'blocked') AND (get(currentGdos, 0) <> get(previousGdos, 0))) OR
((get(currentGdos, 1).status = 'unknown' OR get(currentGdos, 1).status = 'blocked') AND (get(currentGdos, 1) <> get(previousGdos, 1))) OR
((get(currentGdos, 2).status = 'unknown' OR get(currentGdos, 2).status = 'blocked') AND (get(currentGdos, 2) <> get(previousGdos, 2))) OR
((get(currentGdos, 3).status = 'unknown' OR get(currentGdos, 3).status = 'blocked') (get(currentGdos, 3) <> get(previousGdos, 3)))

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: