have a look at this Adding a New Device using MQTT and understand how it works. then you can do anything with cayenne,