The invention relates to a lawnmower and a switch unit (200) for disabling an electrical unit of a device in the event of movement of a first component of the device relative to a second component of the device, characterized in that the switch unit (200) has a switch (1000) and an actuating unit (1004) for actuating the switch and the actuating unit is implemented in such a manner that the switch is actuated in the event of movement of the first component relative to the second component in at least one of the three spatial directions.