Garage or door left open warning
A red warning stays up until the door is actually closed, then clears itself.
Some alerts shouldn't time out. This pair of automations shows a red warning when a door has been open for ten minutes and keeps it up until the door closes, then puts the matrix back to normal straight away.
What your matrix shows
Text with the "fireworks" border. Illustration; the real effect is animated.
What you need
- A door or garage sensor in Home Assistant (a contact sensor or your garage opener's integration) that is "on" when open.
- Pipplee set up in Home Assistant once: see the setup guide (about 5 minutes).
The automation
In Home Assistant go to Settings → Automations, create a new automation,
choose Edit in YAML and paste this. Change binary_sensor.garage_door to your own entity.
alias: Garage left open on the matrix
triggers:
- trigger: state
entity_id: binary_sensor.garage_door
to: "on"
for: "00:10:00"
actions:
- action: rest_command.pipplee_text
data:
text: "Garage door open"
font_color: "ff5a5f"
border: "fireworks"
duration: 0
---
alias: Garage closed, clear the matrix
triggers:
- trigger: state
entity_id: binary_sensor.garage_door
to: "off"
actions:
- action: rest_command.pipplee_stop
This is two automations: create one for each part on either side of the --- line.
How it works
- The first automation waits until the door has been open for ten minutes.
- duration 0 keeps the warning up instead of timing out.
- The second automation calls the stop command when the door closes, which puts your matrix back to its normal display.
Variations
Fridge or freezer door
Use a contact sensor on the fridge with a shorter wait, such as two minutes.
Only after dark
Add a sun condition so a garage left open in the evening gets flagged, not one open while you work in it.
conditions:
- condition: sun
after: sunset
Questions
Does the stop command clear other messages too?
Yes. Stop returns the matrix to its normal display, whatever was shown. Messages are not queued: the newest one always wins.
Can I make the warning blink?
Pick a busier border effect, such as fireworks or plasma, for a stronger warning without blinking text.