Trigger a light based on temperature?

Here’s the FAQ for adding a virtual device. You either have to create it with code yourself in the web interface to your account, which is called the IDE, or you have to use one of the smartapps which can create them for you.