[ { "id": "ePaper - Waste collection", "result": { "structured": "TRIGGER: At 05:30:00 every day. CONDITIONS: None. ACTIONS: 1. Define configuration variables including a sorted list of waste sensor entity IDs (sensor.waste_food, sensor.waste_plastic, sensor.waste_glass_metal, sensor.waste_general, sensor.waste_paper) based on their 'days until collection' state values. 2. Create derived variables (trash1_sensor, trash1_days, trash1_name, trash2_sensor, trash2_days, trash2_name, trash3_sensor, trash3_days, trash3_name, trash4_sensor, trash4_days, trash4_name) for the four nearest collections, handling unknown states by setting days to 999. 3. Call service open_epaper_link.drawcustom on ePaper device [device_id: ba56e483633928becad9345c18321a0d] to draw a custom display with: decorative lines, four rectangles (background color red if collection is within 1 day, otherwise background color depends on dark_mode), text labels showing waste type names and formatted days until collection (Today, Tomorrow, X days, or Unknown), a central trash can icon (colored red if any of the four nearest collections is within 1 day), and a footer with the current weekday and time.", "natural_language": { "trigger": "The automation runs daily at 5:30 AM.", "conditions": "There are no conditions; the automation always executes when triggered.", "action": "First, it sets up variables, including a list of waste sensors sorted by how many days are left until collection. It then calculates details for the four nearest upcoming collections, handling cases where data is missing or unknown. Finally, it sends a custom drawing command to an ePaper display. This drawing shows four boxes, each representing one of the next waste collections. The box is highlighted in red if the collection is today or tomorrow. Each box displays the waste type name and a human-readable countdown (e.g., 'Today', '2 days'). A central trash can icon also turns red if any of the four collections is imminent. The display also shows the current day of the week and time." }, "human_like": "Updates an ePaper display every morning at 5:30 AM to show the schedule for the next four waste collections, highlighting any that are due today or tomorrow.", "complexity": "high" } }, { "id": "Update Bins Tag", "result": { "structured": "TRIGGER: When the time is 02:00:00. CONDITIONS: None. ACTIONS: Execute script Bins Tag [script.bins_tag] with parameters: tag_mac=0000021B4DA53B17, trash_sensor1=black bin schedule sensor [sensor.black_bin_schedule], trash1_name=Black, trash_sensor2=blue bin schedule sensor [sensor.blue_bin_schedule], trash2_name=Blue, trash_sensor3=brown bin schedule sensor [sensor.brown_bin_schedule], trash3_name=Brown, trash_sensor4=green bin schedule sensor [sensor.green_bin_schedule], trash4_name=Green, dark_mode=true, translation_today=Today, translation_tonight=Tonight, translation_days=days, translation_unknown=Unknown.", "natural_language": { "trigger": "Every day at 2:00 AM.", "conditions": "There are no conditions; the automation runs unconditionally.", "action": "Runs the Bins Tag [script.bins_tag] script. This script is provided with data about four bin schedule sensors (black bin schedule sensor [sensor.black_bin_schedule], blue bin schedule sensor [sensor.blue_bin_schedule], brown bin schedule sensor [sensor.brown_bin_schedule], and green bin schedule sensor [sensor.green_bin_schedule]) along with their display names (Black, Blue, Brown, Green), a tag MAC address, display mode settings, and text translations." }, "human_like": "Updates a smart tag with the next bin collection schedule every morning at 2 AM.", "complexity": "low" } } ]