Trying automation with sonoff water sensor and Hue light

Firstly please format your yaml code so it can be read easily.

Next always try to use entities rather than devices in triggers.