How can I add temperature monitoring to this code? The Home Control outlet has two temperature sensors, one internal and one external. How can I pull status from them every 5 minutes?
If the outlet’s temperature reporting supports the standard temperature cluster you can query it with a read attribute command. Here is how I read the the two temperature probes in my coop door controller:
The above code is from the coopboss custom device type. The above command will tell your device to report its temperature but you will need to look for the reply in the parse method of your custom device type. There are other examples out there as well. Reading the temperature is a fairly standard thing. So you may be able to find some less complex examples.