[RELEASE] Advanced Shower Monitor - Analytics & Time Tracking

Hey everyone,

I'm back with another application for the community. If you are looking to gamify your water usage, keep track of utility costs, or just get your family to stop taking 30-minute showers, the Advanced Shower Monitor is for you.

This app falls under the "Green Living" category and provides detailed tracking, visual alerts, and cost calculations for up to 4 different showers.

Key Features:

  • Live System Dashboard: The app features a dashboard that shows the real-time status (Idle, Active, or Grace Period) of up to 4 configured showers.
  • Financial & Volumetric Analytics: It logs your last 10 shower sessions, calculating the exact duration, total water volume used (in gallons), and the estimated financial cost. You can customize the math by inputting your specific showerhead flow rate (GPM) and your local estimated cost per gallon for hot water (which factors in water, sewer, and heating energy).
  • Tiered Visual Warnings: Prevent long showers by flashing a selected bathroom light. You can set up to three custom warning intervals (e.g., 1st warning at 5 minutes, 2nd at 8 minutes, 3rd at 10 minutes).
  • Grace-Period Smoothing: To handle "chatty" motion sensors, the app uses a configurable "Empty Shower Grace Period" before resetting the timers. This grace period time is automatically subtracted from your final recorded shower duration so your analytics stay highly accurate.
  • Global Controls & Restrictions: You can restrict the app to only run during certain Hubitat modes, or use the Master Enable Switch to temporarily pause the entire system. The app also maintains a scrolling history log of its last 20 actions.

raw.githubusercontent.com/ShaneAllen334/Hubitat_Apps/refs/heads/main/Advanced_Shower_Monitor/Advanced_Shower_Monitor.groovy

Open Source Disclaimer: This application is completely open-source and free to use. You are welcome to install it, edit it to fit your specific needs, or strip out any snippets of code to use in your own projects. Enjoy!

1 Like