15 lines
1.1 KiB
JSON
15 lines
1.1 KiB
JSON
[
|
|
{
|
|
"id": "Spotify Lights",
|
|
"result": {
|
|
"structured": "TRIGGER: When a webhook with ID REPLACEME is received via POST method and is local only. CONDITIONS: (Sun is before sunrise) OR (Sun is after sunset with an offset of -2 hours). ACTIONS: Turn on light 1 [light.light_1] and ceiling lights [light.ceiling_lights] with a transition of 1 second and an RGB color value from the webhook trigger data (trigger.json.rgb).",
|
|
"natural_language": {
|
|
"trigger": "When a specific local webhook (ID: REPLACEME) is triggered via a POST request.",
|
|
"conditions": "The automation only runs if it is before sunrise, or if it is after sunset but within two hours before sunset.",
|
|
"action": "Turns on the lights named light 1 [light.light_1] and ceiling lights [light.ceiling_lights]. The lights fade on over one second and are set to the specific RGB color value that was sent with the webhook request."
|
|
},
|
|
"human_like": "Sets the living room lights to a color from Spotify when triggered by a webhook, but only during the evening or early morning.",
|
|
"complexity": "medium"
|
|
}
|
|
}
|
|
] |