A method and apparatus for controlling a device, and a smart mat are provided. The method includes that identity information of a user on an smart mat is determined (101); recommended content for the user is determined according to the identity information of the user (102); and an instruction for playing the recommended content is sent to a device associated with the smart mat (103).