Control of an electric tool and a separate lighting device