41 lines
4.2 KiB
JSON
41 lines
4.2 KiB
JSON
[
|
|
{
|
|
"id": "Active red alert - Your Alert Area",
|
|
"result": {
|
|
"structured": "TRIGGER: When oref alert [binary_sensor.oref_alert] changes to on. CONDITIONS: None. ACTIONS: Set volume of redacted group [media_player.redacted_group] to 0.77, then play the audio file 'red-alert-sound.mp3' on redacted group [media_player.redacted_group], then run the activate sirens script [script.activate_sirens], then run the flash lights red script [script.flash_lights_red], then execute the REST command 'your_alert_area_active'.",
|
|
"natural_language": {
|
|
"trigger": "When the oref alert [binary_sensor.oref_alert] turns on.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it sets the volume of the redacted group [media_player.redacted_group] to 77%. Then, it plays the 'red-alert-sound.mp3' audio file on the same media player group. Next, it runs the activate sirens script [script.activate_sirens], followed by the flash lights red script [script.flash_lights_red]. Finally, it sends a REST command named 'your_alert_area_active'."
|
|
},
|
|
"human_like": "Activates a full red alert sequence, including sirens, flashing red lights, and an alert sound, when an emergency alert is received.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "All clear",
|
|
"result": {
|
|
"structured": "TRIGGER: When oref alert [binary_sensor.oref_alert] changes to off. CONDITIONS: None. ACTIONS: Turn on flash lights green short script [script.flash_lights_green_short] AND Turn on flash indicator green short script [script.flash_indicator_green_short] AND Set volume of redacted group [media_player.redacted_group] to 78% AND Play audio file 'all-clear.mp3' on redacted group [media_player.redacted_group].",
|
|
"natural_language": {
|
|
"trigger": "When the oref alert [binary_sensor.oref_alert] changes its state to off.",
|
|
"conditions": "There are no conditions; the automation runs immediately when triggered.",
|
|
"action": "The automation performs a sequence of actions: it runs the flash lights green short script [script.flash_lights_green_short] and the flash indicator green short script [script.flash_indicator_green_short], sets the volume of the redacted group [media_player.redacted_group] to 78%, and plays the 'all-clear.mp3' audio file on the same media player group."
|
|
},
|
|
"human_like": "Plays an all-clear sound and flashes green lights when an alert ends.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "New preemptive alerts",
|
|
"result": {
|
|
"structured": "TRIGGER: When oref alert [binary_sensor.oref_alert] attribute selected_areas_updates changes. CONDITIONS: The first update in the selected_areas_updates list contains the text 'בדקות הקרובות' (in the near future) in either its 'text' or 'title' field. ACTIONS: Set volume to 75% on redacted group [media_player.redacted_group] AND Play media (unspecified content) on redacted group [media_player.redacted_group] AND Execute flash indicator lights script [script.flash_indicator_lights] AND Execute activate sirens script [script.activate_sirens] AND Turn on redacted bathroom light [light.redacted_bathroom], redacted office light [light.redacted_office], and redacted living area light [light.redacted_living_area] AND Execute REST command send_preemptive_alert AND Wait for 2 minutes.",
|
|
"natural_language": {
|
|
"trigger": "When the oref alert [binary_sensor.oref_alert] receives an update to its 'selected_areas_updates' attribute.",
|
|
"conditions": "The update must indicate that an alert is expected 'בדקות הקרובות' (in the near future), meaning the phrase appears in either the title or text of the first update in the list.",
|
|
"action": "It activates a comprehensive alert sequence: sets the media player volume, plays a media alert, flashes indicator lights, activates sirens, turns on specific lights in the bathroom, office, and living area, sends a preemptive alert via a REST command, and then pauses for two minutes."
|
|
},
|
|
"human_like": "Triggers a full preemptive alert sequence—including sounds, lights, and notifications—when an imminent security alert is received.",
|
|
"complexity": "medium"
|
|
}
|
|
}
|
|
] |