Skip to content

Instantly share code, notes, and snippets.

@rfc5841
rfc5841 / HomeAssistant pending Notifications.md
Created January 8, 2025 12:16 — forked from RoboMagus/HomeAssistant pending Notifications.md
HomeAssistant postponed / pending Notifications

HomeAssistant postponed / pending Notifications

This is a set of scripts / automations / other snippets for your Home Assistant configuration that enable you to postpone notifications and then have them automatically pushed to your phone when e.g. arriving home.

Some possible use cases for this set of snippets include:

  • Sending any user at home a notification when the laundry is done.
    • If no one is home, it does not make sense to send it out. But as soon as the first person arrives home, they can be notified about it.
  • Sending any user at home a notification to empty the robot vacuum dustbin.
  • A reminder to take out the thrash on pick up day.
@rfc5841
rfc5841 / sump-pump.yaml
Created May 18, 2024 11:56 — forked from mekaneck/sump-pump.yaml
ESPHome YAML code for monitor of sump pump & battery-powered backup sump pump
substitutions:
# Device Naming
devicename: sump-pump
friendly_name: Sump Pump
device_description: Sump Pump Level Sensor, Counter, and Alarm
# Limits for pump levels and alarm levels
primary_pumpout_below_height: '0.100' #meters; the primary pump will empty the sump to below this level
primary_pumpout_reset_height: '0.140' #meters; primary pump counter is reset when water rises above this level (enabling it to be triggered again)
primary_pumpout_duration_limit: '60.0' #seconds; maximum duration for the primary pump to drop the level from 'reset_height' to 'below_height' (otherwise the sump level dropped by some other means e.g. evaporation)