Function get electricity on or off for every port now works