AutomationDataset/mmalina/automation-descriptions.json

249 lines
19 KiB
JSON

[
{
"id": "tv_turned_on",
"result": {
"structured": "TRIGGER: When TV [media_player.tv] turns on. CONDITIONS: None. ACTIONS: Turn on Yamaha receiver [media_player.yamaha]. Set Yamaha receiver [media_player.yamaha] source to Optical. Execute Yamaha set speaker command [rest_command.yamaha_set_speaker] to enable speaker A. Execute Yamaha set speaker command [rest_command.yamaha_set_speaker] to disable speaker B. IF (time is after 10:00:00 AND before 12:00:00) THEN set blind 2 [cover.blind2] position to 0. Wait for 2 seconds. IF (Yamaha receiver [media_player.yamaha] volume_level is below 0.5) THEN set Yamaha receiver [media_player.yamaha] volume to 0.5.",
"natural_language": {
"trigger": "When the TV [media_player.tv] is turned on.",
"conditions": "There are no conditions that must be met before the actions run.",
"action": "The automation will turn on the Yamaha receiver [media_player.yamaha], set its input source to 'Optical', enable speaker A and disable speaker B via the Yamaha set speaker command [rest_command.yamaha_set_speaker]. If the time is between 10:00 and 12:00, it will also close blind 2 [cover.blind2]. After a 2-second delay, it will check the receiver's volume level and, if it is below 50%, set it to 50%."
},
"human_like": "When the TV is turned on, this automation sets up the Yamaha receiver, adjusts the blinds during the morning, and ensures the volume is at an appropriate level.",
"complexity": "medium"
}
},
{
"id": "tv_turned_off",
"result": {
"structured": "TRIGGER: When TV [media_player.tv] turns off. CONDITIONS: The current time is between 11:00 and 13:00. ACTIONS: Set Yamaha receiver [media_player.yamaha] source to Spotify AND set blind 2 [cover.blind2] position to 100%.",
"natural_language": {
"trigger": "When the TV [media_player.tv] is turned off.",
"conditions": "The automation only runs if the current time is between 11:00 AM and 1:00 PM.",
"action": "It will change the source on the Yamaha receiver [media_player.yamaha] to 'Spotify' and fully open blind 2 [cover.blind2] by setting its position to 100%."
},
"human_like": "When the TV is turned off during late morning or early afternoon, it switches the receiver to Spotify and opens the living room blind.",
"complexity": "low"
}
},
{
"id": "lights_on_in_the_evening",
"result": {
"structured": "TRIGGER: At sunset minus 10 minutes. CONDITIONS: Martin person tracker [person.martin] is home. ACTIONS: Activate normal scene [scene.normal] with a transition time of 1200 seconds AND turn on lights in the bedroom area with a transition time of 600 seconds and brightness at 68 percent.",
"natural_language": {
"trigger": "The automation triggers 10 minutes before sunset.",
"conditions": "It only runs if Martin person tracker [person.martin] is at home.",
"action": "It first activates the normal scene [scene.normal] with a slow, 20-minute fade-in. Then, it turns on the lights in the bedroom area, fading them on over 10 minutes to 68% brightness."
},
"human_like": "Turns on the living room and bedroom lights with a gentle fade-in just before sunset, but only when Martin is home.",
"complexity": "low"
}
},
{
"id": "lights_on_arrival",
"result": {
"structured": "TRIGGER: When Martin person tracker [person.martin] arrives home (state changes to home). CONDITIONS: The time is after 10 minutes before sunset AND before sunrise. ACTIONS: Turn on hall light [light.hall], activate normal scene [scene.normal], and turn on lights in the bedroom area with brightness set to 68%.",
"natural_language": {
"trigger": "When Martin person tracker [person.martin] arrives home.",
"conditions": "The automation only runs if it is nighttime, specifically after 10 minutes before sunset and before sunrise.",
"action": "It turns on the hall light [light.hall], activates the normal scene [scene.normal], and turns on all lights in the bedroom area at 68% brightness."
},
"human_like": "Turns on the hall and bedroom lights, and sets a living room scene when Martin arrives home at night.",
"complexity": "low"
}
},
{
"id": "sound_controller_volume_down",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs with id 'sound_controller' and event '3001'. CONDITIONS: None. ACTIONS: Start the volume down loop script [script.volume_down_loop].",
"natural_language": {
"trigger": "When the sound controller device sends a specific deCONZ event (event code 3001).",
"conditions": "There are no conditions that must be met.",
"action": "Runs the volume down loop script [script.volume_down_loop]."
},
"human_like": "Lowers the volume when a specific button is pressed on the sound controller.",
"complexity": "low"
}
},
{
"id": "sound_controller_volume_up",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs with id 'sound_controller' and event '2001'. CONDITIONS: None. ACTIONS: Start the volume up loop script [script.volume_up_loop].",
"natural_language": {
"trigger": "When the sound controller device sends a specific deCONZ event with the code 2001.",
"conditions": "There are no conditions that must be met.",
"action": "Activates the volume up loop script [script.volume_up_loop]."
},
"human_like": "Increases the volume when a specific button is pressed on the sound controller.",
"complexity": "low"
}
},
{
"id": "sound_controller_volume_stop",
"result": {
"structured": "TRIGGER: When a deCONZ event is received from the device sound_controller. CONDITIONS: The event code is NOT 3001 AND NOT 2001. ACTIONS: Turn off volume up loop script [script.volume_up_loop] AND Turn off volume down loop script [script.volume_down_loop].",
"natural_language": {
"trigger": "When a deCONZ event is received from the sound controller device.",
"conditions": "The event code from the controller must not be 3001 and must not be 2001.",
"action": "Stops any active volume adjustment by turning off both the volume up loop script [script.volume_up_loop] and the volume down loop script [script.volume_down_loop]."
},
"human_like": "Stops the volume adjustment scripts when a specific button is released on the sound controller.",
"complexity": "low"
}
},
{
"id": "sound_controller_switch_yamaha",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs with id 'sound_controller' and event '1002'. CONDITIONS: Yamaha receiver [media_player.yamaha] is off. ACTIONS: Turn on Yamaha receiver [media_player.yamaha].",
"natural_language": {
"trigger": "When the sound controller device sends a specific event (event 1002) via the deCONZ system.",
"conditions": "If the Yamaha receiver [media_player.yamaha] is currently turned off.",
"action": "Turn on the Yamaha receiver [media_player.yamaha]."
},
"human_like": "Turns on the Yamaha receiver when a specific button is pressed on the sound controller, but only if the receiver is off.",
"complexity": "low"
}
},
{
"id": "lights_off",
"result": {
"structured": "TRIGGER: When Martin person tracker [person.martin] leaves home (state changes to not_home) OR at 4:00:00. CONDITIONS: None. ACTIONS: Turn off all lights.",
"natural_language": {
"trigger": "When Martin person tracker [person.martin] is no longer at home, or when the time reaches 4:00 AM.",
"conditions": "There are no conditions that must be met.",
"action": "Turns off all lights in the home."
},
"human_like": "Turns off all the lights when Martin leaves home or at 4 AM.",
"complexity": "low"
}
},
{
"id": "freezer_open_alert",
"result": {
"structured": "TRIGGER: When freezer door sensor [binary_sensor.freezer_door] becomes open (on) AND remains open for 10 minutes. CONDITIONS: None. ACTIONS: Create a persistent notification with title 'Freezer open for over 10 minutes' and message 'Freezer open for over 10 minutes' (notification_id: freezer_open_alert) AND send an email notification via email notification [notify.email] with title 'Freezer open for over 10 minutes' and message 'Freezer open for over 10 minutes'.",
"natural_language": {
"trigger": "When the freezer door sensor [binary_sensor.freezer_door] detects that the freezer door is open and stays open for at least ten minutes.",
"conditions": "There are no additional conditions that must be met.",
"action": "Creates a persistent notification on the Home Assistant interface with the title and message 'Freezer open for over 10 minutes', and also sends an email alert with the same title and message via the email notification [notify.email] service."
},
"human_like": "Sends an alert via a notification and email if the freezer door has been left open for more than ten minutes.",
"complexity": "low"
}
},
{
"id": "'1607179755688'",
"result": {
"structured": "TRIGGER: When the time reaches heating off time input [input_datetime.heating_off_time]. CONDITIONS: None. ACTIONS: Turn off heating climate [climate.heating].",
"natural_language": {
"trigger": "At the specific time set in the heating off time input [input_datetime.heating_off_time].",
"conditions": "There are no conditions that must be met.",
"action": "Turns off the heating climate [climate.heating]."
},
"human_like": "Turns off the heating system at a scheduled time.",
"complexity": "low"
}
},
{
"id": "'1607525870870'",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs with id sound_controller and event 1002. CONDITIONS: Yamaha receiver [media_player.yamaha] has its source attribute set to Spotify. ACTIONS: Toggle play/pause on Yamaha receiver [media_player.yamaha].",
"natural_language": {
"trigger": "When the sound controller device sends a specific event (1002) via deCONZ.",
"conditions": "The Yamaha receiver [media_player.yamaha] must currently be set to the Spotify source.",
"action": "Toggles the play or pause state of the Yamaha receiver [media_player.yamaha]."
},
"human_like": "Pauses or resumes Spotify playback on the living room receiver when a specific button is pressed on the sound controller.",
"complexity": "low"
}
},
{
"id": "'1607526213723'",
"result": {
"structured": "TRIGGER: When deCONZ event with id sound_controller and event 1002 occurs. CONDITIONS: Yamaha receiver [media_player.yamaha] is not off AND Yamaha receiver [media_player.yamaha] source attribute is not Spotify. ACTIONS: Toggle mute state of Yamaha receiver [media_player.yamaha] (mute if currently unmuted, unmute if currently muted).",
"natural_language": {
"trigger": "When the sound controller device sends a specific event (event 1002).",
"conditions": "The Yamaha receiver [media_player.yamaha] must be powered on and not currently set to the Spotify input source.",
"action": "Toggle the mute function on the Yamaha receiver [media_player.yamaha]. If the receiver is currently unmuted, it will be muted, and if it is currently muted, it will be unmuted."
},
"human_like": "Toggles the mute function on the living room receiver when a button is pressed on the sound controller, but only if the receiver is on and not playing from Spotify.",
"complexity": "medium"
}
},
{
"id": "nightstand_switch_all_off",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs with id bedroom_nightstand_switch and event 2002. CONDITIONS: bedroom lights [light.bedroom_lights] is off AND remains off for 1 second. ACTIONS: Choose action based on conditions: IF any light entity in the light domain is on THEN turn off all lights. ELSE IF the current time is between 05:30:00 and 12:00:00 THEN open all blinds [cover.all_blinds], turn on kitchen unit light [light.kitchen_unit] with brightness 70% and color temperature 2700K, IF heat in the morning input [input_boolean.heat_in_the_morning] is on THEN turn on heating climate [climate.heating], turn on Yamaha receiver [media_player.yamaha], select source 'Server' on Yamaha receiver [media_player.yamaha], enable speaker A via Yamaha set speaker command [rest_command.yamaha_set_speaker], enable speaker B via Yamaha set speaker command [rest_command.yamaha_set_speaker], wait 8 seconds, set volume to 50% on Yamaha receiver [media_player.yamaha], get daily weather forecasts for weather forecast [weather.forecast], and use TTS service [tts.google_say] on Yamaha receiver [media_player.yamaha] to speak a greeting with current outside temperature [sensor.outside_temperature], current living room temperature [sensor.living_room_temperature], and today's high temperature from the forecast.",
"natural_language": {
"trigger": "When the bedroom nightstand switch [bedroom_nightstand_switch] sends a specific deCONZ event (event 2002).",
"conditions": "The bedroom lights [light.bedroom_lights] must be off and have been off for at least one second.",
"action": "If any lights in the house are currently on, the automation turns all lights off. Otherwise, if the current time is between 5:30 AM and 12:00 PM, it performs a morning routine: it opens all blinds [cover.all_blinds], turns on the kitchen unit light [light.kitchen_unit] to a warm white at 70% brightness, and, if the 'heat in the morning' setting [input_boolean.heat_in_the_morning] is enabled, turns on the heating [climate.heating]. It then turns on the Yamaha receiver [media_player.yamaha], sets it to the 'Server' source, enables both speakers A and B, waits 8 seconds, sets the volume to 50%, fetches the daily weather forecast [weather.forecast], and finally uses text-to-speech to announce a greeting with the current inside and outside temperatures and the day's forecasted high."
},
"human_like": "When the nightstand switch is pressed in the morning, it either turns off all lights if any are on, or starts a comprehensive morning routine with lights, blinds, heating, and a weather announcement.",
"complexity": "high"
}
},
{
"id": "nightstand_switch_on",
"result": {
"structured": "TRIGGER: When deCONZ event occurs for device bedroom_nightstand_switch with event code 1002. CONDITIONS: bedroom lights [light.bedroom_lights] is on AND remains on for 1 second. ACTIONS: Turn off all lights in the Living Room area AND turn on bedroom lights [light.bedroom_lights] with brightness set to 24.",
"natural_language": {
"trigger": "When the bedroom nightstand switch [bedroom_nightstand_switch] sends a specific event (1002).",
"conditions": "The bedroom lights [light.bedroom_lights] must be on and remain on for at least one second.",
"action": "Turns off all lights in the Living Room area and then turns on the bedroom lights [light.bedroom_lights] at a low brightness level (24)."
},
"human_like": "When the nightstand switch is pressed, it turns off the living room lights and dimly turns on the bedroom lights, provided the bedroom lights are already on.",
"complexity": "medium"
}
},
{
"id": "tasmota_on",
"result": {
"structured": "TRIGGER: When deCONZ event occurs for device bedroom nightstand switch [device_id: bedroom_nightstand_switch] with event code 2001. CONDITIONS: None. ACTIONS: Publish MQTT message to topic 'cmnd/tasmota1/POWER' with payload 'true'.",
"natural_language": {
"trigger": "When a specific deCONZ event (event code 2001) is received from the bedroom nightstand switch [device_id: bedroom_nightstand_switch].",
"conditions": "There are no conditions that need to be met.",
"action": "Sends an MQTT command to turn on the tasmota device [device_id: tasmota1] by publishing 'true' to the topic 'cmnd/tasmota1/POWER'."
},
"human_like": "Turns on a Tasmota device when a button on the bedroom nightstand switch is pressed.",
"complexity": "low"
}
},
{
"id": "tasmota_off",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs for device bedroom_nightstand_switch with event code 2003. CONDITIONS: None. ACTIONS: Publish an MQTT message to topic 'cmnd/tasmota1/POWER' with payload 'false'.",
"natural_language": {
"trigger": "When the bedroom nightstand switch [device: bedroom_nightstand_switch] sends a specific deCONZ event (code 2003).",
"conditions": "There are no conditions for this automation.",
"action": "Sends an MQTT command to turn off the tasmota device [device: tasmota1] by publishing 'false' to the topic 'cmnd/tasmota1/POWER'."
},
"human_like": "Turns off a Tasmota device when a specific button is pressed on the bedroom nightstand switch.",
"complexity": "low"
}
},
{
"id": "tasmota_on_off",
"result": {
"structured": "TRIGGER: When a deCONZ event occurs for bedroom nightstand switch [device_id: bedroom_nightstand_switch] with event code 2002. CONDITIONS: None. ACTIONS: Publish a message to MQTT topic 'cmnd/tasmota1/POWER' with payload 'true', then wait 2 seconds, then publish a message to MQTT topic 'cmnd/tasmota1/POWER' with payload 'false'.",
"natural_language": {
"trigger": "When the bedroom nightstand switch [device_id: bedroom_nightstand_switch] sends a deCONZ event with the specific code 2002.",
"conditions": "There are no conditions that must be met.",
"action": "Sends an MQTT command to turn on the tasmota device [device_id: tasmota1], waits for two seconds, and then sends another MQTT command to turn it off."
},
"human_like": "Briefly toggles a Tasmota device on and off when a specific button on the bedroom nightstand switch is pressed.",
"complexity": "low"
}
},
{
"id": "airplay_turned_off",
"result": {
"structured": "TRIGGER: When Apple TV [media_player.apple_tv] is not in the AirPlay app (app_id is not 'com.apple.TVAirPlay'). CONDITIONS: The current time is between 11:00 and 13:00. ACTIONS: Run Apple TV sleep script [script.apple_tv_sleep].",
"natural_language": {
"trigger": "When the Apple TV [media_player.apple_tv] is no longer using the AirPlay application.",
"conditions": "The automation only runs if the current time is between 11:00 AM and 1:00 PM.",
"action": "Executes the Apple TV sleep script [script.apple_tv_sleep]."
},
"human_like": "Puts the Apple TV to sleep via a script when it stops using AirPlay, but only during the late morning to early afternoon.",
"complexity": "medium"
}
}
]