I’ve just started to play around with the Automation HAT and Python (newbie, but have coded in various things previously).
Is there any way to have the inputs interrupt driven to run some specific code, or do I have to sit in a loop and continually poll and check for changes in values?
The scenario I’m looking for is to have a rain sensor trigger one of the inputs that would then fire off an email (and do some other stuff) when rain is detected, and also when the rain clears, etc.
Is this possible at all?