@Divid0Conner
I presume I need to globally declare the variable:
byte status;
but I don't know about the "device"
char device[] = "livingroom"?
If I use that code it compiles but it only puts the "1" in the emoncms in the field where the name is suposseds to go instead of the number field