301 lines
32 KiB
JSON
301 lines
32 KiB
JSON
[
|
|
{
|
|
"id": "karotz_dev_horloge_parlante_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time pattern matches minutes = 0 (every hour on the hour). CONDITIONS: The current time is between 07:00:00 AND before 20:00:00. ACTIONS: Execute the rest command karotz_dev_clock.",
|
|
"natural_language": {
|
|
"trigger": "Every hour, precisely when the clock shows 0 minutes (e.g., 1:00, 2:00, etc.).",
|
|
"conditions": "The automation only runs if the current time is between 7:00 AM and 8:00 PM.",
|
|
"action": "Calls the REST command named 'karotz_dev_clock', which presumably makes the Karotz dev device announce the time."
|
|
},
|
|
"human_like": "Makes the Karotz dev device speak the time every hour during daytime hours.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev - Courrier retirée",
|
|
"result": {
|
|
"structured": "TRIGGER: When eth01 status lettre [binary_sensor.eth01_status_lettre] changes to off. CONDITIONS: None. ACTIONS: Set karotz dev ear left [input_number.karotz_dev_ear_left] to the integer value of karotz dev saved ear left [input_number.karotz_dev_saved_ear_left] AND Set karotz dev ear right [input_number.karotz_dev_ear_right] to the integer value of karotz dev saved ear right [input_number.karotz_dev_saved_ear_right] AND Set karotz dev color 1 [input_text.karotz_dev_color_1] to the value of karotz dev saved color 1 [input_text.karotz_dev_saved_color_1] AND Set karotz dev color 2 [input_text.karotz_dev_color_2] to the value of karotz dev saved color 2 [input_text.karotz_dev_saved_color_2] AND Set karotz dev light speed [input_number.karotz_dev_light_speed] to the integer value of karotz dev saved light speed [input_number.karotz_dev_saved_light_speed] AND Call service rest_command.karotz_dev_light AND Call service rest_command.karotz_dev_ears.",
|
|
"natural_language": {
|
|
"trigger": "When the eth01 status lettre [binary_sensor.eth01_status_lettre] changes its state to off.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "It restores several Karotz device settings from saved values. Specifically, it sets the left and right ear positions, the two color values, and the light speed to their previously saved states. Finally, it executes two REST commands to apply the light and ear configurations to the device."
|
|
},
|
|
"human_like": "Restores the Karotz device's appearance and lighting to its saved settings when the mail status sensor indicates the mail has been taken.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev - Il y a du courrier",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time pattern matches every 45 minutes past the hour. CONDITIONS: The current time is between 07:00:00 and 20:00:00 AND eth01 status lettre [binary_sensor.eth01_status_lettre] is on. ACTIONS: Set karotz dev saved color 1 [input_text.karotz_dev_saved_color_1] to the current value of karotz dev color 1 [input_text.karotz_dev_color_1]. Set karotz dev saved color 2 [input_text.karotz_dev_saved_color_2] to the current value of karotz dev color 2 [input_text.karotz_dev_color_2]. Set karotz dev saved light speed [input_number.karotz_dev_saved_light_speed] to the integer value of karotz dev light speed [input_number.karotz_dev_light_speed]. Set karotz dev saved ear left [input_number.karotz_dev_saved_ear_left] to the integer value of karotz dev ear left [input_number.karotz_dev_ear_left]. Set karotz dev saved ear right [input_number.karotz_dev_saved_ear_right] to the integer value of karotz dev ear right [input_number.karotz_dev_ear_right]. Execute a REST command to make the karotz device say a random phrase about mail arriving. Set karotz dev color 1 [input_text.karotz_dev_color_1] to '00FF00'. Turn on karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode]. Wait for 1 second. Execute a REST command to set the karotz device light to a fixed mode.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers every 45 minutes past the hour.",
|
|
"conditions": "The automation only runs if the current time is between 7:00 AM and 8:00 PM, and the mailbox sensor, eth01 status lettre [binary_sensor.eth01_status_lettre], reports that there is mail (state is 'on').",
|
|
"action": "The automation first saves the current state of several karotz device settings (two colors, light speed, and ear positions) to backup entities. It then has the karotz device say a random, playful phrase announcing that mail has arrived. Next, it changes the primary color of the device to green, enables a fixed light mode, waits one second, and finally issues a command to apply the fixed light setting."
|
|
},
|
|
"human_like": "When mail is detected in the mailbox during daytime hours, this automation saves the current device settings, announces the mail's arrival with a fun message, and makes the karotz device glow green.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev - Cuisine",
|
|
"result": {
|
|
"structured": "TRIGGER: When kitchen switch [4047c432f33eacd0d26280b195f15772] is turned on. CONDITIONS: None. ACTIONS: Wait 10 seconds. Store the current values of karotz dev ear left [input_number.karotz_dev_ear_left], karotz dev ear right [input_number.karotz_dev_ear_right], karotz dev color 1 [input_text.karotz_dev_color_1], karotz dev color 2 [input_text.karotz_dev_color_2], and karotz dev light speed [input_number.karotz_dev_light_speed] into variables. Execute rest_command.karotz_dev_ears_random. Execute rest_command.karotz_dev_say with a randomly selected cooking-related phrase. Restore the stored values to karotz dev ear left [input_number.karotz_dev_ear_left], karotz dev ear right [input_number.karotz_dev_ear_right], karotz dev color 1 [input_text.karotz_dev_color_1], karotz dev color 2 [input_text.karotz_dev_color_2], and karotz dev light speed [input_number.karotz_dev_light_speed]. Execute rest_command.karotz_dev_light. Execute rest_command.karotz_dev_ears. Wait 5 minutes.",
|
|
"natural_language": {
|
|
"trigger": "When the kitchen switch [4047c432f33eacd0d26280b195f15772] is turned on.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "After a 10-second delay, the automation saves the current state of the karotz dev's ear positions, light colors, and light speed. It then makes the karotz dev perform a random ear movement and speak a random cooking-related phrase. Afterwards, it restores the karotz dev's ear positions, light colors, and light speed to their previous values, updates its light and ear positions, and finally waits for 5 minutes."
|
|
},
|
|
"human_like": "When the kitchen light is turned on, the karotz dev reacts with a fun animation and a cooking-related comment, then returns to its previous state after a short show.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev - test tag",
|
|
"result": {
|
|
"structured": "TRIGGER: When a webhook with ID 'tag-lapin-test' is received via GET request and is local-only. CONDITIONS: None. ACTIONS: Execute the rest command karotz_dev_say with data text set to 'Bonjour, je m'appel karotz !'.",
|
|
"natural_language": {
|
|
"trigger": "When a specific local webhook request (with the ID 'tag-lapin-test') is received using the GET method.",
|
|
"conditions": "There are no conditions; the action runs immediately after the trigger.",
|
|
"action": "Sends a command to make a device say 'Bonjour, je m'appel karotz !' using the rest_command.karotz_dev_say service."
|
|
},
|
|
"human_like": "Makes a device say a greeting when a specific local webhook is triggered.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev - Son sur ouverture porte garage",
|
|
"result": {
|
|
"structured": "TRIGGER: When porte garage [binary_sensor.porte_garage] changes to on. CONDITIONS: None. ACTIONS: Send REST command to play sound 'jet1' on karotz_dev AND send REST command to make karotz_dev say a randomly selected phrase from a predefined list.",
|
|
"natural_language": {
|
|
"trigger": "When the porte garage [binary_sensor.porte_garage] opens (changes to the 'on' state).",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "Plays the 'jet1' sound on the Karotz device and then has the Karotz device say one of several randomly selected, space-themed phrases announcing the garage door opening."
|
|
},
|
|
"human_like": "Plays a sound and announces the garage door opening with a fun, space-themed message.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Karotz - Réveil à 8h",
|
|
"result": {
|
|
"structured": "TRIGGER: At 08:00:00. CONDITIONS: None. ACTIONS: Call service rest_command.karotz_dev_wakeup, wait 5 seconds, then run script Karotz Daily Loop [script.karotz_daily_loop].",
|
|
"natural_language": {
|
|
"trigger": "Every day at 8:00 AM.",
|
|
"conditions": "There are no conditions.",
|
|
"action": "Sends a wake-up command to the Karotz device, waits for 5 seconds, and then starts the Karotz Daily Loop [script.karotz_daily_loop] script."
|
|
},
|
|
"human_like": "Wakes up the Karotz device and starts its daily routine at 8 AM.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Karotz - Rappel déjeuner (12h30)",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time is exactly 12:30:00. CONDITIONS: None. ACTIONS: Execute Karotz Intro Effect [script.karotz_intro_effect], wait for 1 second, then execute a REST command to make Karotz say a random phrase from the list of options in karotz meal phrases [input_select.karotz_meal_phrases].",
|
|
"natural_language": {
|
|
"trigger": "Every day at 12:30 PM.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it plays the Karotz Intro Effect [script.karotz_intro_effect]. After a one-second delay, it sends a command to the Karotz device to speak a randomly selected phrase from the list stored in karotz meal phrases [input_select.karotz_meal_phrases]."
|
|
},
|
|
"human_like": "At 12:30 PM, the Karotz device plays an intro sound and then says a random lunchtime reminder phrase.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Karotz - Rappel départ (16h30)",
|
|
"result": {
|
|
"structured": "TRIGGER: At 16:30:00 daily. CONDITIONS: None. ACTIONS: Execute Karotz Intro Effect [script.karotz_intro_effect], wait 1 second, then call the REST command 'karotz_dev_say' with a text parameter set to a random option from the list of karotz departure phrases [input_select.karotz_departure_phrases].",
|
|
"natural_language": {
|
|
"trigger": "Every day at 4:30 PM.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "First, it runs the Karotz Intro Effect [script.karotz_intro_effect]. After a one-second delay, it makes the Karotz device say a randomly selected phrase from the karotz departure phrases [input_select.karotz_departure_phrases] list."
|
|
},
|
|
"human_like": "At 4:30 PM each day, the Karotz device plays an intro effect and then announces a random departure reminder phrase.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "Karotz - Sommeil à 17h",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time is 17:00:00. CONDITIONS: None. ACTIONS: Execute the service rest_command.karotz_dev_sleep.",
|
|
"natural_language": {
|
|
"trigger": "At exactly 5:00 PM.",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "Executes the service rest_command.karotz_dev_sleep."
|
|
},
|
|
"human_like": "Puts the Karotz device to sleep at 5 PM.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_on_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev status [sensor.karotz_dev_status] attribute 'sleep' changes to '0'. CONDITIONS: None. ACTIONS: Turn on karotz dev awake [input_boolean.karotz_dev_awake].",
|
|
"natural_language": {
|
|
"trigger": "When the 'sleep' attribute of the karotz dev status [sensor.karotz_dev_status] sensor changes to the value '0'.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "Turns on the karotz dev awake [input_boolean.karotz_dev_awake] input boolean."
|
|
},
|
|
"human_like": "Marks the Karotz device as awake when its status indicates it is no longer sleeping.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_off_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When sensor.karotz_dev_status [sensor.karotz_dev_status] attribute 'sleep' changes to '1'. CONDITIONS: None. ACTIONS: Turn off karotz dev awake [input_boolean.karotz_dev_awake].",
|
|
"natural_language": {
|
|
"trigger": "When the karotz dev status [sensor.karotz_dev_status] attribute 'sleep' changes to the value '1'.",
|
|
"conditions": "There are no conditions.",
|
|
"action": "Turns off the karotz dev awake [input_boolean.karotz_dev_awake] input boolean."
|
|
},
|
|
"human_like": "Turns off the 'awake' status for the Karotz device when it goes to sleep.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_color_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev color 1 [input_text.karotz_dev_color_1] changes state OR When karotz dev color 2 [input_text.karotz_dev_color_2] changes state OR When karotz dev light speed [input_number.karotz_dev_light_speed] changes state. CONDITIONS: None. ACTIONS: Execute the service rest_command.karotz_dev_light.",
|
|
"natural_language": {
|
|
"trigger": "Whenever the value of karotz dev color 1 [input_text.karotz_dev_color_1], karotz dev color 2 [input_text.karotz_dev_color_2], or karotz dev light speed [input_number.karotz_dev_light_speed] changes.",
|
|
"conditions": "There are no conditions to check.",
|
|
"action": "Sends a REST command to update the Karotz device's light settings."
|
|
},
|
|
"human_like": "Updates the Karotz device's lighting whenever its color or speed settings are changed.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_ear_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev ear left [input_number.karotz_dev_ear_left] changes state OR When karotz dev ear right [input_number.karotz_dev_ear_right] changes state. CONDITIONS: None. ACTIONS: Execute service rest_command.karotz_dev_ears.",
|
|
"natural_language": {
|
|
"trigger": "Whenever the value of either karotz dev ear left [input_number.karotz_dev_ear_left] or karotz dev ear right [input_number.karotz_dev_ear_right] changes.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "Sends a REST command to update the ears of the Karotz device by calling the service rest_command.karotz_dev_ears."
|
|
},
|
|
"human_like": "Updates the Karotz device's ears whenever the left or right ear position is changed.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_light_mode_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode] changes state. CONDITIONS: None. ACTIONS: If karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode] is on, then execute rest_command.karotz_dev_light_fixed. If karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode] is off, then execute rest_command.karotz_dev_light.",
|
|
"natural_language": {
|
|
"trigger": "Whenever the state of the karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode] changes.",
|
|
"conditions": "There are no additional conditions that must be met.",
|
|
"action": "Depending on the new state of the karotz dev light fixed mode [input_boolean.karotz_dev_light_fixed_mode], it will send a different command. If the mode is turned on, it sends the 'karotz_dev_light_fixed' command. If the mode is turned off, it sends the 'karotz_dev_light' command."
|
|
},
|
|
"human_like": "Controls a Karotz device's lighting mode by sending different commands when its fixed mode switch is toggled on or off.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_volume_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev volume [input_number.karotz_dev_volume] changes state. CONDITIONS: None. ACTIONS: Call service rest_command.karotz_dev_volume with data level set to the integer value of karotz dev volume [input_number.karotz_dev_volume].",
|
|
"natural_language": {
|
|
"trigger": "Whenever the value of the karotz dev volume [input_number.karotz_dev_volume] input number changes.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "Sends a REST command to update the volume on the Karotz device, using the current integer value from the karotz dev volume [input_number.karotz_dev_volume] input."
|
|
},
|
|
"human_like": "Updates the Karotz device's volume whenever the volume slider is adjusted in Home Assistant.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_clear_cache_auto",
|
|
"result": {
|
|
"structured": "TRIGGER: When karotz dev status [sensor.karotz_dev_status] is above 80. CONDITIONS: None. ACTIONS: Execute rest_command.karotz_dev_clear_cache.",
|
|
"natural_language": {
|
|
"trigger": "When the karotz dev status [sensor.karotz_dev_status] sensor reports a value greater than 80.",
|
|
"conditions": "There are no additional conditions.",
|
|
"action": "Calls the 'rest_command.karotz_dev_clear_cache' service to clear the cache."
|
|
},
|
|
"human_like": "Automatically clears the cache on the Karotz device when its memory usage exceeds 80%.",
|
|
"complexity": "low"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_meteo_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time matches the pattern of minutes equal to 30 (i.e., every hour at half past). CONDITIONS: The current time is between 07:00:00 and 19:00:00. ACTIONS: 1. Execute the service rest_command.karotz_dev_say with the text 'Voici la météo.'. 2. Execute the service rest_command.karotz_dev_ears_reset. 3. Set the value of karotz dev ear left [input_number.karotz_dev_ear_left] based on the rain chance from ville rain chance [sensor.[ville]_rain_chance]: if rain chance is less than 5%, set to 15; if greater than 60%, set to 4; otherwise, set to 15 minus the integer division of (rain chance - 5) by 5. 4. Set the value of karotz dev ear right [input_number.karotz_dev_ear_right] using the same logic as for the left ear. 5. Set the value of karotz dev color 1 [input_text.karotz_dev_color_1] to a hex color code based on the temperature from pac atom temp ext [sensor.pac_atom_temp_ext]: if temperature is ≤ -10, set to ADD8E6; ≤ -5, 87CEFA; ≤ 0, 00CED1; ≤ 5, 40E0D0; ≤ 10, 90EE90; ≤ 15, ADFF2F; ≤ 20, FFD700; ≤ 25, FFA500; ≤ 30, FF4500; otherwise, FF0000. 6. Set the value of karotz dev color 2 [input_text.karotz_dev_color_2] to '000000'. 7. Set the value of karotz dev light speed [input_number.karotz_dev_light_speed] based on the wind speed from weather station vitesse moyenne du vent km h [sensor.weather_station_vitesse_moyenne_du_vent_km_h]: calculate base 2000 minus decrement of 150 per 5 km/h wind speed increment, with a minimum of 100 and a maximum of 2000. 8. Execute the service rest_command.karotz_dev_light. 9. Execute the service rest_command.karotz_dev_ears. 10. Execute the service rest_command.karotz_dev_say with a text summarizing the current temperature, wind speed, rain chance, and including a weather alert warning if 44 weather alert [sensor.44_weather_alert] contains 'orange' or 'rouge'.",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers every hour at half past the hour.",
|
|
"conditions": "The automation only runs if the current time is between 7:00 AM and 7:00 PM.",
|
|
"action": "The automation announces 'Voici la météo.', resets the Karotz ears, and then adjusts the Karotz device's ears, LED colors, and light blinking speed based on current weather conditions. The position of both ears is set based on the chance of rain from ville rain chance [sensor.[ville]_rain_chance]. The primary LED color is set based on the outdoor temperature from pac atom temp ext [sensor.pac_atom_temp_ext], while the secondary color is set to black. The speed of the LED blinking is adjusted based on the average wind speed from weather station vitesse moyenne du vent km h [sensor.weather_station_vitesse_moyenne_du_vent_km_h]. After updating these internal values, it commands the Karotz to update its light and ear positions. Finally, it announces a detailed weather report including the temperature, wind speed, rain chance, and any active weather alerts from 44 weather alert [sensor.44_weather_alert]."
|
|
},
|
|
"human_like": "Every half hour during the day, this automation updates a Karotz device to reflect the current weather by moving its ears, changing its LED color and blink speed, and announcing a weather summary.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_meteo_jour",
|
|
"result": {
|
|
"structured": "TRIGGER: At 07:15:00. CONDITIONS: None. ACTIONS: Set karotz dev ear left [input_number.karotz_dev_ear_left] to a value derived from ville rain chance [sensor.[ville]_rain_chance] (value 15 if rain chance < 5%, value 4 if > 60%, else 15 minus ((rain chance - 5) // 5)). Set karotz dev ear right [input_number.karotz_dev_ear_right] to the same derived value. Set karotz dev color 1 [input_text.karotz_dev_color_1] to a hex color code based on the temperature attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (e.g., ADD8E6 if <= -10°C, 87CEFA if <= -5°C, etc.). Set karotz dev light speed [input_number.karotz_dev_light_speed] to a value derived from the wind_speed attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (base 2000 minus ((wind_speed // 5) * 150), clamped between 100 and 2000). Call the rest_command.karotz_dev_light service. Call the rest_command.karotz_dev_ears service. Call the rest_command.karotz_dev_say service with a text announcement containing: the translated weather condition, maximum and minimum temperature attributes from prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui], precipitation_probability if available, cloud_coverage if available, wind_speed, and uv_index.",
|
|
"natural_language": {
|
|
"trigger": "Every day at 7:15 AM.",
|
|
"conditions": "There are no conditions.",
|
|
"action": "The automation performs several actions to announce the day's weather using a Karotz device. First, it calculates a value based on the rain chance from the sensor [sensor.[ville]_rain_chance] and sets both the left and right ear positions of the Karotz [input_number.karotz_dev_ear_left, input_number.karotz_dev_ear_right] to this value. Next, it determines a color based on the day's forecasted temperature from the sensor [sensor.prevision_meteo_aujourd_hui] and sets the Karotz's primary color [input_text.karotz_dev_color_1]. It also calculates a light animation speed based on the forecasted wind speed and sets the Karotz's light speed [input_number.karotz_dev_light_speed]. Finally, it triggers three commands on the Karotz: one to update its lights, one to move its ears to the set positions, and one to speak a detailed weather report. The spoken report includes the weather condition (translated to French), the high and low temperatures, the chance of rain, cloud coverage, wind speed, and the UV index, all sourced from the forecast sensor [sensor.prevision_meteo_aujourd_hui]."
|
|
},
|
|
"human_like": "At 7:15 AM, a Karotz device announces the day's weather forecast, adjusting its ear positions, light color, and animation speed based on the predicted conditions.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_meteo_demain",
|
|
"result": {
|
|
"structured": "TRIGGER: At 19:05:00 daily. CONDITIONS: None. ACTIONS: Set karotz dev ear left [input_number.karotz_dev_ear_left] to a value based on ville rain chance [sensor.[ville]_rain_chance] (15 if rain chance < 5%, 4 if rain chance > 60%, otherwise 15 minus ((rain chance - 5) // 5)). Set karotz dev ear right [input_number.karotz_dev_ear_right] to the same calculated value. Set karotz dev color 1 [input_text.karotz_dev_color_1] to a hex color code based on the temperature attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (e.g., ADD8E6 if temperature <= -10, FF0000 if > 30). Set karotz dev light speed [input_number.karotz_dev_light_speed] to a value based on the wind_speed attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (starting from 2000, decreasing by 150 for every 5 km/h of wind, with a minimum of 100). Execute rest_command.karotz_dev_light. Execute rest_command.karotz_dev_ears. Execute rest_command.karotz_dev_say with a text announcement containing tomorrow's weather forecast from prevision meteo demain [sensor.prevision_meteo_demain] (condition, max/min temperature, precipitation probability, cloud coverage, wind speed, UV index).",
|
|
"natural_language": {
|
|
"trigger": "Every day at 7:05 PM.",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "The automation sets the position of the karotz dev ear left [input_number.karotz_dev_ear_left] and karotz dev ear right [input_number.karotz_dev_ear_right] based on the rain chance reported by the sensor ville rain chance [sensor.[ville]_rain_chance]. It sets the color for karotz dev color 1 [input_text.karotz_dev_color_1] based on today's temperature from prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui]. It sets the animation speed for karotz dev light speed [input_number.karotz_dev_light_speed] based on today's wind speed from the same sensor. It then triggers three commands: one to update the Karotz device's lights, one to update its ears, and one to make it speak a detailed weather forecast for tomorrow, using data from the sensor prevision meteo demain [sensor.prevision_meteo_demain]."
|
|
},
|
|
"human_like": "Every evening at 7:05 PM, this automation announces tomorrow's weather forecast and updates the lights and ears of a Karotz device to visually represent current weather conditions.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_meteo_automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When the time matches the pattern of minutes equal to 15 (i.e., every hour at 15 minutes past the hour). CONDITIONS: The current time is between 07:00:00 and 19:00:00. ACTIONS: Execute the REST command to make the device say 'Voici la météo.'; Execute the REST command to reset the device's ears; Set the value for karotz dev ear left [input_number.karotz_dev_ear_left] based on the rain chance from ville rain chance [sensor.[ville]_rain_chance] (if rain < 5%, set to 15; if rain > 60%, set to 4; otherwise, set to 15 minus integer division of (rain - 5) by 5); Set the value for karotz dev ear right [input_number.karotz_dev_ear_right] using the same rain chance calculation; Set the value for karotz dev color 1 [input_text.karotz_dev_color_1] to a hex color code based on the temperature from temperature sensor [sensor.[temperature]] (mapping temperature ranges to specific colors); Set the value for karotz dev color 2 [input_text.karotz_dev_color_2] to '000000'; Set the value for karotz dev light speed [input_number.karotz_dev_light_speed] based on the wind speed from vitesse du vent sensor [sensor.[vitesse du vent]] (starting from a base of 2000, decreasing by 150 for every 5 km/h of wind, with a minimum of 100 and a maximum of 2000); Execute the REST command to update the device's light; Execute the REST command to update the device's ears; Execute the REST command to make the device say a weather report including the temperature, wind speed, rain chance, and any weather alert from 44 weather alert [sensor.44_weather_alert] (mentioning orange or red alerts if present).",
|
|
"natural_language": {
|
|
"trigger": "The automation triggers every hour at 15 minutes past the hour.",
|
|
"conditions": "The automation only runs if the current time is between 7:00 AM and 7:00 PM.",
|
|
"action": "The automation announces the weather, resets the device's ears, and then configures the device based on current weather conditions. It sets the left and right ear positions based on the chance of rain, sets the primary light color based on the temperature, sets a secondary color to black, and sets the light blinking speed based on the wind speed. Finally, it updates the device's lights and ears, and announces a detailed weather report including temperature, wind speed, rain chance, and any active weather alerts."
|
|
},
|
|
"human_like": "Every 15 minutes past the hour during the day, this automation updates a Karotz device to reflect the current weather conditions through its ears, lights, and voice announcements.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "Karotz_dev - Météo de demain à 19h05",
|
|
"result": {
|
|
"structured": "TRIGGER: At 19:05:00 daily. CONDITIONS: None. ACTIONS: Execute the rest command 'karotz_dev_say' with a text payload. The text is a French weather forecast generated from sensor.prevision_meteo_demain [sensor.prevision_meteo_demain]. It includes the translated weather condition, maximum and minimum temperatures (rounded to nearest integer), precipitation probability (if not 'n/a'), cloud coverage (if not 'n/a'), wind speed (rounded to nearest integer), and UV index.",
|
|
"natural_language": {
|
|
"trigger": "Every day at 7:05 PM.",
|
|
"conditions": "There are no conditions.",
|
|
"action": "Uses the Karotz device to announce tomorrow's weather forecast in French. The announcement is generated from the sensor 'prevision meteo demain' [sensor.prevision_meteo_demain]. It states the expected weather condition (translated into French), the maximum and minimum temperatures, the chance of rain, the cloud coverage, the wind speed, and the UV index."
|
|
},
|
|
"human_like": "Announces tomorrow's weather forecast every evening at 7:05 PM using the Karotz device.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "karotz_dev_meteo_jour",
|
|
"result": {
|
|
"structured": "TRIGGER: At 07:15:00. CONDITIONS: None. ACTIONS: Set karotz dev ear left [input_number.karotz_dev_ear_left] to a value derived from the precipitation probability attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (15 if <5%, 4 if >60%, otherwise 15 minus ((probability - 5) // 5)). Set karotz dev ear right [input_number.karotz_dev_ear_right] to the same derived value. Set karotz dev color 1 [input_text.karotz_dev_color_1] to a hex color code derived from the temperature attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (color changes at temperature thresholds from -10°C to >30°C). Set karotz dev light speed [input_number.karotz_dev_light_speed] to a value derived from the wind speed attribute of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui] (base 2000 minus ((wind_speed // 5) * 150), clamped between 100 and 2000). Call the service rest_command.karotz_dev_light. Call the service rest_command.karotz_dev_ears. Call the service rest_command.karotz_dev_say with a text message announcing today's weather, including the condition (translated to French), maximum temperature, minimum temperature, precipitation probability, cloud coverage, wind speed, UV index, and data source from the state and attributes of prevision meteo aujourd hui [sensor.prevision_meteo_aujourd_hui].",
|
|
"natural_language": {
|
|
"trigger": "Every day at 7:15 AM.",
|
|
"conditions": "There are no conditions that must be met.",
|
|
"action": "The automation performs several actions to announce the day's weather using a Karotz device. First, it calculates and sets the position for the left and right ears of the Karotz based on the chance of rain from the weather sensor. It then sets the LED color based on the forecasted temperature. Next, it adjusts the speed of the LED lights based on the forecasted wind speed. It then activates the Karotz's light and ear movement services. Finally, it makes the Karotz speak a detailed weather report in French, which includes the weather condition, high and low temperatures, chance of rain, cloud cover, wind speed, UV index, and the data source."
|
|
},
|
|
"human_like": "Every morning at 7:15, the Karotz device announces the day's weather forecast, adjusting its ears, lights, and color based on temperature, wind, and rain.",
|
|
"complexity": "high"
|
|
}
|
|
}
|
|
] |