Drinking enough water and keeping a daily habit alive share the same problem: both are easy to intend and easy to forget by mid-afternoon. A counter built from MacroDroid variables turns vague intention into a visible number — glasses today, days in a row — and that number, checked at a glance, is surprisingly motivating. This guide builds two linked counters: a water intake counter that resets each morning, and a habit streak counter that grows by one each day you complete the habit and resets only when a day is missed. Both use only variables, simple macros, and a display you can check in seconds, with no external app or account required.
Counters work because they make progress tangible. “Drink more water” is advice; “5 of 8 glasses” is a score. “Keep the habit going” is encouragement; “12 days in a row” is a record you do not want to break. The design goal here is therefore a system that is effortless to update — one tap per glass, one tap per habit completion — honest about misses, and forgiving in the right ways: a water counter resets daily without judgement, while a streak counter treats a missed day plainly but lets you start again immediately. Build it for yourself first, and it will still be running in a month, which is the only test that matters.
Prerequisites
You need MacroDroid and a basic comfort with variables: creating an integer variable, increasing it by one, and displaying it in a notification or scene. Decide your targets before building: a daily water goal in glasses or millilitres — eight glasses is a common starting point, but adjust it to your own needs and any medical advice you follow — and the habit you want to streak, stated as a single completable action such as “walk for twenty minutes” or “read for fifteen minutes”. Choose one habit to start; a streak system tracking five habits at once is five times as likely to be abandoned. Pick how you will log each event: a home screen tile or a scene button is ideal, because logging must take less than two seconds or it will not happen. Back up your macros before building, so an experimental counter cannot disturb existing routines.
A health note belongs here: a water counter is a reminder tool, not medical guidance. If you have a condition affecting fluid intake, follow your clinician’s advice over any default goal in this guide, and set your target accordingly.
Step-by-Step Setup
Step 1: Create the water variables
Create two integer variables: “water_today” starting at zero, and “water_goal” set to your daily target, such as 8. Creating the goal as a variable rather than baking the number into every macro means you can change your target in one place later. Also create a string variable for today’s date if your streak logic will need it, though the water counter itself mainly needs a daily reset. Name variables plainly and consistently, because you will reference them in several macros, and a mistyped variable name is the most common counter bug. Write the variable names down before you build the macros that use them.
Step 2: Build the one-tap water logging macro
Create a macro triggered by a tile tap or scene button, named “Log a Glass”. Its actions are simple: increase “water_today” by one, then show a brief confirmation displaying the new total against the goal, such as “5 of 8 glasses”. Add a condition that prevents logging beyond a sensible maximum — for example, stop at twice the goal — so an accidental double-tap storm cannot produce an absurd total. Test it by tapping three times and confirming the total rises to three. If you drink different amounts, build a second button for a large glass that adds two, or a small one that adds one; keep the logging vocabulary to two sizes at most, or the choice itself becomes friction.
Step 3: Build the daily reset macro
A water counter that never resets becomes meaningless by day two. Create a macro triggered at a quiet early hour, such as 4 a.m., that sets “water_today” back to zero. Add a condition that it only runs once per day, and consider having it record yesterday’s total in a simple log — a notification history, a file append, or a second variable holding “water_yesterday” — so a good day is not simply erased. Test the reset by temporarily setting its trigger near the present, confirming the counter clears and yesterday’s total is recorded, then restoring the real early-morning time. A reset macro is small, but it is the difference between a counter and a curiosity.
Step 4: Create the habit streak variables
Create three more variables: “streak_days” starting at zero, “habit_done_today” as a true-or-false flag starting false, and “last_habit_date” as a string holding the date the habit was last completed. The logic is: when you complete the habit, if “habit_done_today” is false, set it true and increase “streak_days” by one; if it is already true, do nothing, so completing the habit twice in one day cannot inflate the streak. The date variable lets a nightly check decide whether today was missed. Name these variables carefully and keep them in the same naming style as the water variables, so the whole system reads as one design.
Step 5: Build habit logging and the nightly check
Create a “Habit Done” macro, triggered by a tile or button, that applies the rule from step 4 and confirms with a message showing the new streak, such as “Streak: 12 days”. Then create a nightly macro, triggered late in the evening, that checks “habit_done_today”: if true, it resets the flag to false for tomorrow and records the date; if false, it resets “streak_days” to zero — the honest consequence of a missed day — and sends a gentle notification noting the streak ended and a new one can start tomorrow. Test both paths: complete the habit and confirm the streak grows once, complete it again and confirm it does not grow twice, then simulate a missed day and confirm the reset behaves as designed. Honest streak logic, including the reset, is what makes the streak meaningful.
Step 6: Display progress where you will see it
A counter you must hunt for will not motivate you. Display progress in one place you already look: a persistent notification updated after each log, a scene panel with both counters, or a home screen tile showing today’s water total. Keep the display to two lines — water today against goal, and current streak — and update it from the logging macros so it never lags behind reality. Add a morning reminder that shows yesterday’s water total and today’s streak, framing the day positively rather than guiltily. Test the display after each type of event — log, reset, streak growth, streak reset — and confirm it always matches the variables underneath.
Testing and Verification
Verify the system over a simulated week: log glasses across several fake days using temporary trigger times, complete and miss the habit on different days, and confirm water resets daily, the streak grows only once per completed day, and a missed day resets the streak cleanly. Check that logging beyond the maximum is blocked, that the display always matches the variables, and that a phone restart does not corrupt the counts — variables persist, but confirm this on your device rather than assuming it. Only when the simulated week passes should you start a real streak, because restarting a real streak to fix a logic bug is demoralising in a way a test streak is not.
Troubleshooting
If the water total does not increase, check the variable name in the logging macro against the variable you created — a single letter difference creates a second, invisible variable. If the counter never resets, check the reset macro’s trigger time and whether it is enabled; early-morning triggers are easily disabled by battery optimisation, so exclude MacroDroid from aggressive saving. If the streak grows twice in one day, the “habit_done_today” flag is not being checked before increasing; add that condition. If the streak resets on a day you completed the habit, the nightly check ran before your logging macro, or the flag was cleared early; move the nightly check later and verify the order. If the display lags, update it from within the logging macros rather than relying on a separate periodic refresh.
Tips
Start with a water goal you can actually reach most days; a goal set for perfection produces a counter that always reads as failure. Celebrate streak milestones quietly — a special notification at 7, 30, and 100 days — because milestones make long streaks feel earned. Keep a backup habit for difficult days: if your habit is a twenty-minute walk, a ten-minute walk on a hard day still counts if you define it so in advance, and defining it in advance is honest, not cheating. Review the system monthly: adjust the water goal with the seasons, and retire a habit that is fully automatic, replacing it with the next one you want to build. Finally, remember the counter serves the habit, not the reverse — if tracking ever feels like a burden, simplify it until it feels like a game again.
Frequently Asked Questions
How is a water counter different from a habit streak?
Water resets every day, because each day’s intake is independent. A streak carries across days, growing by one per completed day and resetting only when a day is missed.
Can one day’s habit completion count twice?
No, if built correctly. The “habit_done_today” flag ensures the streak increases only on the first completion each day, and later completions that day do nothing to the streak.
What happens to my streak if I miss a day?
The nightly check resets the streak to zero and notifies you gently. You can start a new streak the next day immediately; the system records the break honestly rather than pretending it did not happen.
Do MacroDroid variables survive a phone restart?
Yes, variables persist across restarts on a normal setup. Confirm this on your device during testing, and exclude MacroDroid from aggressive battery optimisation to protect scheduled resets.
Should I follow the eight-glass default?
Only as a starting point. Adjust your goal to your own needs, climate, activity, and any medical advice you follow. A counter is a reminder tool, not medical guidance.


