Things have been relatively stable with this driver, so I have not needed to make many changes, hence it's been quiet here on the topic. At the moment I am looking to make some relatively minor changes to the driver:
- Only record device events when there is a change in temperature or humidity readings, rather than the current behavior of an event being recorded each time readings are polled. This should reduce noise and improve accuracy of triggering based on these events.
- Similarly, make sure the device "Last Activity" is only updated when there is a change in the reading, improving any monitoring people may want to do for device activity as an indicator for battery health, etc
- On the Gateway parent device, move the access token and authorisation code values to state variables, rather than attributes, avoiding any unnecessary issues with attribute lengths or visibility of these values
I will also include some extra debug logging, and automatic timeout for the debug logging preference setting and other general code improvements.
Let me know if anyone has any concerns about these changes.