rjSampaio

HÁ - Automation - Brush Reminder

Sep 10th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.32 KB | Source Code | 0 0
  1. alias: Notification - Ric Brush Reminder
  2. description: ""
  3. triggers:
  4.   - trigger: time
  5.     at: "14:30:00"
  6.   - trigger: time
  7.     at: "22:30:00"
  8.   - trigger: zone
  9.     entity_id: person.rjsampaio
  10.     zone: zone.home
  11.     event: enter
  12. conditions:
  13.   - condition: template
  14.     value_template: >-
  15.       {{ (now() -
  16.       states.sensor.ric_toothbrush_totalduration.last_changed).total_seconds() >
  17.      5*60*60 }}
  18.     alias: Last brush more than x hour
  19.   - condition: state
  20.     entity_id: person.rjsampaio
  21.     state: home
  22.   - condition: time
  23.     after: "02:29:00"
  24. actions:
  25.   - action: notify.mobile_app_rsphone
  26.     metadata: {}
  27.     data:
  28.       message: >-
  29.         Your last brush was {{
  30.         relative_time(states.sensor.ric_toothbrush_totalduration.last_changed)
  31.         }} ago.
  32.       title: |
  33.        {{ ["Time to Shine! 🦷✨",
  34.              "Hey, Let's Keep That Smile Bright! 😁",
  35.              "Toothbrush Check-In",
  36.              "Freshen Up Reminder for You! 🌟",
  37.              "It's Brush O'Clock! ⏰",
  38.              "Your Toothbrush Timer Update 🕒",
  39.              "Friendly Reminder, Keep Smiling! 😄",
  40.              "Let's Keep Your Pearly Whites Perfect!",
  41.              "Brush Time Status Update💫",
  42.              "It’s Toothbrushing Time Again?"]
  43.              | random }}
  44. mode: single
  45.  
Advertisement
Add Comment
Please, Sign In to add comment