Home Assistant automation for Pikud HaOref (Israeli Home Front Command) rocket alerts with visual light signals.
When a real-time rocket alert is active for your configured area, all color-capable smart lights turn red. When the alert ends, lights flash green and restore to their previous state.
| Automation | Trigger | Action |
|---|---|---|
| Lights RED | Alert active | Snapshot current lights → all lights RED |
| All Clear | Alert ends | Green flash → restore previous state |
| Pre-Alert | Pre-alert warning | Orange flash x3 → restore |
| Pre → Alert | Pre-alert escalates | Immediately go RED |
| Pre Clear | Pre-alert ends | Dismiss notification |
- Pure YAML automations — no custom code
- Uses the oref_alert HACS integration
- Snapshots light state before changing, restores after all-clear
- Persistent notifications in HA dashboard during alerts
- Home Assistant with HACS
oref_alertintegration installed via HACS- Color-capable smart lights (Zigbee, WiFi, etc.)
See SETUP.md for step-by-step instructions.
Quick version:
- Install
oref_alertfrom HACS - Configure your location
- Paste automations from
automations.yamlinto HA - Test by manually setting
sensor.oref_alerttoalert
Edit automations.yaml to:
- Change target lights (replace entity IDs with your own)
- Adjust colors or brightness
- Modify flash patterns
- Add additional actions (sirens, TTS announcements, etc.)
MIT