The invention discloses a washing machine and a control method thereof. The washing machine comprises an inner barrel, a central shaft and a temperature control module, wherein washing water is independently contained in the inner barrel when clothes are washed, the central shaft is used for supporting and driving the inner barrel to rotate, the temperature control module is used for controlling the temperature of the washing water in the inner barrel, the temperature control module comprises a temperature measuring element and a power supply element for charging the temperature measuring element in a wireless mode, and the power supply element is arranged close to the central shaft; and the control method comprises the steps that when the washing machine executes a water inlet program, the power supply element supplies power to the temperature measuring element in a wireless mode, and the temperature control module controls the water temperature in the inner barrel according to a feedback signal of the temperature measuring element. According to the washing machine and the control method, wireless power supply is adopted, the situation that when wired power supply breaks down, sparks, electric leakage and other phenomena possibly happen, and a user is hurt is avoided, meanwhile, arrangement of a supporting structure and connecting cables needing to be provided during wired power supply is reduced, cost is reduced, and the assembling efficiency of the washing machine is improved.