28 lines
3.1 KiB
JSON
28 lines
3.1 KiB
JSON
[
|
|
{
|
|
"id": "Office Light Weekday Schedule",
|
|
"result": {
|
|
"structured": "TRIGGER: At 09:00:00 OR At 17:00:00. CONDITIONS: None. ACTIONS: Choose based on conditions. If (weekday is Monday OR Tuesday OR Wednesday OR Thursday OR Friday) AND (current time is exactly 09:00) AND (Jason [person.jason] is home) THEN turn on office light [switch.office_light]. If (weekday is Monday OR Tuesday OR Wednesday OR Thursday OR Friday) AND (current time is exactly 17:00) AND (office light [switch.office_light] is on) THEN turn off office light [switch.office_light].",
|
|
"natural_language": {
|
|
"trigger": "The automation runs at 9:00 AM and again at 5:00 PM every day.",
|
|
"conditions": "There are no global conditions. The actions are selected based on internal conditions within the 'choose' block.",
|
|
"action": "On weekdays (Monday to Friday), if the time is exactly 9:00 AM and Jason [person.jason] is home, the office light [switch.office_light] is turned on. Also on weekdays, if the time is exactly 5:00 PM and the office light [switch.office_light] is already on, it is turned off."
|
|
},
|
|
"human_like": "Turns the office light on at 9 AM on weekdays when Jason is home, and turns it off at 5 PM if it's on.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Patriotic Holiday Lights (Auto)",
|
|
"result": {
|
|
"structured": "TRIGGER: When sunset occurs with an offset of +15 minutes OR When coach light 1 [light.coach_light_1] OR coach light 2 [light.coach_ight_2] OR coach light 3 [light.coach_light_3] changes state from off OR unavailable to on. CONDITIONS: None. ACTIONS: Choose based on template conditions. IF (should_set_colors is true) THEN Turn on coach light 1 [light.coach_light_1] with red color (RGB 255,0,0) AND Turn on coach light 2 [light.coach_light_2] with white color (RGB 255,255,255) AND Turn on coach light 3 [light.coach_light_3] with blue color (RGB 0,0,255). ELSE IF (should_reset is true) THEN Turn on coach light 1 [light.coach_light_1] AND coach light 2 [light.coach_light_2] AND coach light 3 [light.coach_light_3] with color temperature 300.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers either 15 minutes after sunset, or when any of the coach lights (coach light 1 [light.coach_light_1], coach light 2 [light.coach_light_2], or coach light 3 [light.coach_light_3]) are turned on from an off or unavailable state.",
|
|
"conditions": "There are no explicit conditions.",
|
|
"action": "The automation checks the current date against a set of holiday rules. If today is a patriotic holiday (Memorial Day, July 4th period from July 1st to 5th, Labor Day, or Veterans Day), it sets the three coach lights to red, white, and blue colors respectively. If today is the day immediately after one of those holidays, it resets all three coach lights to a normal white light with a color temperature of 300."
|
|
},
|
|
"human_like": "Automatically sets the coach lights to patriotic red, white, and blue colors on major US holidays, and resets them to normal white the next day.",
|
|
"complexity": "medium"
|
|
}
|
|
}
|
|
] |