[ { "id": "Scan Barcode to Add to Cart", "result": { "structured": "TRIGGER: When barcode scanner [sensor.atom_qrcode_scanner_barcode_scanner] changes state. CONDITIONS: None. ACTIONS: Execute shell command 'lookup_product_id' with the scanned barcode value. IF the command result is not 'unknown' AND not 'null', THEN execute shell command 'lookup_product_name', call service 'rohlikcz.add_to_cart' with the product ID, and use text to speech [tts.elevenlabs] to announce the item was added to the cart on media player [media_player.xxxxxxxxxxxx]. OTHERWISE, use text to speech [tts.elevenlabs] to announce the product is not in the database on media player [media_player.xxxxxxxxxxx].", "natural_language": { "trigger": "Whenever the barcode scanner [sensor.atom_qrcode_scanner_barcode_scanner] detects a new barcode and updates its state.", "conditions": "There are no additional conditions that must be met for the automation to proceed.", "action": "The automation first looks up the product ID corresponding to the scanned barcode. If the lookup is successful (the product is known), it then retrieves the product's name, adds the product to the Rohlik.cz shopping cart, and announces via speech synthesis on a media player that the item has been added. If the product is not found in the database, it announces an apology message on a different media player." }, "human_like": "Scans a barcode and automatically adds the corresponding product to your Rohlik.cz shopping cart, providing voice confirmation or an error message.", "complexity": "medium" } }, { "id": "Update Barcode Mapping File", "result": { "structured": "TRIGGER: When the system time reaches 03:00:00 daily OR When Home Assistant starts. CONDITIONS: None. ACTIONS: Execute shell command 'download_barcode_mapping' [shell_command.download_barcode_mapping], then wait for 3 seconds, then create a persistent notification with title 'Product list updated' and message containing the current date and time.", "natural_language": { "trigger": "The automation runs either at 3:00 AM every day, or when Home Assistant starts up.", "conditions": "There are no conditions that must be met for the automation to proceed.", "action": "It runs a shell command named 'download_barcode_mapping' [shell_command.download_barcode_mapping], waits for three seconds, and then creates a persistent notification to inform the user that the product list file has been updated, including the timestamp of the update." }, "human_like": "Downloads an updated product barcode list from the internet every morning or on startup, and notifies the user when it's done.", "complexity": "low" } } ]