A flexible system for setting up links between Smart Home components, such as a switch and a lighting group or scenario