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”.
I try getting my automation running only if there is an entry in the calender for this day. We have to give our dog a medication once a month an I have a calender for that.
Here is my attempt. But the condition is not working. It sends the notification daily.
alias: Zeckenmittel Erinnerung
description: ""
conditions:
- condition: template
value_template: "{{ 'Zeckenmittel Hund' in state_attr('calendar.medikamente', 'message') }}"
use_blueprint:
path: Aohzan/medication_reminder_android.yaml
input:
notify_device: eb176052f8a53a59674b2891cf25e6ea
reminder_time: "07:00:00"
input_boolean: input_boolean.zeckenmittel
notification_title: Simparica
notification_message: Zeit für Zeckenmittwl!
notification_action_taken: Gegeben
notification_action_later: Später geben!
notification_action_skip: Ausfallen lassen!
logbook_message_remind: Erinnerung gesendet
logbook_message_taken: Zeckenmittel gegeben
logbook_message_later: Verschoben
logbook_message_skip: Keine Gabe
I have a strange issue.
Notifications to my Samsung s22 dont always get received, I believe my phone sleeps the app after a while.
The result is that I do not reply to the notifications with Taken, Skip, Later.
For some reason yesterday a received a reminder 165mins later :-s , when I has set this to 15 minutes.
Any ideas how to remedy?