I do that by “thing” at the device, as when is reporting it executes the code inside it, I define what code will run and what not, by a boolean variable
And you of course set up the boolean variables as other “things”, in this way you can disable remotely the device of reporting certain variables that you don’t want.