[ { "id": "Shower - Reset Counters", "result": { "structured": "TRIGGER: When shower active sensor [binary_sensor.shower_active] changes from off to on. CONDITIONS: None. ACTIONS: Set shower water total [input_number.shower_water_total] to 0 AND set shower duration [input_number.shower_duration] to 0.", "natural_language": { "trigger": "When the shower active sensor [binary_sensor.shower_active] turns on, indicating a new shower session has started.", "conditions": "There are no conditions that must be met.", "action": "Resets the shower water total [input_number.shower_water_total] and the shower duration [input_number.shower_duration] counters back to zero." }, "human_like": "Resets the water and duration counters for the shower at the start of a new shower session.", "complexity": "low" } }, { "id": "Shower - Track Session Length", "result": { "structured": "TRIGGER: Every second (time pattern on seconds). CONDITIONS: shower active sensor [binary_sensor.shower_active] is on. ACTIONS: Increment shower duration [input_number.shower_duration] by 1.", "natural_language": { "trigger": "The automation triggers every second.", "conditions": "The shower active sensor [binary_sensor.shower_active] must be in the 'on' state.", "action": "Increments the value of the shower duration [input_number.shower_duration] by one unit." }, "human_like": "Tracks the length of an active shower by counting up every second while the shower is running.", "complexity": "low" } }, { "id": "Shower - Track Water", "result": { "structured": "TRIGGER: Every second (time pattern). CONDITIONS: shower active sensor [binary_sensor.shower_active] is on. ACTIONS: Set shower water total [input_number.shower_water_total] to the sum of its current value plus the total flow rate (shower hot water flow sensor [sensor.esphome_shower_temp_hot_water_flow] plus shower cold water flow sensor [sensor.esphome_shower_temp_cold_water_flow]) divided by 60, rounded to 2 decimal places.", "natural_language": { "trigger": "The automation runs every second.", "conditions": "The shower must be active, meaning the shower active sensor [binary_sensor.shower_active] is in the 'on' state.", "action": "It calculates the total water used by the shower. It adds the current hot and cold water flow rates from the shower hot water flow sensor [sensor.esphome_shower_temp_hot_water_flow] and shower cold water flow sensor [sensor.esphome_shower_temp_cold_water_flow], converts this total flow per minute to a per-second amount, and adds it to the existing total stored in shower water total [input_number.shower_water_total], rounding the result to two decimal places." }, "human_like": "Tracks and accumulates the total amount of water used during a shower by adding up the flow from the hot and cold water lines every second.", "complexity": "medium" } } ]