Automation for filling a barrel with water

Yes, but the first lesson is: avoid the device actions, conditions and templates. Besides this being hard to read, there are numerous things that will make it problematic for you later, and it is harder for is to modify this.

The entity ids shown here are not the entity_id’s that the UI shows. Can you tell us what is the id now for the trigger, condition and action? It now says if some thing is turned on, immediately turn something else off, but only if some other sensor is on. That isn’t saying much :slight_smile: