OK, another big update to my pool_fill_control.py script.
V2.1
# - Added logging
# - Reworked notifications to remove requirement to write a file
# and see if the file was present. Used global variables instead.
# - Reworked overfill tracking and notification
# - Reworked manual fill to prevent manual fill while automated
# fill is in progress. Before, requesting a manual fill while a
# fill was in progress caused the relay to kick out and back in
# and notifications for manual fill to go out. Now, before we do
# a manual fill we check to see if an auto fill is in progress.
# If there is one in progress, we just blink the button LED a
# bunch of times and log the event.
# - Cleaned up the database check to prevent checking the pool level
# while we are manually filling the pool.
# - Added support for Rachio smart sprinklers via their API to
# automatically detect if the sprinklers are running or not.
You will need to get yoru Bearer and Device IDs from your rachio account and put them in pooldb.py