I have found myself using virtual buttons to monitor and report states for simple applications. For example, “has the mail been delivered today.” The buttons are triggered by rules in CoRE based on acceleration sensors, contact sensors, etc. I think this is a pretty common practice in this community.
I have a few applications where a two-state on/off virtual button is not good enough. I’m looking for a way to do 3-or-more state buttons easily. Here’s an example application.
Our dog eats twice a day, once in the morning, once at night. I’d like to monitor whether or not my daughter has fed the dog. If she hasn’t fed her by 8:30am, send a text. If she hasn’t fed her a second time by 8;30pm, send another text. This is easy enough to do with CoRE but I’d also like a visible state monitor that I can see to know what the state is. This is straightforward to implement with 2, two-state buttons, one for breakfast and one for dinner. But what I really want is a 3-state solution which can be set to “Hungry”, “Breakfast”, and “Dinner” before resetting to “Hungry” at midnight.
I’m curious if anyone has a device handler that implements this kind of multi-state switch as a virtual button or other solution I should consider.
Thanks in advance.