Red Alert Actuator
Physical alert outputs (Snapcast TTS + MQTT lights) for Pikud HaOref alerts
About This Project
Red-Alert-Actuator is a Python service that converts real-time Israeli Pikud HaOref (Homefront Command) alert data into physical outputs within a home. It consumes data from the Oref Alert Proxy, polls it at a configurable interval, and reacts to state transitions in a configured local area, which defaults to Jerusalem South. For that area, smart lights published over MQTT change color to red for an active threat, orange for a pre-warning, and green for an all-clear, then turn off after a configurable timeout. Pre-recorded voice announcements, generated once with OpenAI TTS and stored as WAV files, are played through a Snapcast server via a FIFO pipe. The service also announces nationwide thresholds when the count of simultaneously alerted areas reaches 100, 200, 500, or 1000.
The project is built in Python and deployed either with Docker Compose or directly with pip. It uses MQTT (Mosquitto or any compatible broker) for light control, with a default payload format suited to Zigbee2MQTT, and the payload can be adapted for Tasmota or Home Assistant by modifying a dictionary in the source. Configuration is handled through environment variables covering broker settings, polling interval, light topics, TTS cooldown, and the monitored area name. The project is released under the MIT license and forms part of the Red Alert Monitoring Stack, alongside a Telegram bot and a map dashboard.
The project may be of interest to people in Israel who want ambient, whole-house notification of alerts without relying on a phone, as well as to home automation enthusiasts who are interested in integrating MQTT lights and Snapcast audio with external data feeds. It also serves as a reference example of a small event-driven actuator that separates data ingestion from output channels.