I need to be reminded at a certain time if I do not push a button by midday each day (a Zigbee Xiaomi button).
The button is a sensor that can have multiple states depending on how it is pressed (Single = single click, Double = double click, Triple = triple click etc.), I need to be alerted if it has not had a Single button press between 6am and 12am.
I know how to sent an alert, what I don’t know is how to check specifically if a Single click has NOT happened between two time periods. I still want to be able to double click it or triple click it during this time period.
After being press, the sensor seems to “reset” itself after an hour. So if I single click it, the state becomes Single, and if no other clicks occur, then it loses its state after about an hour.
Here is what the sensor looks like in HA:
Any ideas how I can easily achieve this? I have been trying to think up ways but nothing simple comes to mind.