It hasn’t been officially tested, but there are community members who have written a device type for it, so you just cut-and-paste that basically.
First read the following FAQ on using custom code:
And then here is the topic on that specific device. Skip down to post 68, dated August 31.