fixing issue with SwitchAutoMode not getting added

on recieving switch status