I’ve created a custom card that displays medication details, including when it was last taken, how many tablets remain, and a color-coded bar indicating the count. It also shows a percentage badge so you can quickly see how much supply is left. Here’s the complete YAML configuration for the card:
Has anyone create a dashboard button to manually log the history item as taken and decrement the counter? How did you go about that? Did you just turn on thei nput boolean? I don’t think that would create a log and unless the blueprint is running it would not log it.
I just wanted to says thank you for the blueprint. I added the blueprint as provided. Built the cards for manual take AM & PM buttons, history for a dashboard. May add 15 minute reminders, last taken etc. later. I don’t really need when to refill etc, my pharmacy already reminds me. I also added phone widgets for manual take AM & PM. Medisafe app tracking has been replaced.
In case it helps others. I am still fiddling with this and have multiple setup. I have taken control of the automation so I could edit. Unfortunately, it is only popping up on my phone for my initial setup. I am guessing it is scripted the same and needs to change, but I have not yet had time to rescript. In the short term, I added a button that toggles the input boolean off. I have a 2nd automation that decrements the counter and modifies the adherence input/date time to properly record when it was last taken. This was not working in the original blue print. I would love to change the date time format on adherence (last taken) but haven’t gotten to modifying yet successfully. See below for an example dashboard for a vitamin (this one not hitting phone - so button for “taken”.