This document discusses context aware water management systems for smart agriculture using IoT technology. It describes mainstream IoT approaches and how context aware systems integrate heterogeneous data sources to build new contextual information that influences device behavior. The FIWARE open source framework is presented as a way to implement such a system using components like an IoT agent, MQTT broker, and context broker. A prototype is demonstrated using FIWARE components and sensors, actuators and an ultra light IoT agent to monitor soil moisture and control a pump in a vineyard irrigation system based on the environmental context.