

Here’s a screenshot of what my diagnostic interface for it looked like. The Python script took all the sensors as inputs and decided on a strategy for upstairs and downstairs, and gave the reason for its decision in a separate sensor for debugging purposes. The script performed all the necessary actions whenever it changed strategy.
I cheated and just used a webscraper to pull the data from a local government website.