Lighting management with home automation wired technology (relay)