A method for controlling operation of garden equipment with a battery pack (2) comprising a control unit (100) for preforming the method, when the battery back (2) is inserted into a recess (32) of the garden equipment and in data communication, via a data bus (30), with a control unit (200) of the garden equipment. The control unit (100) reads an identifier (34) of the garden equipment, which identifier (34) is used to retrieve operational control data for the specific garden equipment from a memory medium (14) of the control unit (100). The control unit (100) also collects sensor data from garden equipment sensors (20; 22; 24) and controls the operation of the garden equipment from the control unit (100) based on the retrieved control data and the collected sensor data.