thanks to other solution like Jeedom you can do it but first you have to find a solution to command your switches