Minor typo on this page:
http://devwiki.electricimp.com/doku.php?id=electricimpapi:device
4th bullet point:
device.send() – send an event to the agent
Should read:
device.send() – send an event to the agent's imp
or just imp or device.
Oops, right you are!
Peter