I have a BME280 reading temperature/humidity/pressure and sending the values to my MQTT broker.
As it's monitoring a room where our pets are, and the weather is heating up, I would like a notification on my phone of when the temp hits a certain value. So we do not leave the pets in too hot a room.
I have it working as per below, but it of course notifies every 10 seconds - (when a new MQTT value is sent which is over the threshold).
I would like it so that:
Warning notification sent at 25 degrees - only once
Warning notification sent at 30 degrees - only once
Some kind of buffer would be ideal i.e. as the temperature drops to 24.9 and swings back to 25.0 it does not constantly ping a notification.
Any hints appreciated!