AutomationDataset/KacperLa/automation-descriptions.json

41 lines
2.6 KiB
JSON

[
{
"id": "Wand first-three array values",
"result": {
"structured": "TRIGGER: When wand history sensor [sensor.wand_history] changes state. CONDITIONS: The JSON array stored in wand history sensor [sensor.wand_history] has a length of at least 4 AND the integer value at index 0 equals 3 AND the integer value at index 1 equals 4 AND the integer value at index 2 equals 6 AND the integer value at index 3 equals 5. ACTIONS: Log a message to the logbook containing the array length and the first two integer values from wand history sensor [sensor.wand_history] AND turn on wand monitor switch [c1039bbd0f68f51d14f8ea4353d44eeb].",
"natural_language": {
"trigger": "Whenever the state of the wand history sensor [sensor.wand_history] changes.",
"conditions": "The sensor must contain a JSON array with at least four elements. The first element must be the number 3, the second must be 4, the third must be 6, and the fourth must be 5.",
"action": "Log a custom message to the logbook showing the length of the array and the values of its first two elements, and then turn on the wand monitor switch [c1039bbd0f68f51d14f8ea4353d44eeb]."
},
"human_like": "Activates a wand monitor when the history sensor records a specific sequence of numbers.",
"complexity": "medium"
}
},
{
"id": "wand off",
"result": {
"structured": "TRIGGER: When wand light sensor [sensor.wand_light] changes from 0 to 1. CONDITIONS: None. ACTIONS: Turn off wand off switch [cb54a644bf2619e64394c5f54ac32325].",
"natural_language": {
"trigger": "When the wand light sensor [sensor.wand_light] changes its state from 0 to 1.",
"conditions": "There are no conditions for this automation.",
"action": "Turns off the wand off switch [cb54a644bf2619e64394c5f54ac32325]."
},
"human_like": "Turns off a switch when a light sensor detects a specific change.",
"complexity": "low"
}
},
{
"id": "Wand on",
"result": {
"structured": "TRIGGER: When wand light sensor [sensor.wand_light] changes from 1 to 0. CONDITIONS: None. ACTIONS: Turn on wand off switch [cb54a644bf2619e64394c5f54ac32325].",
"natural_language": {
"trigger": "When the wand light sensor [sensor.wand_light] changes its state from 1 to 0.",
"conditions": "There are no conditions that must be met.",
"action": "Turns on the wand off switch [cb54a644bf2619e64394c5f54ac32325]."
},
"human_like": "Turns on a switch when a light sensor value drops, likely activating a device when a specific light level is reached.",
"complexity": "low"
}
}
]