@ccoupe your mqtt-listen-switch.groovy was the perfect starting point for me as my goal was a simple subscription to contact and temperature sensor topics.
I made a couple of modifications to accept temperatures, handle my contact topic values of 0|1 and needed to change the contact value attribute from "close" to "closed" on line 90.
Works great and very easy to configure - thanks!